Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
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_HEADER_INCLUDED_C1C40D66ASDF
14 #define MITKRENDERWINDOWBASE_H_HEADER_INCLUDED_C1C40D66ASDF
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 
50  virtual mitk::SliceNavigationController *GetSliceNavigationController();
51  virtual mitk::CameraRotationController *GetCameraRotationController();
52  virtual mitk::BaseController *GetController();
53  virtual mitk::VtkPropRenderer *GetRenderer();
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 
67 
69 
70  bool m_InResize;
71 
72  private:
73  };
74 }
75 
76 #endif /* MITKRENDERWINDOWBASE_H_HEADER_INCLUDED_C1C40D66ASDF */
Base class of MITK RenderWindows.
#define MITKCORE_EXPORT
Baseclass for renderer slice-/camera-control.
vtkMitkRenderProp
DataCollection - Class to facilitate loading/accessing structured data.
Controls the selection of the slice the associated BaseRenderer will display.
mitk::VtkPropRenderer::Pointer m_Renderer
vtkMitkRenderProp * m_RenderProp