Medical Imaging Interaction Toolkit  2024.06.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 mitkVtkWidgetRendering_h
14 #define mitkVtkWidgetRendering_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
mitk::VtkWidgetRendering::m_RenderWindow
vtkRenderWindow * m_RenderWindow
Definition: mitkVtkWidgetRendering.h:126
mitk::VtkWidgetRendering::m_IsEnabled
bool m_IsEnabled
Definition: mitkVtkWidgetRendering.h:131
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::VtkWidgetRendering::m_VtkWidget
vtkInteractorObserver * m_VtkWidget
Definition: mitkVtkWidgetRendering.h:129
mitk::VtkWidgetRendering
Mechanism for rendering a vtkWidget in the foreground of a RenderWindow.
Definition: mitkVtkWidgetRendering.h:38
mitk::BaseData
Base of all data objects.
Definition: mitkBaseData.h:42
mitkBaseData.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::VtkWidgetRendering::m_Renderer
vtkRenderer * m_Renderer
Definition: mitkVtkWidgetRendering.h:127
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15