Class Command
java.lang.Object
org.itk.simple.ObjectOwnedBase
org.itk.simple.Command
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.
C++ includes: sitkCommand.h
- 
Field SummaryFields inherited from class org.itk.simple.ObjectOwnedBaseswigCMemOwn
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::Command::~Command() override Destructor.voidexecute()virtual void itk::simple::Command::Execute() The method that defines action to be taken by the commandprotected voidfinalize()protected static longgetName()std::string itk::simple::Command::GetName() const override Set/Get Command Namevoidvoid itk::simple::Command::SetName(const std::string &n) override Get object name.protected voidprotected static longswigRelease(Command obj) voidvoidMethods inherited from class org.itk.simple.ObjectOwnedBasegetCPtr, swigRelease
- 
Constructor Details- 
Commandprotected Command(long cPtr, boolean cMemoryOwn) 
- 
Commandpublic Command()itk::simple::Command::Command() Default Constructor.
 
- 
- 
Method Details- 
getCPtr
- 
swigRelease
- 
finalizeprotected void finalize()- Overrides:
- finalizein class- ObjectOwnedBase
 
- 
deletepublic void delete()virtual itk::simple::Command::~Command() override Destructor.- Overrides:
- deletein class- ObjectOwnedBase
 
- 
swigDirectorDisconnectprotected void swigDirectorDisconnect()
- 
swigReleaseOwnershippublic void swigReleaseOwnership()
- 
swigTakeOwnershippublic void swigTakeOwnership()
- 
getNamestd::string itk::simple::Command::GetName() const override Set/Get Command Name- Overrides:
- getNamein class- ObjectOwnedBase
 
- 
setNamevoid itk::simple::Command::SetName(const std::string &n) override Get object name.- Overrides:
- setNamein class- ObjectOwnedBase
 
- 
executepublic void execute()virtual void itk::simple::Command::Execute() The method that defines action to be taken by the command
 
-