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>
54 DistanceMetricRep::DistanceMetricRep()
61 mGraphicalLine.reset();
79 if (!mGraphicalLine && this->
getView())
86 mGraphicalLine->setColor(
mMetric->getColor());
87 std::vector<Vector3D> p = distanceMetric->getEndpoints();
88 mGraphicalLine->setValue(p[0], p[1]);
89 mGraphicalLine->setStipple(0xF0FF);
boost::shared_ptr< class DistanceMetricRep > DistanceMetricRepPtr
vtkRendererPtr getRenderer()
virtual void onModifiedStartRender()
static boost::shared_ptr< REP > wrap_new(REP *object, QString uid)
Helper for rendering a line in 3D.
boost::shared_ptr< class DistanceMetric > DistanceMetricPtr
Data class that represents a distance between two points, or a point and a plane. ...
Rep for visualizing a DistanceMetric.
static DistanceMetricRepPtr New(const QString &uid="")