16 #include <vtkVectorText.h> 17 #include <vtkFollower.h> 18 #include <vtkPolyDataMapper.h> 19 #include <vtkProperty.h> 20 #include <vtkRenderer.h> 21 #include <vtkCamera.h> 22 #include <vtkRenderWindow.h> 24 #include "vtkTextActor.h" 28 #include "vtkMatrix4x4.h" 40 DonutMetricRep::DonutMetricRep()
67 void DonutMetricRep::updateTorus()
86 mTorus->setPosition(donut->getPosition());
87 mTorus->setDirection(donut->getDirection());
88 mTorus->setRadius(donut->getRadius());
89 mTorus->setThickness(donut->getThickness());
90 mTorus->setColor(donut->getColor());
93 void DonutMetricRep::updateDisc()
100 if (!donut->getFlat())
115 mDisk->setPosition(donut->getPosition());
116 mDisk->setDirection(donut->getDirection());
117 mDisk->setRadius(donut->getRadius());
118 mDisk->setHeight(donut->getHeight());
119 mDisk->setColor(donut->getColor());
120 mDisk->setOutlineColor(donut->getColor());
121 mDisk->setOutlineWidth(donut->getThickness());
122 mDisk->setFillVisible(
false);
123 mDisk->setLighting(
true);
vtkRendererPtr getRenderer()
static DonutMetricRepPtr New(const QString &uid="")
boost::shared_ptr< class DonutMetric > DonutMetricPtr
Helper for rendering a torus in 3D.
static boost::shared_ptr< REP > wrap_new(REP *object, QString uid)
virtual void onModifiedStartRender()
Data class that represents a donut.
boost::shared_ptr< class DonutMetricRep > DonutMetricRepPtr
Namespace for all CustusX production code.