ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkCommand.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
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 &) |
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.
Definition at line 44 of file itkCommand.h.
typedef SmartPointer< const Self > itk::Command::ConstPointer |
Reimplemented from itk::Object.
Reimplemented in itk::CommandIterationUpdate< TOptimizer >, itk::CommandVnlIterationUpdate< TOptimizer >, and itk::WatershedMiniPipelineProgressCommand.
Definition at line 51 of file itkCommand.h.
typedef SmartPointer< Self > itk::Command::Pointer |
Reimplemented from itk::Object.
Reimplemented in itk::CStyleCommand, itk::SimpleConstMemberCommand< T >, itk::SimpleMemberCommand< T >, itk::ReceptorMemberCommand< T >, itk::MemberCommand< T >, itk::CommandIterationUpdate< TOptimizer >, itk::CommandVnlIterationUpdate< TOptimizer >, and itk::WatershedMiniPipelineProgressCommand.
Definition at line 50 of file itkCommand.h.
typedef Command itk::Command::Self |
Standard class typedefs.
Reimplemented from itk::Object.
Reimplemented in itk::CStyleCommand, itk::SimpleConstMemberCommand< T >, itk::SimpleMemberCommand< T >, itk::ReceptorMemberCommand< T >, itk::MemberCommand< T >, itk::CommandIterationUpdate< TOptimizer >, itk::CommandVnlIterationUpdate< TOptimizer >, and itk::WatershedMiniPipelineProgressCommand.
Definition at line 48 of file itkCommand.h.
typedef Object itk::Command::Superclass |
Reimplemented from itk::Object.
Reimplemented in itk::CommandIterationUpdate< TOptimizer >, itk::CommandVnlIterationUpdate< TOptimizer >, and itk::WatershedMiniPipelineProgressCommand.
Definition at line 49 of file itkCommand.h.
itk::Command::Command | ( | ) | [protected] |
itk::Command::~Command | ( | ) | [protected] |
itk::Command::Command | ( | const Self & | ) | [private] |
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::CStyleCommand, itk::SimpleConstMemberCommand< T >, itk::SimpleMemberCommand< T >, itk::ReceptorMemberCommand< T >, itk::MemberCommand< T >, itk::CommandIterationUpdate< TOptimizer >, itk::CommandVnlIterationUpdate< TOptimizer >, and itk::WatershedMiniPipelineProgressCommand.
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::CStyleCommand, itk::SimpleConstMemberCommand< T >, itk::SimpleMemberCommand< T >, itk::ReceptorMemberCommand< T >, itk::MemberCommand< T >, itk::CommandIterationUpdate< TOptimizer >, itk::CommandVnlIterationUpdate< TOptimizer >, and itk::WatershedMiniPipelineProgressCommand.
virtual const char* itk::Command::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::Object.
Reimplemented in itk::CStyleCommand, itk::SimpleConstMemberCommand< T >, itk::SimpleMemberCommand< T >, itk::ReceptorMemberCommand< T >, itk::MemberCommand< T >, itk::CommandIterationUpdate< TOptimizer >, itk::CommandVnlIterationUpdate< TOptimizer >, and itk::WatershedMiniPipelineProgressCommand.
void itk::Command::operator= | ( | const Self & | ) | [private] |