Package org.itk.simple
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 TypeMethodDescriptionvoid
delete()
virtual itk::simple::Command::~Command() override Destructor.void
execute()
virtual void itk::simple::Command::Execute() The method that defines action to be taken by the commandprotected void
finalize()
protected static long
getName()
std::string itk::simple::Command::GetName() const override Set/Get Command Namevoid
void itk::simple::Command::SetName(const std::string &n) override Get object name.protected void
protected static long
swigRelease
(Command obj) void
void
Methods 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:
finalize
in classObjectOwnedBase
-
delete
public void delete()virtual itk::simple::Command::~Command() override Destructor.- Overrides:
delete
in 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:
getName
in classObjectOwnedBase
-
setName
void itk::simple::Command::SetName(const std::string &n) override Get object name.- Overrides:
setName
in classObjectOwnedBase
-
execute
public void execute()virtual void itk::simple::Command::Execute() The method that defines action to be taken by the command
-