36 #include <vtkPolyData.h>
37 #include <vtkPointData.h>
38 #include <vtkProperty.h>
40 #include <vtkRenderer.h>
41 #include <vtkMatrix4x4.h>
42 #include <vtkArrowSource.h>
96 this->meshChangedSlot();
97 this->transformChangedSlot();
98 this->clipPlanesChangedSlot();
103 void GeometricRep::clipPlanesChangedSlot()
110 std::vector<vtkPlanePtr> mPlanes;
111 mPlanes =
mMesh->getAllClipPlanes();
112 for (
unsigned i=0; i<mPlanes.size(); ++i)
132 return (
mMesh == mesh);
135 void GeometricRep::meshChangedSlot()
140 if(
mMesh->showGlyph())
166 void GeometricRep::transformChangedSlot()
GraphicalPolyData3DPtr mGraphicalPolyDataPtr
void transformChanged()
emitted when transform is changed
void setMesh(MeshPtr mesh)
sets this reps mesh
static boost::shared_ptr< REP > wrap_new(REP *object, QString uid)
boost::shared_ptr< class View > ViewPtr
bool hasMesh(MeshPtr mesh) const
checks if this rep has the give mesh
MeshPtr getMesh()
gives this reps mesh
Helper for rendering a a polydata in 3D.
virtual void addRepActorsToViewRenderer(ViewPtr view)
virtual void removeRepActorsFromViewRenderer(ViewPtr view)
static GeometricRepPtr New(const QString &uid="")
Default implementation of Rep.
Helper for rendering a a glyph in 3D.
boost::shared_ptr< class Mesh > MeshPtr
GraphicalGlyph3DDataPtr mGraphicalGlyph3DDataPtr
boost::shared_ptr< class GeometricRep > GeometricRepPtr