Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkVtkLoggingAdapter.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 mitkVtkLoggingAdapter_h
14 #define mitkVtkLoggingAdapter_h
15 
16 #include <MitkCoreExports.h>
17 #include <vtkOutputWindow.h>
18 #include <vtkSmartPointer.h>
19 
20 namespace mitk
21 {
27  class MITKCORE_EXPORT VtkLoggingAdapter : public vtkOutputWindow
28  {
29  public:
30  static VtkLoggingAdapter *New();
31 
35  static void Initialize();
36 
37  void DisplayText(const char *t) override;
38 
39  void DisplayErrorText(const char *t) override;
40 
41  void DisplayWarningText(const char *t) override;
42 
43  void DisplayGenericWarningText(const char *t) override;
44 
45  void DisplayDebugText(const char *t) override;
46 
47  protected:
48  };
49 
50 } // namespace mitk
51 
52 #endif
mitk::VtkLoggingAdapter
Adapter that overwrites the standard vtk logging output window and sends the logging messages to the ...
Definition: mitkVtkLoggingAdapter.h:27
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
MitkCoreExports.h
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15