37 #include <vtkVectorText.h>
38 #include <vtkFollower.h>
39 #include <vtkPolyDataMapper.h>
40 #include <vtkProperty.h>
41 #include <vtkRenderer.h>
42 #include <vtkCamera.h>
43 #include <vtkRenderWindow.h>
45 #include "vtkTextActor.h"
49 #include "vtkMatrix4x4.h"
61 DonutMetricRep::DonutMetricRep()
88 void DonutMetricRep::updateTorus()
102 mTorus.reset(
new GraphicalTorus3D(this->
getRenderer()));
107 mTorus->setPosition(donut->getPosition());
108 mTorus->setDirection(donut->getDirection());
109 mTorus->setRadius(donut->getRadius());
110 mTorus->setThickness(donut->getThickness());
111 mTorus->setColor(donut->getColor());
114 void DonutMetricRep::updateDisc()
121 if (!donut->getFlat())
129 mDisk.reset(
new GraphicalDisk());
136 mDisk->setPosition(donut->getPosition());
137 mDisk->setDirection(donut->getDirection());
138 mDisk->setRadius(donut->getRadius());
139 mDisk->setHeight(donut->getHeight());
140 mDisk->setColor(donut->getColor());
141 mDisk->setOutlineColor(donut->getColor());
142 mDisk->setOutlineWidth(donut->getThickness());
143 mDisk->setFillVisible(
false);
144 mDisk->setLighting(
true);
vtkRendererPtr getRenderer()
static DonutMetricRepPtr New(const QString &uid="")
boost::shared_ptr< class DonutMetric > DonutMetricPtr
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