14 #include "boost/bind.hpp"
17 #include <vtkPolyDataMapper.h>
18 #include <vtkProperty.h>
19 #include <vtkRenderer.h>
20 #include <vtkSectorSource.h>
36 SphereMetricRep2D::SphereMetricRep2D()
58 return boost::dynamic_pointer_cast<SphereMetric>(
mMetric);
68 if (!mDisk && this->
getView() && metric && mSliceProxy)
79 mDisk->setColor(
mMetric->getColor());
80 mDisk->setOutlineColor(
mMetric->getColor());
81 mDisk->setOutlineWidth(0.31);
82 mDisk->setFillVisible(
false);
84 mDisk->setRadiusBySlicingSphere(metric->getRadius(), position[2]);
86 Vector3D projectedPosition = position;
87 double offsetFromXYPlane = 0.01;
88 projectedPosition[2] = offsetFromXYPlane;
89 mDisk->setPosition(projectedPosition);
98 mSliceProxy = sliceProxy;