Medical Imaging Interaction Toolkit  2024.06.00
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 
67  void MitkRender(mitk::BaseRenderer *renderer, mitk::VtkPropRenderer::RenderType type) override;
68 
73  DEPRECATED(virtual bool IsVtkBased() const override);
74 
78  protected:
80  GLMapper();
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
mitk::VtkPropRenderer::RenderType
RenderType
Definition: mitkVtkPropRenderer.h:71
mitkVtkPropRenderer.h
DEPRECATED
#define DEPRECATED(func)
Definition: mitkCommon.h:175
MITKLEGACYGL_EXPORT
#define MITKLEGACYGL_EXPORT
Definition: MitkLegacyGLExports.h:15
MitkLegacyGLExports.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkMapper.h
mitk::Mapper
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:46
mitk::GLMapper
Base class of all OpenGL-based mappers.
Definition: mitkGLMapper.h:41
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitk::GLMapper::ApplyProperties
virtual void ApplyProperties(mitk::BaseRenderer *renderer)
Apply color and opacity properties read from the PropertyList.
Definition: mitkGLMapper.h:52
mitkBaseRenderer.h