NorMIT-nav
16.5
An IGT application
|
Listens to changes in viewport and camera matrix. More...
#include <cxViewportListener.h>
Public Member Functions | |
ViewportListener () | |
virtual | ~ViewportListener () |
void | setModified () |
Public Member Functions inherited from cx::ViewportListenerBase | |
ViewportListenerBase () | |
virtual | ~ViewportListenerBase () |
void | startListen (vtkRendererPtr renderer) |
void | stopListen () |
bool | isListening () const |
void | setCallback (boost::function< void()> func) |
virtual void | callback () |
double | getVpnZoom () |
Protected Member Functions | |
virtual void | addObservers () |
virtual void | removeObservers () |
Additional Inherited Members | |
Protected Types inherited from cx::ViewportListenerBase | |
typedef vtkSmartPointer< class ViewportObserverPrivate > | ViewportObserverPrivatePtr |
Protected Attributes inherited from cx::ViewportListenerBase | |
ViewportObserverPrivatePtr | mObserver |
vtkRendererPtr | mRenderer |
Listens to changes in viewport and camera matrix.
Class that listens to changes in the viewport size and camera matrix. A callback function is called when a change is detected.
This can be used to update reps with respect to viewport size, for example keep a 3D object in constant observed size.
Definition at line 86 of file cxViewportListener.h.
|
inline |
Definition at line 89 of file cxViewportListener.h.
|
virtual |
Definition at line 171 of file cxViewportListener.cpp.
|
protectedvirtual |
Implements cx::ViewportListenerBase.
Definition at line 158 of file cxViewportListener.cpp.
|
protectedvirtual |
Implements cx::ViewportListenerBase.
Definition at line 165 of file cxViewportListener.cpp.
void cx::ViewportListener::setModified | ( | ) |