Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkRenderWindowBase.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 mitkRenderWindowBase_h
14 #define mitkRenderWindowBase_h
15 
16 #include <MitkCoreExports.h>
17 
20 #include "mitkVtkPropRenderer.h"
21 #include "vtkMitkRenderProp.h"
22 
23 #include "mitkInteractionEvent.h"
24 
25 namespace mitk
26 {
40  {
41  public:
42  // mitkClassMacroItkParent(RenderWindowBase,itk::Object);
43  // itkFactorylessNewMacro(Self)
44  // itkCloneMacro(Self)
45 
46  virtual ~RenderWindowBase();
47 
48  void InitRenderer();
49 
54  virtual vtkRenderWindow *GetVtkRenderWindow() = 0;
55  virtual vtkRenderWindowInteractor *GetVtkRenderWindowInteractor() = 0;
56 
57  virtual bool HandleEvent(InteractionEvent *interactionEvent);
58 
59  protected:
61 
62  // helper functions: within constructors and destructors classes are not polymorph.
63  void Initialize(const char *name = "unnamed renderer");
64  void Destroy();
65 
66  mitk::VtkPropRenderer::Pointer m_Renderer;
67 
69 
70  bool m_InResize;
71 
72  private:
73  };
74 }
75 
76 #endif
#define MITKCORE_EXPORT
Baseclass for renderer slice-/camera-/time-control.
Base class of MITK RenderWindows.
vtkMitkRenderProp * m_RenderProp
virtual mitk::SliceNavigationController * GetSliceNavigationController()
virtual bool HandleEvent(InteractionEvent *interactionEvent)
void Initialize(const char *name="unnamed renderer")
virtual mitk::CameraRotationController * GetCameraRotationController()
virtual vtkRenderWindow * GetVtkRenderWindow()=0
virtual mitk::BaseController * GetController()
virtual mitk::VtkPropRenderer * GetRenderer()
virtual vtkRenderWindowInteractor * GetVtkRenderWindowInteractor()=0
mitk::VtkPropRenderer::Pointer m_Renderer
Controls the selection of the slice the associated BaseRenderer will display.
vtkMitkRenderProp
Find image slices visible on a given plane.