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> 33 DistanceMetricRep::DistanceMetricRep()
40 mGraphicalLine.reset();
57 if (!mGraphicalLine && this->
getView())
64 mGraphicalLine->setColor(
mMetric->getColor());
65 std::vector<Vector3D> p = distanceMetric->getEndpoints();
66 mGraphicalLine->setValue(p[0], p[1]);
67 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.