Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::Command Class Reference
[ITK System Objects]

superclass for callback/observer methods. More...

#include <itkCommand.h>

Inheritance diagram for itk::Command:

Inheritance graph
[legend]
Collaboration diagram for itk::Command:

Collaboration graph
[legend]
List of all members.

Public Types

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

Public Methods

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

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. itkObject implements a Subject/Observer pattern. When a subject needs to notify a observer, it does so using a itkCommand. The Execute method is called to run the command.

Definition at line 40 of file itkCommand.h.


Member Typedef Documentation

typedef SmartPointer<const Self> itk::Command::ConstPointer
 

Reimplemented from itk::Object.

Reimplemented in itk::WatershedMiniPipelineProgressCommand.

Definition at line 47 of file itkCommand.h.

typedef SmartPointer<Self> itk::Command::Pointer
 

Reimplemented from itk::Object.

Reimplemented in itk::WatershedMiniPipelineProgressCommand, itk::MemberCommand< T >, itk::ReceptorMemberCommand< T >, itk::SimpleMemberCommand< T >, itk::SimpleConstMemberCommand< T >, and itk::CStyleCommand.

Definition at line 46 of file itkCommand.h.

typedef Command itk::Command::Self
 

Standard class typedefs.

Reimplemented from itk::Object.

Reimplemented in itk::WatershedMiniPipelineProgressCommand, itk::MemberCommand< T >, itk::ReceptorMemberCommand< T >, itk::SimpleMemberCommand< T >, itk::SimpleConstMemberCommand< T >, and itk::CStyleCommand.

Definition at line 44 of file itkCommand.h.

typedef Object itk::Command::Superclass
 

Reimplemented from itk::Object.

Reimplemented in itk::WatershedMiniPipelineProgressCommand.

Definition at line 45 of file itkCommand.h.


Member Function Documentation

virtual void itk::Command::Execute const Object   caller,
const EventObject   event
[pure virtual]
 

Abstract method that defines the action to be taken by the command. This variant is expected to be used when requests comes from a const Object

Implemented in itk::WatershedMiniPipelineProgressCommand, itk::MemberCommand< T >, itk::ReceptorMemberCommand< T >, itk::SimpleMemberCommand< T >, itk::SimpleConstMemberCommand< T >, and itk::CStyleCommand.

virtual void itk::Command::Execute Object   caller,
const EventObject   event
[pure virtual]
 

Abstract method that defines the action to be taken by the command.

Implemented in itk::WatershedMiniPipelineProgressCommand, itk::MemberCommand< T >, itk::ReceptorMemberCommand< T >, itk::SimpleMemberCommand< T >, itk::SimpleConstMemberCommand< T >, and itk::CStyleCommand.

virtual const char* itk::Command::GetClassName   const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::Object.

Reimplemented in itk::WatershedMiniPipelineProgressCommand, itk::MemberCommand< T >, itk::ReceptorMemberCommand< T >, itk::SimpleMemberCommand< T >, itk::SimpleConstMemberCommand< T >, and itk::CStyleCommand.


The documentation for this class was generated from the following file:
Generated at Fri May 21 01:22:53 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000