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.
See:
 itk::OutputWindow
C++ includes: sitkLogger.h
- 
Field SummaryFields inherited from class org.itk.simple.ObjectOwnedBaseswigCMemOwn
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()itk::simple::LoggerBase::~LoggerBase() overridevoidvirtual void itk::simple::LoggerBase::DisplayDebugText(const char *t)voidvirtual void itk::simple::LoggerBase::DisplayErrorText(const char *t)voidvirtual void itk::simple::LoggerBase::DisplayGenericOutputText(const char *t)voidvirtual void itk::simple::LoggerBase::DisplayText(const char *t)=0voidvirtual void itk::simple::LoggerBase::DisplayWarningText(const char *t)protected voidfinalize()protected static longgetCPtr(LoggerBase obj) static ITKLoggergetName()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.voidvoid itk::simple::LoggerBase::SetName(const std::string &n) override Get object name.protected static longswigRelease(LoggerBase obj) Methods inherited from class org.itk.simple.ObjectOwnedBasegetCPtr, swigRelease
- 
Constructor Details- 
LoggerBaseprotected LoggerBase(long cPtr, boolean cMemoryOwn) 
 
- 
- 
Method Details- 
getCPtr
- 
swigRelease
- 
finalizeprotected void finalize()- Overrides:
- finalizein class- ObjectOwnedBase
 
- 
deletepublic void delete()itk::simple::LoggerBase::~LoggerBase() override- Overrides:
- deletein class- ObjectOwnedBase
 
- 
displayTextvirtual void itk::simple::LoggerBase::DisplayText(const char *t)=0
- 
displayErrorTextvirtual void itk::simple::LoggerBase::DisplayErrorText(const char *t)
- 
displayWarningTextvirtual void itk::simple::LoggerBase::DisplayWarningText(const char *t)
- 
displayGenericOutputTextvirtual void itk::simple::LoggerBase::DisplayGenericOutputText(const char *t)
- 
displayDebugTextvirtual void itk::simple::LoggerBase::DisplayDebugText(const char *t)
- 
getNamestd::string itk::simple::LoggerBase::GetName() const override Set object name.- Overrides:
- getNamein class- ObjectOwnedBase
 
- 
setNamevoid itk::simple::LoggerBase::SetName(const std::string &n) override Get object name.- Overrides:
- setNamein class- ObjectOwnedBase
 
- 
setAsGlobalITKLoggervirtual 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
 
-