Medical Imaging Interaction Toolkit  2024.06.00
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
14 #define mitkVtkGLMapperWrapper_h
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;
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
mitkLocalStorageHandler.h
mitk::VtkPropRenderer::RenderType
RenderType
Definition: mitkVtkPropRenderer.h:71
mitk::VtkGLMapperWrapper::m_MitkGLMapper
GLMapper::Pointer m_MitkGLMapper
Definition: mitkVtkGLMapperWrapper.h:70
mitkGLMapper.h
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
mitk::Mapper::Pointer
itk::SmartPointer< Self > Pointer
Definition: mitkMapper.h:49
vtkSmartPointer< vtkGLMapperProp >
mitk::VtkGLMapperWrapper
Vtk-based 2D mapper for PointSet.
Definition: mitkVtkGLMapperWrapper.h:30
MITKLEGACYGL_EXPORT
#define MITKLEGACYGL_EXPORT
Definition: MitkLegacyGLExports.h:15
MitkLegacyGLExports.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::LocalStorageHandler< LocalStorage >
mitk::VtkGLMapperWrapper::LocalStorage
Internal class holding the mapper, actor, etc. for each of the 3 2D render windows.
Definition: mitkVtkGLMapperWrapper.h:45
mitk::VtkGLMapperWrapper::LocalStorage::m_GLMapperProp
vtkSmartPointer< vtkGLMapperProp > m_GLMapperProp
Definition: mitkVtkGLMapperWrapper.h:53
mitk::Mapper
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:46
mitk::VtkMapper
Base class of all Vtk Mappers in order to display primitives by exploiting Vtk functionality.
Definition: mitkVtkMapper.h:47
mitk::Mapper::BaseLocalStorage
Base class for mapper specific rendering resources.
Definition: mitkMapper.h:190
mitkVtkMapper.h
vtkGLMapperProp
The vtkGLMapperProp class is a VtkProp, wrapping a GLMapper.
Definition: vtkGLMapperProp.h:25
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitk::VtkGLMapperWrapper::m_LSH
mitk::LocalStorageHandler< LocalStorage > m_LSH
The LocalStorageHandler holds all (three) LocalStorages for the three 2D render windows.
Definition: mitkVtkGLMapperWrapper.h:67
mitkBaseRenderer.h
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63