Medical Imaging Interaction Toolkit  2016.11.0
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,
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 mitkRenderWindowFrame_h
18 #define mitkRenderWindowFrame_h
19 
20 #include <MitkCoreExports.h>
21 #include <itkObject.h>
22 #include <mitkCommon.h>
23 #include <vtkSmartPointer.h>
24 
25 class vtkRenderer;
26 class vtkRenderWindow;
27 
28 namespace mitk
29 {
37  class MITKCORE_EXPORT RenderWindowFrame : public itk::Object
38  {
39  public:
41  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
42 
48  virtual void SetRenderWindow(vtkSmartPointer<vtkRenderWindow> renderWindow);
49 
54  virtual void Enable(float col1, float col2, float col3);
55 
60  virtual void Disable();
61 
66  virtual bool IsEnabled();
67 
72  virtual vtkSmartPointer<vtkRenderWindow> GetRenderWindow();
73 
79  virtual vtkSmartPointer<vtkRenderer> GetVtkRenderer();
80 
81  protected:
86 
90  ~RenderWindowFrame();
91 
92  vtkSmartPointer<vtkRenderWindow> m_RenderWindow;
93  vtkSmartPointer<vtkRenderer> m_RectangleRenderer;
94  bool m_IsEnabled;
95  };
96 } // end of namespace mitk
97 #endif // mitkRenderWindowFrame_h
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53