Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkVtkWidgetRendering.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 _vtk_Widget_Rendering_h_
18 #define _vtk_Widget_Rendering_h_
19 
20 #include <mitkBaseData.h>
21 
22 class vtkRenderer;
23 class vtkRenderWindow;
24 class vtkInteractorObserver;
25 
26 namespace mitk
27 {
28  class RenderWindow;
29 
43  {
44  public:
46 
47  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
48 
54  virtual void SetRenderWindow(vtkRenderWindow *renderWindow);
55 
60  virtual void Enable();
61 
66  virtual void Disable();
67 
72  virtual bool IsEnabled();
73 
78  virtual void SetRequestedRegionToLargestPossibleRegion() override;
79 
84  virtual bool RequestedRegionIsOutsideOfTheBufferedRegion() override;
85 
90  virtual bool VerifyRequestedRegion() override;
91 
96  virtual void SetRequestedRegion(const itk::DataObject *) override;
97 
102  virtual vtkRenderWindow *GetRenderWindow();
103 
109  virtual vtkRenderer *GetVtkRenderer();
110 
112  void SetVtkWidget(vtkInteractorObserver *widget);
113 
115  vtkInteractorObserver *GetVtkWidget() const;
116 
117  protected:
122 
126  ~VtkWidgetRendering();
127 
128  vtkRenderWindow *m_RenderWindow;
129  vtkRenderer *m_Renderer;
130 
131  vtkInteractorObserver *m_VtkWidget;
132 
133  bool m_IsEnabled;
134  };
135 
136 } // end of namespace mitk
137 #endif
#define MITKCORE_EXPORT
Base of all data objects.
Definition: mitkBaseData.h:39
DataCollection - Class to facilitate loading/accessing structured data.
Mechanism for rendering a vtkWidget in the foreground of a RenderWindow.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44