Class Command


public class Command extends ObjectOwnedBase
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
  • Constructor Details

    • Command

      protected Command(long cPtr, boolean cMemoryOwn)
    • Command

      public Command()
      itk::simple::Command::Command() Default Constructor.
  • Method Details

    • getCPtr

      protected static long getCPtr(Command obj)
    • swigRelease

      protected static long swigRelease(Command obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class ObjectOwnedBase
    • delete

      public void delete()
      virtual itk::simple::Command::~Command() override Destructor.
      Overrides:
      delete in class ObjectOwnedBase
    • swigDirectorDisconnect

      protected void swigDirectorDisconnect()
    • swigReleaseOwnership

      public void swigReleaseOwnership()
    • swigTakeOwnership

      public void swigTakeOwnership()
    • getName

      public String getName()
      std::string itk::simple::Command::GetName() const override Set/Get Command Name
      Overrides:
      getName in class ObjectOwnedBase
    • setName

      public void setName(String n)
      void itk::simple::Command::SetName(const std::string &n) override Get object name.
      Overrides:
      setName in class ObjectOwnedBase
    • execute

      public void execute()
      virtual void itk::simple::Command::Execute() The method that defines action to be taken by the command