Medical Imaging Interaction Toolkit  2026.06.00
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 {
34  class MITKCORE_EXPORT RenderWindowFrame : public itk::Object
35  {
36  public:
38  itkFactorylessNewMacro(Self);
39  itkCloneMacro(Self);
40 
49 
59  virtual void Enable(float col1, float col2, float col3);
60 
66  virtual void Disable();
67 
73  virtual bool IsEnabled();
74 
81 
88 
89  protected:
92 
94  ~RenderWindowFrame() override;
95 
99  };
100 } // end of namespace mitk
101 #endif
#define MITKCORE_EXPORT
Renders a colored rectangle frame at the borders of a vtkRenderWindow.
vtkSmartPointer< vtkRenderer > m_RectangleRenderer
RenderWindowFrame()
Constructor.
virtual void SetRenderWindow(vtkSmartPointer< vtkRenderWindow > renderWindow)
Set the render window in which the colored rectangle border will be shown.
virtual void Disable()
Disable drawing of the colored rectangle frame.
vtkSmartPointer< vtkRenderWindow > m_RenderWindow
mitkClassMacroItkParent(RenderWindowFrame, itk::Object)
~RenderWindowFrame() override
Destructor.
virtual vtkSmartPointer< vtkRenderWindow > GetRenderWindow()
Get the vtkRenderWindow used for displaying the frame.
virtual void Enable(float col1, float col2, float col3)
Enable drawing of the colored rectangle frame.
virtual vtkSmartPointer< vtkRenderer > GetVtkRenderer()
Get the renderer responsible for rendering the frame.
virtual bool IsEnabled()
Check whether the frame is currently enabled (visible).
Find image slices visible on a given plane.