Medical Imaging Interaction Toolkit  2024.06.99-c70462f2
Medical Imaging Interaction Toolkit
mitkRenderWindow.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 mitkRenderWindow_h
14 #define mitkRenderWindow_h
15 
16 #include <MitkCoreExports.h>
17 
18 #include "mitkRenderWindowBase.h"
19 
20 namespace mitk
21 {
22  class vtkEventProvider;
23 
31  class MITKCORE_EXPORT RenderWindow : public mitk::RenderWindowBase, public itk::Object
32  {
33  public:
35  itkFactorylessNewMacro(Self);
36  itkCloneMacro(Self);
37  mitkNewMacro1Param(Self, vtkRenderWindow*);
38  mitkNewMacro2Param(Self, vtkRenderWindow *, const char *);
39 
40  ~RenderWindow() override;
41 
42  vtkRenderWindow *GetVtkRenderWindow() override;
43  vtkRenderWindowInteractor *GetVtkRenderWindowInteractor() override;
44 
45  // Set Layout Index to define the Layout Type
46  void SetLayoutIndex(unsigned int layoutIndex);
47 
48  // Get Layout Index to define the Layout Type
49  unsigned int GetLayoutIndex();
50 
51  // MenuWidget need to update the Layout Design List when Layout had changed
52  void LayoutDesignListChanged(int layoutDesignIndex);
53 
54  void FullScreenMode(bool state);
55 
62  void SetSize(int width, int height);
63 
77  void ReinitEventProvider();
78 
79  protected:
80  RenderWindow(vtkRenderWindow *existingRenderWindow = nullptr,
81  const char *name = "unnamed renderer");
82 
83  void ResetView();
84  vtkRenderWindow *m_vtkRenderWindow;
85  vtkRenderWindowInteractor *m_vtkRenderWindowInteractor;
86 
88 
89  private:
90  };
91 } // namespace
92 
93 #endif
mitk::RenderWindow::m_vtkMitkEventProvider
vtkEventProvider * m_vtkMitkEventProvider
Definition: mitkRenderWindow.h:87
mitkNewMacro2Param
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:81
mitkRenderWindowBase.h
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
mitk::RenderWindowBase
Base class of MITK RenderWindows.
Definition: mitkRenderWindowBase.h:39
mitk::RenderWindow
mitkRenderWindow integrates the MITK rendering mechanism into VTK and is NOT QT dependent
Definition: mitkRenderWindow.h:31
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::vtkEventProvider
Integrates into the VTK event mechanism to generate MITK specific events. This class is NON-QT depend...
Definition: mitkVtkEventProvider.h:28
MitkCoreExports.h
mitk::RenderWindow::m_vtkRenderWindow
vtkRenderWindow * m_vtkRenderWindow
Definition: mitkRenderWindow.h:84
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15
mitk::RenderWindow::m_vtkRenderWindowInteractor
vtkRenderWindowInteractor * m_vtkRenderWindowInteractor
Definition: mitkRenderWindow.h:85