15 #include "boost/bind.hpp"
18 #include <vtkPolyDataMapper.h>
19 #include <vtkProperty.h>
20 #include <vtkRenderer.h>
21 #include <vtkSectorSource.h>
37 DistanceMetricRep2D::DistanceMetricRep2D()
49 mViewportListener.reset();
55 if (mViewportListener)
56 mViewportListener->startListen(view->getRenderer());
64 if (mViewportListener)
65 mViewportListener->stopListen();
93 mLine->setColor(
mMetric->getColor());
100 std::vector<Vector3D> points_r = distanceMetric->getEndpoints();
104 Vector3D p1_vp = vpMs * sMr * points_r[0];
105 Vector3D p2_vp = vpMs * sMr * points_r[1];
108 mLine->updatePosition(p1_vp, p2_vp);
115 mSliceProxy = sliceProxy;