Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef vtkGLMapperProp_h
18 #define vtkGLMapperProp_h
19 
20 #include "MitkLegacyGLExports.h"
21 
22 #include "mitkGLMapper.h"
23 #include <vtkProp.h>
24 #include <vtkSmartPointer.h>
25 
29 class MITKLEGACYGL_EXPORT vtkGLMapperProp : public vtkProp
30 {
31 public:
32  static vtkGLMapperProp *New();
33  vtkTypeMacro(vtkGLMapperProp, vtkProp);
34 
40  int RenderOverlay(vtkViewport *viewport) override;
41  int RenderVolumetricGeometry(vtkViewport *) override;
42  int RenderTranslucentPolygonalGeometry(vtkViewport *) override;
43  int RenderOpaqueGeometry(vtkViewport *) override;
44 
45  const mitk::GLMapper *GetWrappedGLMapper() const;
46  void SetWrappedGLMapper(mitk::GLMapper *glMapper);
47 
48  void SetBaseRenderer(mitk::BaseRenderer *baseRenderer);
49 
50 protected:
52  virtual ~vtkGLMapperProp();
53 
56 };
57 #endif /* vtkGLMapperProp2_h */
Organizes the rendering process.
Base class of all OpenGL-based mappers.
Definition: mitkGLMapper.h:45
mitk::GLMapper * m_WrappedGLMapper
mitk::BaseRenderer * m_BaseRenderer
The vtkGLMapperProp class is a VtkProp, wrapping a GLMapper.
#define MITKLEGACYGL_EXPORT
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.