Medical Imaging Interaction Toolkit  2022.04.99-194dd5d8
Medical Imaging Interaction Toolkit
vtkGLMapperProp.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 vtkGLMapperProp_h
14 #define vtkGLMapperProp_h
15 
16 #include "MitkLegacyGLExports.h"
17 
18 #include "mitkGLMapper.h"
19 #include <vtkProp.h>
20 #include <vtkSmartPointer.h>
21 
25 class MITKLEGACYGL_EXPORT vtkGLMapperProp : public vtkProp
26 {
27 public:
28  static vtkGLMapperProp *New();
29  vtkTypeMacro(vtkGLMapperProp, vtkProp);
30 
36  int RenderOverlay(vtkViewport *viewport) override;
37  int RenderVolumetricGeometry(vtkViewport *) override;
38  int RenderTranslucentPolygonalGeometry(vtkViewport *) override;
39  int RenderOpaqueGeometry(vtkViewport *) override;
40 
41  const mitk::GLMapper *GetWrappedGLMapper() const;
42  void SetWrappedGLMapper(mitk::GLMapper *glMapper);
43 
44  void SetBaseRenderer(mitk::BaseRenderer *baseRenderer);
45 
46 protected:
48  ~vtkGLMapperProp() override;
49 
52 };
53 #endif /* vtkGLMapperProp2_h */
Organizes the rendering process.
Base class of all OpenGL-based mappers.
Definition: mitkGLMapper.h:41
mitk::GLMapper * m_WrappedGLMapper
mitk::BaseRenderer * m_BaseRenderer
The vtkGLMapperProp class is a VtkProp, wrapping a GLMapper.
#define MITKLEGACYGL_EXPORT