Medical Imaging Interaction Toolkit  2021.10.00
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 (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 _vtk_Widget_Rendering_h_
14 #define _vtk_Widget_Rendering_h_
15 
16 #include <mitkBaseData.h>
17 
18 class vtkRenderer;
19 class vtkRenderWindow;
20 class vtkInteractorObserver;
21 
22 namespace mitk
23 {
24  class RenderWindow;
25 
39  {
40  public:
42 
43  itkFactorylessNewMacro(Self);
44 
45  itkCloneMacro(Self);
46 
52  virtual void SetRenderWindow(vtkRenderWindow *renderWindow);
53 
58  virtual void Enable();
59 
64  virtual void Disable();
65 
70  virtual bool IsEnabled();
71 
76  void SetRequestedRegionToLargestPossibleRegion() override;
77 
82  bool RequestedRegionIsOutsideOfTheBufferedRegion() override;
83 
88  bool VerifyRequestedRegion() override;
89 
94  void SetRequestedRegion(const itk::DataObject *) override;
95 
100  virtual vtkRenderWindow *GetRenderWindow();
101 
107  virtual vtkRenderer *GetVtkRenderer();
108 
110  void SetVtkWidget(vtkInteractorObserver *widget);
111 
113  vtkInteractorObserver *GetVtkWidget() const;
114 
115  protected:
120 
124  ~VtkWidgetRendering() override;
125 
126  vtkRenderWindow *m_RenderWindow;
127  vtkRenderer *m_Renderer;
128 
129  vtkInteractorObserver *m_VtkWidget;
130 
132  };
133 
134 } // end of namespace mitk
135 #endif
#define MITKCORE_EXPORT
Base of all data objects.
Definition: mitkBaseData.h:42
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:36
vtkInteractorObserver * m_VtkWidget