Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef VtkLoggingAdapter_H_HEADER_INCLUDED
18 #define VtkLoggingAdapter_H_HEADER_INCLUDED
19 
20 #include <MitkCoreExports.h>
21 #include <vtkOutputWindow.h>
22 #include <vtkSmartPointer.h>
23 
24 namespace mitk
25 {
31  class MITKCORE_EXPORT VtkLoggingAdapter : public vtkOutputWindow
32  {
33  public:
34  static VtkLoggingAdapter *New();
35 
39  static void Initialize();
40 
41  virtual void DisplayText(const char *t) override;
42 
43  virtual void DisplayErrorText(const char *t) override;
44 
45  virtual void DisplayWarningText(const char *t) override;
46 
47  virtual void DisplayGenericWarningText(const char *t) override;
48 
49  virtual void DisplayDebugText(const char *t) override;
50 
51  protected:
52  };
53 
54 } // namespace mitk
55 
56 #endif /* VtkLoggingAdapter_H_HEADER_INCLUDED */
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Adapter that overwrites the standard vtk logging output window and sends the logging messages to the ...
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.