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();
78 if (!mGraphicalLine && this->
getView())
85 mGraphicalLine->setColor(
mMetric->getColor());
86 std::vector<Vector3D> p = distanceMetric->getEndpoints();
87 mGraphicalLine->setValue(p[0], p[1]);
88 mGraphicalLine->setStipple(0xF0FF);
boost::shared_ptr< class DistanceMetricRep > DistanceMetricRepPtr
vtkRendererPtr getRenderer()
virtual void onModifiedStartRender()
boost::shared_ptr< class DistanceMetric > DistanceMetricPtr
static boost::shared_ptr< REP > wrap_new(REP *object, QString uid)
Helper for rendering a line in 3D.
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="")
Namespace for all CustusX production code.