Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkVtkOverlay.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 VTKOVERLAY_H
18 #define VTKOVERLAY_H
19 
20 #include "mitkOverlay.h"
21 #include <MitkCoreExports.h>
22 #include <vtkSmartPointer.h>
23 
24 class vtkProp;
25 
26 namespace mitk
27 {
33  {
34  public:
36  void Update(BaseRenderer *renderer) override;
37  void AddToBaseRenderer(BaseRenderer *renderer) override;
38  void AddToRenderer(BaseRenderer *renderer, vtkRenderer *vtkrenderer) override;
39  void RemoveFromRenderer(BaseRenderer *renderer, vtkRenderer *vtkrenderer) override;
40  void RemoveFromBaseRenderer(BaseRenderer *renderer) override;
41 
49  void Paint(BaseRenderer *renderer);
50 
51  protected:
57  virtual vtkProp *GetVtkProp(BaseRenderer *renderer) const = 0;
58  virtual void UpdateVtkOverlay(BaseRenderer *renderer) = 0;
59 
61  explicit VtkOverlay();
62 
64  virtual ~VtkOverlay();
65 
66  private:
68  VtkOverlay(const VtkOverlay &);
69 
71  VtkOverlay &operator=(const VtkOverlay &);
72  };
73 
74 } // namespace mitk
75 #endif // OVERLAY_H
#define MITKCORE_EXPORT
The VtkOverlay class is the base for all Overlays which are using the VTK framework to render the ele...
Organizes the rendering process.
static void Update(vtkPolyData *)
Definition: mitkSurface.cpp:35
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Base class for all overlays.
Definition: mitkOverlay.h:34