Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::VtkLoggingAdapter Class Reference

Adapter that redirects VTK logging output to the MITK logging system. More...

#include <mitkVtkLoggingAdapter.h>

Inheritance diagram for mitk::VtkLoggingAdapter:
Collaboration diagram for mitk::VtkLoggingAdapter:

Public Member Functions

void DisplayText (const char *t) override
 Display a general text message via MITK_INFO. More...
 
void DisplayErrorText (const char *t) override
 Display an error message via MITK_ERROR. More...
 
void DisplayWarningText (const char *t) override
 Display a warning message via MITK_WARN. More...
 
void DisplayGenericWarningText (const char *t) override
 Display a generic warning message via MITK_WARN. More...
 
void DisplayDebugText (const char *t) override
 Display a debug message via MITK_DEBUG. More...
 

Static Public Member Functions

static VtkLoggingAdapter * New ()
 
static void Initialize ()
 Initialize the logging adapter. More...
 

Detailed Description

Adapter that redirects VTK logging output to the MITK logging system.

Replaces the standard vtkOutputWindow so that all VTK log messages (text, error, warning, debug) are forwarded to the MITK logging framework.

Definition at line 30 of file mitkVtkLoggingAdapter.h.

Member Function Documentation

◆ DisplayDebugText()

void mitk::VtkLoggingAdapter::DisplayDebugText ( const char *  t)
override

Display a debug message via MITK_DEBUG.

Parameters
[in]tThe debug text to display.

◆ DisplayErrorText()

void mitk::VtkLoggingAdapter::DisplayErrorText ( const char *  t)
override

Display an error message via MITK_ERROR.

Parameters
[in]tThe error text to display.

◆ DisplayGenericWarningText()

void mitk::VtkLoggingAdapter::DisplayGenericWarningText ( const char *  t)
override

Display a generic warning message via MITK_WARN.

Parameters
[in]tThe warning text to display.

◆ DisplayText()

void mitk::VtkLoggingAdapter::DisplayText ( const char *  t)
override

Display a general text message via MITK_INFO.

Parameters
[in]tThe text message to display.

◆ DisplayWarningText()

void mitk::VtkLoggingAdapter::DisplayWarningText ( const char *  t)
override

Display a warning message via MITK_WARN.

Parameters
[in]tThe warning text to display.

◆ Initialize()

static void mitk::VtkLoggingAdapter::Initialize ( )
static

Initialize the logging adapter.

After calling this method, all VTK logging messages are redirected to the MITK logging system.

◆ New()

static VtkLoggingAdapter* mitk::VtkLoggingAdapter::New ( )
static

The documentation for this class was generated from the following file: