35 #include "boost/bind.hpp"
38 #include <vtkPolyDataMapper.h>
39 #include <vtkProperty.h>
40 #include <vtkRenderer.h>
41 #include <vtkSectorSource.h>
57 SphereMetricRep2D::SphereMetricRep2D()
89 if (!mDisk && this->
getView() && metric && mSliceProxy)
100 mDisk->setColor(
mMetric->getColor());
101 mDisk->setOutlineColor(
mMetric->getColor());
102 mDisk->setOutlineWidth(0.1);
103 mDisk->setFillVisible(
false);
105 mDisk->setRadiusBySlicingSphere(metric->getRadius(), position[2]);
107 Vector3D projectedPosition = position;
108 double offsetFromXYPlane = 0.01;
109 projectedPosition[2] = offsetFromXYPlane;
110 mDisk->setPosition(projectedPosition);
119 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)