Medical Imaging Interaction Toolkit  2022.04.99-194dd5d8
Medical Imaging Interaction Toolkit
mitkVtkGLMapperWrapper.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 MITKVtkGLMapperWrapper_H_HEADER
14 #define MITKVtkGLMapperWrapper_H_HEADER
15 
16 #include "mitkBaseRenderer.h"
17 #include "mitkGLMapper.h"
19 #include "mitkVtkMapper.h"
20 #include <MitkLegacyGLExports.h>
21 #include <vtkSmartPointer.h>
22 
23 class vtkGLMapperProp;
24 
25 namespace mitk
26 {
31  {
32  public:
34 
36 
37  itkCloneMacro(Self);
38 
40  vtkProp *GetVtkProp(mitk::BaseRenderer *renderer) override;
41 
42  void GenerateDataForRenderer(mitk::BaseRenderer *renderer) override;
43 
46  {
47  public:
48  /* constructor */
49  LocalStorage();
50 
51  /* destructor */
52  ~LocalStorage() override;
53  vtkSmartPointer<vtkGLMapperProp> m_GLMapperProp;
54  };
55 
56  void ApplyColorAndOpacityProperties(mitk::BaseRenderer *renderer, vtkActor *actor) override;
57 
58  void MitkRender(mitk::BaseRenderer *renderer, mitk::VtkPropRenderer::RenderType type) override;
59 
60  void Update(BaseRenderer *renderer) override;
61 
62  void SetDataNode(DataNode *node) override;
63 
64  DataNode *GetDataNode() const override;
65 
68 
69  protected:
71  /* constructor */
73 
74  /* destructor */
75  ~VtkGLMapperWrapper() override;
76  void Enable2DOpenGL(mitk::BaseRenderer *);
77  void Disable2DOpenGL();
78  };
79 
80 } // namespace mitk
81 
82 #endif /* MITKVtkGLMapperWrapper_H_HEADER_INCLUDED_C1902626 */
Base class for mapper specific rendering ressources.
Definition: mitkMapper.h:190
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
mitk::LocalStorageHandler< LocalStorage > m_LSH
The LocalStorageHandler holds all (three) LocalStorages for the three 2D render windows.
Organizes the rendering process.
Internal class holding the mapper, actor, etc. for each of the 3 2D render windows.
DataCollection - Class to facilitate loading/accessing structured data.
Vtk-based 2D mapper for PointSet.
Base class of all Vtk Mappers in order to display primitives by exploiting Vtk functionality.
Definition: mitkVtkMapper.h:48
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:46
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
vtkSmartPointer< vtkGLMapperProp > m_GLMapperProp
The vtkGLMapperProp class is a VtkProp, wrapping a GLMapper.
#define MITKLEGACYGL_EXPORT
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63