Medical Imaging Interaction Toolkit  2016.11.0
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,
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 MITKRENDERWINDOWBASE_H_HEADER_INCLUDED_C1C40D66ASDF
18 #define MITKRENDERWINDOWBASE_H_HEADER_INCLUDED_C1C40D66ASDF
19 
20 #include <MitkCoreExports.h>
21 
24 #include "mitkVtkPropRenderer.h"
25 #include "vtkMitkRenderProp.h"
26 
27 #include "mitkInteractionEvent.h"
28 
29 namespace mitk
30 {
44  {
45  public:
46  // mitkClassMacroItkParent(RenderWindowBase,itk::Object);
47  // itkFactorylessNewMacro(Self)
48  // itkCloneMacro(Self)
49 
50  virtual ~RenderWindowBase();
51 
52  void InitRenderer();
53 
54  virtual mitk::SliceNavigationController *GetSliceNavigationController();
55  virtual mitk::CameraRotationController *GetCameraRotationController();
56  virtual mitk::BaseController *GetController();
57  virtual mitk::VtkPropRenderer *GetRenderer();
58  virtual vtkRenderWindow *GetVtkRenderWindow() = 0;
59  virtual vtkRenderWindowInteractor *GetVtkRenderWindowInteractor() = 0;
60 
61  virtual bool HandleEvent(InteractionEvent *interactionEvent);
62 
63  protected:
65 
66  // helper functions: within constructors and destructors classes are not polymorph.
67  void Initialize(
68  mitk::RenderingManager *renderingManager = NULL,
69  const char *name = "unnamed renderer",
71  void Destroy();
72 
74 
76 
77  bool m_InResize;
78 
79  private:
80  };
81 }
82 
83 #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.
Manager for coordinating the rendering process.
mitk::VtkPropRenderer::Pointer m_Renderer
vtkMitkRenderProp * m_RenderProp