vtkObserverMediator Class Reference

#include <vtkObserverMediator.h>

Inheritance diagram for vtkObserverMediator:

Inheritance graph
[legend]
Collaboration diagram for vtkObserverMediator:

Collaboration graph
[legend]

List of all members.


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 40 of file vtkObserverMediator.h.

typedef vtkObject Superclass
static int IsTypeOf (const char *type)
static vtkObserverMediatorSafeDownCast (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 vtkRenderWindowInteractorGetInteractor ()

Static Public Member Functions

static vtkObserverMediatorNew ()

Protected Member Functions

 vtkObserverMediator ()
 ~vtkObserverMediator ()

Protected Attributes

vtkRenderWindowInteractorInteractor
vtkObserverMap * ObserverMap
vtkInteractorObserverCurrentObserver
int CurrentCursorShape

Member Typedef Documentation

Standard macros.

Reimplemented from vtkObject.

Definition at line 48 of file vtkObserverMediator.h.


Constructor & Destructor Documentation

vtkObserverMediator::vtkObserverMediator (  )  [protected]

vtkObserverMediator::~vtkObserverMediator (  )  [protected]


Member Function Documentation

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.


Member Data Documentation

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.

Definition at line 82 of file vtkObserverMediator.h.


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

Generated on Mon Sep 27 18:36:33 2010 for VTK by  doxygen 1.5.6