15 #include <vtkPolyData.h>
16 #include <vtkPointData.h>
17 #include <vtkProperty.h>
19 #include <vtkRenderer.h>
20 #include <vtkMatrix4x4.h>
21 #include <vtkArrowSource.h>
36 m_rMrr = Transform3D::Identity();
60 this->meshChangedSlot();
61 this->transformChangedSlot();
62 this->clipPlanesChangedSlot();
67 void GraphicalGeometric::clipPlanesChangedSlot()
74 std::vector<vtkPlanePtr> mPlanes;
75 mPlanes =
mMesh->getAllClipPlanes();
76 for (
unsigned i=0; i<mPlanes.size(); ++i)
104 this->transformChangedSlot();
107 void GraphicalGeometric::meshChangedSlot()
110 if(
mMesh->showGlyph())
120 mMesh->updateVtkPolyDataWithTexture();
125 if(
mMesh->getUseColorFromPolydataScalars())
139 const MeshPropertyData& src =
mMesh->getProperties();
141 dest->SetPointSize(src.mVisSize->getValue());
142 dest->SetBackfaceCulling(src.mBackfaceCulling->getValue());
143 dest->SetFrontfaceCulling(src.mFrontfaceCulling->getValue());
144 dest->SetRepresentation(src.mRepresentation->getValue().toInt());
145 dest->SetEdgeVisibility(src.mEdgeVisibility->getValue());
147 dest->SetAmbient(src.mAmbient->getValue());
148 dest->SetDiffuse(src.mDiffuse->getValue());
149 dest->SetSpecular(src.mSpecular->getValue());
150 dest->SetSpecularPower(src.mSpecularPower->getValue());
151 dest->SetLineWidth(src.mLineWidth->getValue());
156 void GraphicalGeometric::transformChangedSlot()
191 mGraphics->setRenderer(view->getRenderer());
196 mGraphics->setRenderer(NULL);
201 mGraphics->setMesh(mesh);
206 return mGraphics->getMesh();
210 return mGraphics->getMesh() == mesh;