ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions
itk::Command Class Reference

#include <itkCommand.h>

+ Inheritance diagram for itk::Command:
+ Collaboration diagram for itk::Command:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef SmartPointer< SelfPointer
typedef Command Self
typedef Object Superclass

Public Member Functions

virtual void Execute (Object *caller, const EventObject &event)=0
virtual void Execute (const Object *caller, const EventObject &event)=0
virtual const char * GetNameOfClass () const

Protected Member Functions

 Command ()
 ~Command ()

Private Member Functions

 Command (const Self &)
void operator= (const Self &)

Detailed Description

Superclass for callback/observer methods.

Command is an implementation of the command design pattern that is used in callbacks (such as StartMethod(), ProgressMethod(), and EndMethod()) in ITK. itk::Object implements a Subject/Observer pattern. When a subject needs to notify a observer, it does so using a itk::Command. The Execute method is called to run the command.

Wiki Examples:

Definition at line 44 of file itkCommand.h.


Member Typedef Documentation


Constructor & Destructor Documentation

itk::Command::Command ( ) [protected]
itk::Command::~Command ( ) [protected]
itk::Command::Command ( const Self ) [private]

Member Function Documentation

virtual void itk::Command::Execute ( Object caller,
const EventObject event 
) [pure virtual]
virtual void itk::Command::Execute ( const Object caller,
const EventObject event 
) [pure virtual]
virtual const char* itk::Command::GetNameOfClass ( ) const [virtual]
void itk::Command::operator= ( const Self ) [private]

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