Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Related Pages  

vtkCommand Class Reference

superclass for callback/observer methods. More...

#include <vtkCommand.h>

List of all members.

Public Types

enum  EventIds {
  NoEvent = 0, AnyEvent, DeleteEvent, StartEvent,
  EndEvent, ProgressEvent, PickEvent, StartPickEvent,
  EndPickEvent, AbortCheckEvent, ExitEvent, LeftButtonPressEvent,
  LeftButtonReleaseEvent, MiddleButtonPressEvent, MiddleButtonReleaseEvent, RightButtonPressEvent,
  RightButtonReleaseEvent, EnterEvent, LeaveEvent, KeyPressEvent,
  KeyReleaseEvent, CharEvent, ConfigureEvent, TimerEvent,
  MouseMoveEvent, ResetCameraEvent, ResetCameraClippingRangeEvent, UserEvent = 1000
}

Public Methods

 vtkCommand ()
virtual ~vtkCommand ()
void Delete ()
virtual void Execute (vtkObject *caller, unsigned long, void *callData)=0

Static Public Methods

vtkCommand * New ()
const char * GetStringFromEventId (unsigned long event)
unsigned long GetEventIdFromString (const char *event)


Detailed Description

superclass for callback/observer methods.

Date:
2000/12/10 20:08:07
Revision:
1.14

vtkCommand is an implementation of the command design pattern that is used in callbacks (such as StartMethod(), ProgressMethod(), and EndMethod()) in VTK. vtkObject implements a Subject/Observer pattern. When a subject needs to notify a observer, it does so using a vtkCommand.


The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:24:16 2002 for VTK by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002