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;
vtkRendererPtr getRenderer()
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 PointMetricRep2D > PointMetricRep2DPtr
boost::shared_ptr< class View > ViewPtr
virtual void removeRepActorsFromViewRenderer(ViewPtr view)
static PointMetricRep2DPtr New(const QString &uid="")
Listens to changes in viewport and camera matrix.
void addRepActorsToViewRenderer(ViewPtr view)
virtual void addRepActorsToViewRenderer(ViewPtr view)
virtual void onModifiedStartRender()
void setSliceProxy(SliceProxyPtr slicer)
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
void removeRepActorsFromViewRenderer(ViewPtr view)
void setDynamicSize(bool on)
Namespace for all CustusX production code.