37 #include "boost/bind.hpp"
48 PointMetricRep::PointMetricRep()
57 mGraphicalPoint.reset();
62 mViewportListener->startListen(view->getRenderer());
69 mViewportListener->stopListen();
85 mGraphicalPoint->setValue(p0_r);
87 mGraphicalPoint->setColor(
mMetric->getColor());
102 if (!mGraphicalPoint)
105 double size = mViewportListener->getVpnZoom();
107 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