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 Summary
Fields inherited from class org.itk.simple.ObjectOwnedBase
swigCMemOwn -
Constructor Summary
Constructors -
Method Summary
Modifier 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.ObjectOwnedBase
getCPtr, swigRelease
-
Constructor Details
-
Command
protected Command(long cPtr, boolean cMemoryOwn) -
Command
public Command()itk::simple::Command::Command() Default Constructor.
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalizein classObjectOwnedBase
-
delete
public void delete()virtual itk::simple::Command::~Command() override Destructor.- Overrides:
deletein classObjectOwnedBase
-
swigDirectorDisconnect
protected void swigDirectorDisconnect() -
swigReleaseOwnership
public void swigReleaseOwnership() -
swigTakeOwnership
public void swigTakeOwnership() -
getName
std::string itk::simple::Command::GetName() const override Set/Get Command Name- Overrides:
getNamein classObjectOwnedBase
-
setName
void itk::simple::Command::SetName(const std::string &n) override Get object name.- Overrides:
setNamein classObjectOwnedBase
-
execute
public void execute()virtual void itk::simple::Command::Execute() The method that defines action to be taken by the command
-