Medical Imaging Interaction Toolkit  2018.04.99-3ec0dd08
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_HEADER_INCLUDED_C197C872
14 #define MITKGLMAPPER_H_HEADER_INCLUDED_C197C872
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 /* MITKGLMAPPER2D_H_HEADER_INCLUDED_C197C872 */
Organizes the rendering process.
Base class of all OpenGL-based mappers.
Definition: mitkGLMapper.h:41
DataCollection - Class to facilitate loading/accessing structured data.
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:49
#define DEPRECATED(func)
Definition: mitkCommon.h:179
virtual void ApplyProperties(mitk::BaseRenderer *renderer)
Apply color and opacity properties read from the PropertyList.
Definition: mitkGLMapper.h:52
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
#define MITKLEGACYGL_EXPORT