VTK
|
manage contention for cursors and other resources More...
#include <vtkObserverMediator.h>
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 |
typedef vtkObject | Superclass |
static int | IsTypeOf (const char *type) |
static vtkObserverMediator * | SafeDownCast (vtkObjectBase *o) |
virtual int | IsA (const char *type) |
vtkObserverMediator * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkObjectBase * | NewInstanceInternal () const |
manage contention for cursors and other resources
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 41 of file vtkObserverMediator.h.
vtkObserverMediator::vtkObserverMediator | ( | ) | [protected] |
vtkObserverMediator::~vtkObserverMediator | ( | ) | [protected] |
static vtkObserverMediator* vtkObserverMediator::New | ( | ) | [static] |
Instantiate the class.
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 | ( | vtkObjectBase * | o | ) | [static] |
Standard macros.
Reimplemented from vtkObject.
virtual vtkObjectBase* vtkObserverMediator::NewInstanceInternal | ( | ) | const [protected, virtual] |
Standard macros.
Reimplemented from vtkObject.
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.
Remove all requests for cursor shape from a given interactor.
vtkRenderWindowInteractor* vtkObserverMediator::Interactor [protected] |
Definition at line 74 of file vtkObserverMediator.h.
vtkObserverMap* vtkObserverMediator::ObserverMap [protected] |
Definition at line 79 of file vtkObserverMediator.h.
Definition at line 82 of file vtkObserverMediator.h.
int vtkObserverMediator::CurrentCursorShape [protected] |
Definition at line 83 of file vtkObserverMediator.h.