Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkItkLoggingAdapter.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkItkLoggingAdapter_h
14 #define mitkItkLoggingAdapter_h
15 
16 #include <MitkCoreExports.h>
17 #include <itkObjectFactory.h>
18 #include <itkOutputWindow.h>
19 
20 namespace mitk
21 {
28  class MITKCORE_EXPORT ItkLoggingAdapter : public itk::OutputWindow
29  {
30  public:
34 
36  itkTypeMacro(ItkLoggingAdapter, itk::OutputWindow);
37 
39  itkFactorylessNewMacro(Self);
40  itkCloneMacro(Self);
41 
47  static void Initialize();
48 
50  void DisplayText(const char *s) override;
51 
52  protected:
54  ~ItkLoggingAdapter() override;
55 
56  private:
57  ItkLoggingAdapter(const Self &); // purposely not implemented
58  void operator=(const Self &); // purposely not implemented
59  };
60 }
61 
62 #endif
#define MITKCORE_EXPORT
Adapter that overwrites the standard ITK logging output window and redirects logging messages to the ...
void DisplayText(const char *s) override
Displays text by forwarding it to MITK_INFO.
static void Initialize()
Initializes the logging adapter.
~ItkLoggingAdapter() override
itk::SmartPointer< const Self > ConstPointer
itk::SmartPointer< Self > Pointer
Find image slices visible on a given plane.