Package org.itk.simple
Class LoggerBase
java.lang.Object
org.itk.simple.ObjectOwnedBase
org.itk.simple.LoggerBase
- Direct Known Subclasses:
ITKLogger
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
-
Field Summary
Fields inherited from class org.itk.simple.ObjectOwnedBase
swigCMemOwn
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
itk::simple::LoggerBase::~LoggerBase() overridevoid
virtual void itk::simple::LoggerBase::DisplayDebugText(const char *t)void
virtual void itk::simple::LoggerBase::DisplayErrorText(const char *t)void
virtual void itk::simple::LoggerBase::DisplayGenericOutputText(const char *t)void
virtual void itk::simple::LoggerBase::DisplayText(const char *t)=0void
virtual void itk::simple::LoggerBase::DisplayWarningText(const char *t)protected void
finalize()
protected static long
getCPtr
(LoggerBase obj) static ITKLogger
getName()
std::string itk::simple::LoggerBase::GetName() const override Set object name.virtual ITKLogger itk::simple::LoggerBase::SetAsGlobalITKLogger() Set this logger instance to the ITK output window.void
void itk::simple::LoggerBase::SetName(const std::string &n) override Get object name.protected static long
swigRelease
(LoggerBase obj) Methods inherited from class org.itk.simple.ObjectOwnedBase
getCPtr, swigRelease
-
Constructor Details
-
LoggerBase
protected LoggerBase(long cPtr, boolean cMemoryOwn)
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalize
in classObjectOwnedBase
-
delete
public void delete()itk::simple::LoggerBase::~LoggerBase() override- Overrides:
delete
in classObjectOwnedBase
-
displayText
virtual void itk::simple::LoggerBase::DisplayText(const char *t)=0 -
displayErrorText
virtual void itk::simple::LoggerBase::DisplayErrorText(const char *t) -
displayWarningText
virtual void itk::simple::LoggerBase::DisplayWarningText(const char *t) -
displayGenericOutputText
virtual void itk::simple::LoggerBase::DisplayGenericOutputText(const char *t) -
displayDebugText
virtual void itk::simple::LoggerBase::DisplayDebugText(const char *t) -
getName
std::string itk::simple::LoggerBase::GetName() const override Set object name.- Overrides:
getName
in classObjectOwnedBase
-
setName
void itk::simple::LoggerBase::SetName(const std::string &n) override Get object name.- Overrides:
setName
in classObjectOwnedBase
-
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
-