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();
45 return boost::dynamic_pointer_cast<DistanceMetric>(
mMetric);
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);