#include <vtkObserverMediator.h>


The vtkObserverMediator is a helper class that manages requests for cursor changes from multiple interactor observers (e.g. widgets). It keeps a list of widgets (and their priorities) and their current requests for cursor shape. It then satisfies requests based on widget priority and the relative importance of the request (e.g., a lower priority widget requesting a particular cursor shape will overrule a higher priority widget requesting a default shape).
Definition at line 40 of file vtkObserverMediator.h.
| typedef vtkObject | Superclass |
| static int | IsTypeOf (const char *type) |
| static vtkObserverMediator * | SafeDownCast (vtkObject *o) |
| virtual const char * | GetClassName () |
| virtual int | IsA (const char *type) |
| void | PrintSelf (ostream &os, vtkIndent indent) |
Public Member Functions | |
| int | RequestCursorShape (vtkInteractorObserver *, int cursorShape) |
| void | RemoveAllCursorShapeRequests (vtkInteractorObserver *) |
| void | SetInteractor (vtkRenderWindowInteractor *iren) |
| virtual vtkRenderWindowInteractor * | GetInteractor () |
Static Public Member Functions | |
| static vtkObserverMediator * | New () |
Protected Member Functions | |
| vtkObserverMediator () | |
| ~vtkObserverMediator () | |
Protected Attributes | |
| vtkRenderWindowInteractor * | Interactor |
| vtkObserverMap * | ObserverMap |
| vtkInteractorObserver * | CurrentObserver |
| int | CurrentCursorShape |
| vtkObserverMediator::vtkObserverMediator | ( | ) | [protected] |
| vtkObserverMediator::~vtkObserverMediator | ( | ) | [protected] |
| static vtkObserverMediator* vtkObserverMediator::New | ( | ) | [static] |
Instantiate the class.
Reimplemented from vtkObject.
| virtual const char* vtkObserverMediator::GetClassName | ( | ) | [virtual] |
Standard macros.
Reimplemented from vtkObject.
| static int vtkObserverMediator::IsTypeOf | ( | const char * | type | ) | [static] |
Standard macros.
Reimplemented from vtkObject.
| virtual int vtkObserverMediator::IsA | ( | const char * | type | ) | [virtual] |
Standard macros.
Reimplemented from vtkObject.
| static vtkObserverMediator* vtkObserverMediator::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Standard macros.
Reimplemented from vtkObject.
| void vtkObserverMediator::PrintSelf | ( | ostream & | os, | |
| vtkIndent | indent | |||
| ) | [virtual] |
Standard macros.
Reimplemented from vtkObject.
| void vtkObserverMediator::SetInteractor | ( | vtkRenderWindowInteractor * | iren | ) |
Specify the instance of vtkRenderWindow whose cursor shape is to be managed.
| virtual vtkRenderWindowInteractor* vtkObserverMediator::GetInteractor | ( | ) | [virtual] |
Specify the instance of vtkRenderWindow whose cursor shape is to be managed.
| int vtkObserverMediator::RequestCursorShape | ( | vtkInteractorObserver * | , | |
| int | cursorShape | |||
| ) |
Method used to request a cursor shape. Note that the shape is specified using one of the integral values determined in vtkRenderWindow.h. The method returns a non-zero value if the shape was successfully changed.
| void vtkObserverMediator::RemoveAllCursorShapeRequests | ( | vtkInteractorObserver * | ) |
Remove all requests for cursor shape from a given interactor.
vtkRenderWindowInteractor* vtkObserverMediator::Interactor [protected] |
Definition at line 73 of file vtkObserverMediator.h.
vtkObserverMap* vtkObserverMediator::ObserverMap [protected] |
Definition at line 78 of file vtkObserverMediator.h.
Definition at line 81 of file vtkObserverMediator.h.
int vtkObserverMediator::CurrentCursorShape [protected] |
Definition at line 82 of file vtkObserverMediator.h.
1.5.6