11 #ifndef CXVIEWPORTLISTENER_H_ 12 #define CXVIEWPORTLISTENER_H_ 14 #include "cxResourceExport.h" 16 #include <boost/function.hpp> 39 bool isListening()
const;
41 void setCallback(boost::function<
void ()> func);
43 virtual void callback();
45 double getVpnZoom(
Vector3D focalPoint);
47 virtual void addObservers() = 0;
48 virtual void removeObservers() = 0;
54 boost::function<void ()> mCallback;
75 virtual void addObservers();
76 virtual void removeObservers();
96 virtual void callback();
100 virtual void addObservers();
101 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.