14 #include "boost/bind.hpp" 17 #include <vtkPolyDataMapper.h> 18 #include <vtkProperty.h> 19 #include <vtkRenderer.h> 20 #include <vtkSectorSource.h> 36 SphereMetricRep2D::SphereMetricRep2D()
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;
vtkRendererPtr getRenderer()
virtual void removeRepActorsFromViewRenderer(ViewPtr view)
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
static boost::shared_ptr< REP > wrap_new(REP *object, QString uid)
boost::shared_ptr< class SphereMetric > SphereMetricPtr
virtual void addRepActorsToViewRenderer(ViewPtr view)
boost::shared_ptr< class View > ViewPtr
Data class that represents a donut.
static SphereMetricRep2DPtr New(const QString &uid="")
void addRepActorsToViewRenderer(ViewPtr view)
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
virtual void onModifiedStartRender()
void removeRepActorsFromViewRenderer(ViewPtr view)
boost::shared_ptr< class SphereMetricRep2D > SphereMetricRep2DPtr
void setSliceProxy(SliceProxyPtr slicer)
Namespace for all CustusX production code.