15 #include "boost/bind.hpp"
18 #include <vtkPolyDataMapper.h>
19 #include <vtkProperty.h>
20 #include <vtkRenderer.h>
21 #include <vtkSectorSource.h>
36 PointMetricRep2D::PointMetricRep2D()
49 mViewportListener.reset();
55 if (mViewportListener)
56 mViewportListener->startListen(view->getRenderer());
64 if (mViewportListener)
65 mViewportListener->stopListen();
90 mDisk->setColor(
mMetric->getColor());
91 mDisk->setOutlineColor(
mMetric->getColor());
92 mDisk->setOutlineWidth(0.25);
93 mDisk->setFillVisible(
false);
95 mDisk->setRadiusBySlicingSphere(this->findSphereRadius(), position[2]);
97 Vector3D projectedPosition = position;
98 double offsetFromXYPlane = 0.01;
99 projectedPosition[2] = offsetFromXYPlane;
100 mDisk->setPosition(projectedPosition);
105 double PointMetricRep2D::findSphereRadius()
108 if (mViewportListener)
110 double size = mViewportListener->getVpnZoom();
126 mSliceProxy = sliceProxy;