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

vtkCommand Class Reference

superclass for callback/observer methods. More...

#include <vtkCommand.h>

Inheritance diagram for vtkCommand:

Inheritance graph
[legend]
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.

Definition at line 59 of file vtkCommand.h.


Member Enumeration Documentation

enum vtkCommand::EventIds
 

Enumeration values:
NoEvent 
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 

Definition at line 77 of file vtkCommand.h.


Constructor & Destructor Documentation

vtkCommand::vtkCommand   [inline]
 

Definition at line 62 of file vtkCommand.h.

virtual vtkCommand::~vtkCommand   [inline, virtual]
 

Definition at line 63 of file vtkCommand.h.


Member Function Documentation

vtkCommand* vtkCommand::New   [static]
 

Reimplemented in vtkCallbackCommand, vtkOldStyleCallbackCommand, vtkJavaCommand, vtkPythonCommand, and vtkTclCommand.

void vtkCommand::Delete   [inline]
 

Definition at line 65 of file vtkCommand.h.

virtual void vtkCommand::Execute vtkObject   ptr,
unsigned long    eventtype,
void *    callData
[pure virtual]
 

Reimplemented in vtkCallbackCommand, vtkOldStyleCallbackCommand, vtkJavaCommand, vtkPythonCommand, and vtkTclCommand.

const char* vtkCommand::GetStringFromEventId unsigned long    event [static]
 

unsigned long vtkCommand::GetEventIdFromString const char *    event [static]
 


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:46:59 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001