Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkGLMapper.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 mitkGLMapper_h
14 #define mitkGLMapper_h
15 
16 #include "mitkBaseRenderer.h"
17 #include "mitkMapper.h"
18 #include "mitkVtkPropRenderer.h"
19 #include <MitkLegacyGLExports.h>
20 
21 namespace mitk
22 {
42  {
43  public:
45 
47  virtual void Paint(mitk::BaseRenderer *renderer) = 0;
48 
52  DEPRECATED(inline virtual void ApplyProperties(mitk::BaseRenderer *renderer))
53  {
54  ApplyColorAndOpacityProperties(renderer);
55  }
56 
60  void ApplyColorAndOpacityProperties(mitk::BaseRenderer *renderer, vtkActor *actor = nullptr) override;
61 
68 
73  DEPRECATED(virtual bool IsVtkBased() const override);
74 
78  protected:
81 
83  ~GLMapper() override;
84 
85  private:
87  GLMapper(const GLMapper &);
88 
90  GLMapper &operator=(const GLMapper &);
91  };
92 
93 } // namespace mitk
94 
95 #endif
#define MITKLEGACYGL_EXPORT
Base class of all OpenGL-based mappers.
Definition: mitkGLMapper.h:42
void MitkRender(mitk::BaseRenderer *renderer, mitk::VtkPropRenderer::RenderType type) override
Checks visibility and calls the paint method.
void ApplyColorAndOpacityProperties(mitk::BaseRenderer *renderer, vtkActor *actor=nullptr) override
Apply color and opacity properties read from the PropertyList. The actor is not used in the GLMappers...
virtual bool IsVtkBased() const override
Returns whether this is a vtk-based mapper.
GLMapper()
Returns whether this mapper allows picking in the renderwindow virtual bool IsPickable() const { retu...
~GLMapper() override
virtual void ApplyProperties(mitk::BaseRenderer *renderer)
Apply color and opacity properties read from the PropertyList.
Definition: mitkGLMapper.h:52
virtual void Paint(mitk::BaseRenderer *renderer)=0
Do the painting into the renderer.
mitkClassMacro(GLMapper, Mapper)
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:47
#define DEPRECATED(func)
Definition: mitkCommon.h:175
Find image slices visible on a given plane.