32 #ifndef CXVIEWPORTLISTENER_H_ 33 #define CXVIEWPORTLISTENER_H_ 35 #include "cxResourceExport.h" 37 #include <boost/function.hpp> 60 bool isListening()
const;
62 void setCallback(boost::function<
void ()> func);
64 virtual void callback();
66 double getVpnZoom(
Vector3D focalPoint);
68 virtual void addObservers() = 0;
69 virtual void removeObservers() = 0;
75 boost::function<void ()> mCallback;
96 virtual void addObservers();
97 virtual void removeObservers();
117 virtual void callback();
121 virtual void addObservers();
122 virtual void removeObservers();
boost::shared_ptr< class ViewportListener > ViewportListenerPtr
ViewportObserverPrivatePtr mObserver
boost::shared_ptr< class ViewportPreRenderListener > ViewportPreRenderListenerPtr
Listens to changes in viewport and camera matrix.
vtkSmartPointer< class vtkRenderer > vtkRendererPtr
Base class for listening to a vtkRenderer.
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Listens to the start render event in a vtkRenderer.
vtkSmartPointer< class ViewportObserverPrivate > ViewportObserverPrivatePtr
Namespace for all CustusX production code.