SimpleITK
|
An implementation of the Command design pattern for callback. More...
#include <sitkCommand.h>
An implementation of the Command design pattern for callback.
This class provides a callback mechanism for event that occur from the ProcessObject. These commands can be utilized to observe these events.
The Command can be created on the stack, and will automatically unregistered it's self when destroyed.
For more information see the page CommandPage.
Definition at line 44 of file sitkCommand.h.
Public Member Functions | |
Command () | |
Default Constructor. More... | |
virtual void | Execute () |
std::string | GetName () const override |
void | SetName (const std::string &n) override |
virtual | ~Command () override |
Public Member Functions inherited from itk::simple::ObjectOwnedBase | |
ObjectOwnedBase ()=default | |
virtual | ~ObjectOwnedBase ()=0 |
Public Member Functions inherited from itk::simple::NonCopyable | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable & | operator= (const NonCopyable &)=delete |
Protected Member Functions | |
virtual size_t | AddProcessObject (itk::simple::ProcessObject *o) |
virtual size_t | RemoveProcessObject (const itk::simple::ProcessObject *o) |
Protected Member Functions inherited from itk::simple::ObjectOwnedBase | |
virtual size_t | AddObjectCallback (itk::Object *o, std::function< void()> onDelete) |
Register an Object and a method to call on this object's destructor. More... | |
ObjectOwnedBase (const ObjectOwnedBase &o) | |
Copy Constructor. More... | |
virtual size_t | RemoveObject (const itk::Object *) |
virtual void | SetOwnedByObjects (bool o) |
virtual bool | GetOwnedByObjects () const |
virtual void | OwnedByObjectsOn () |
virtual void | OwnedByObjectsOff () |
Protected Member Functions inherited from itk::simple::NonCopyable | |
NonCopyable ()=default | |
Friends | |
class | itk::simple::ProcessObject |
itk::simple::Command::Command | ( | ) |
Default Constructor.
|
overridevirtual |
Destructor.
|
protectedvirtual |
|
virtual |
The method that defines action to be taken by the command
Reimplemented in itk::simple::FunctionCommand.
|
overridevirtual |
Set/Get Command Name
Reimplemented from itk::simple::ObjectOwnedBase.
|
protectedvirtual |
|
overridevirtual |
Get object name.
Reimplemented from itk::simple::ObjectOwnedBase.
|
friend |
Definition at line 64 of file sitkCommand.h.