Class LoggerBase

Direct Known Subclasses:
ITKLogger

public class LoggerBase extends ObjectOwnedBase
A base class to handle SimpleITK and ITK messages and logging. In ITK this function is implemented by the itk::OutputWindow, but in SimpleITK it is called a logger. Provides a base class for SimpleITK to provide the "DisplayText" methods that match the interface of itk::OutputWindow. Derived instances of LoggerBase are used by an internal adaptor derived from the itk::OutputWindow so that this object instances can be used in ITK. /sa itk::OutputWindow C++ includes: sitkLogger.h
  • Constructor Details

    • LoggerBase

      protected LoggerBase(long cPtr, boolean cMemoryOwn)
  • Method Details

    • getCPtr

      protected static long getCPtr(LoggerBase obj)
    • swigRelease

      protected static long swigRelease(LoggerBase obj)
    • finalize

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

      public void delete()
      itk::simple::LoggerBase::~LoggerBase() override
      Overrides:
      delete in class ObjectOwnedBase
    • displayText

      public void displayText(String t)
      virtual void itk::simple::LoggerBase::DisplayText(const char *t)=0
    • displayErrorText

      public void displayErrorText(String t)
      virtual void itk::simple::LoggerBase::DisplayErrorText(const char *t)
    • displayWarningText

      public void displayWarningText(String t)
      virtual void itk::simple::LoggerBase::DisplayWarningText(const char *t)
    • displayGenericOutputText

      public void displayGenericOutputText(String t)
      virtual void itk::simple::LoggerBase::DisplayGenericOutputText(const char *t)
    • displayDebugText

      public void displayDebugText(String t)
      virtual void itk::simple::LoggerBase::DisplayDebugText(const char *t)
    • getName

      public String getName()
      std::string itk::simple::LoggerBase::GetName() const override Set object name.
      Overrides:
      getName in class ObjectOwnedBase
    • setName

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

      public ITKLogger setAsGlobalITKLogger()
      virtual ITKLogger itk::simple::LoggerBase::SetAsGlobalITKLogger() Set this logger instance to the ITK output window. After calling this method, all ITK and SimpleITK display, warning and error texts will be handled by this object's methods. An ITKLogger object holding the previous itk::OutputWindow instance. The returned object can be used to restore the original instance.
    • getGlobalITKLogger

      public static ITKLogger getGlobalITKLogger()