16 #include "boost/bind.hpp" 27 PointMetricRep::PointMetricRep()
36 mGraphicalPoint.reset();
41 mViewportListener->startListen(view->getRenderer());
48 mViewportListener->stopListen();
64 mGraphicalPoint->setValue(p0_r);
66 mGraphicalPoint->setColor(
mMetric->getColor());
84 double size = mViewportListener->getVpnZoom(
mMetric->getRefCoord());
86 mGraphicalPoint->setRadius(sphereSize);
vtkRendererPtr getRenderer()
static boost::shared_ptr< REP > wrap_new(REP *object, QString uid)
Helper for rendering a point in 3D.
boost::shared_ptr< class View > ViewPtr
Listens to changes in viewport and camera matrix.
virtual void addRepActorsToViewRenderer(ViewPtr view)
void addRepActorsToViewRenderer(ViewPtr view)
virtual void onModifiedStartRender()
virtual void removeRepActorsFromViewRenderer(ViewPtr view)
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
void removeRepActorsFromViewRenderer(ViewPtr view)
static PointMetricRepPtr New(const QString &uid="")
boost::shared_ptr< class PointMetricRep > PointMetricRepPtr
Namespace for all CustusX production code.