VTK
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkObserverMediator Class Reference

manage contention for cursors and other resources More...

#include <vtkObserverMediator.h>

Inheritance diagram for vtkObserverMediator:
Inheritance graph
[legend]
Collaboration diagram for vtkObserverMediator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

int RequestCursorShape (vtkInteractorObserver *, int cursorShape)
void RemoveAllCursorShapeRequests (vtkInteractorObserver *)
void SetInteractor (vtkRenderWindowInteractor *iren)
virtual vtkRenderWindowInteractorGetInteractor ()

Static Public Member Functions

static vtkObserverMediatorNew ()

Protected Member Functions

 vtkObserverMediator ()
 ~vtkObserverMediator ()

Protected Attributes

vtkRenderWindowInteractorInteractor
vtkObserverMap * ObserverMap
vtkInteractorObserverCurrentObserver
int CurrentCursorShape
typedef vtkObject Superclass
static int IsTypeOf (const char *type)
static vtkObserverMediatorSafeDownCast (vtkObjectBase *o)
virtual int IsA (const char *type)
vtkObserverMediatorNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual vtkObjectBaseNewInstanceInternal () const

Detailed Description

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).

See also:
vtkAbstractWidget vtkWidgetRepresentation

Definition at line 41 of file vtkObserverMediator.h.


Member Typedef Documentation

Standard macros.

Reimplemented from vtkObject.

Definition at line 49 of file vtkObserverMediator.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

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.

Specify the instance of vtkRenderWindow whose cursor shape is to be managed.

Specify the instance of vtkRenderWindow whose cursor shape is to be managed.

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.


Member Data Documentation

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.

Definition at line 83 of file vtkObserverMediator.h.


The documentation for this class was generated from the following file: