Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
Medical Imaging Interaction Toolkit
mitkRenderWindowFrame.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 mitkRenderWindowFrame_h
14 #define mitkRenderWindowFrame_h
15 
16 #include <MitkCoreExports.h>
17 #include <itkObject.h>
18 #include <mitkCommon.h>
19 #include <vtkSmartPointer.h>
20 
21 class vtkRenderer;
22 class vtkRenderWindow;
23 
24 namespace mitk
25 {
33  class MITKCORE_EXPORT RenderWindowFrame : public itk::Object
34  {
35  public:
37  itkFactorylessNewMacro(Self);
38  itkCloneMacro(Self);
39 
45  virtual void SetRenderWindow(vtkSmartPointer<vtkRenderWindow> renderWindow);
46 
51  virtual void Enable(float col1, float col2, float col3);
52 
57  virtual void Disable();
58 
63  virtual bool IsEnabled();
64 
69  virtual vtkSmartPointer<vtkRenderWindow> GetRenderWindow();
70 
76  virtual vtkSmartPointer<vtkRenderer> GetVtkRenderer();
77 
78  protected:
83 
87  ~RenderWindowFrame() override;
88 
89  vtkSmartPointer<vtkRenderWindow> m_RenderWindow;
90  vtkSmartPointer<vtkRenderer> m_RectangleRenderer;
92  };
93 } // end of namespace mitk
94 #endif // mitkRenderWindowFrame_h
vtkSmartPointer< vtkRenderWindow > m_RenderWindow
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
vtkSmartPointer< vtkRenderer > m_RectangleRenderer
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45