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()
53 return boost::dynamic_pointer_cast<DonutMetric>(
mMetric);
67 void DonutMetricRep::updateTorus()
81 mTorus.reset(
new GraphicalTorus3D(this->
getRenderer()));
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())
108 mDisk.reset(
new GraphicalDisk());
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);