From 986f01726538367ac8a48d4183043b43942ec48a Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 10 Aug 2016 17:20:04 +0300 Subject: [PATCH] Start potring to the VTK OpenGL2 backend. --- src/OBJECT/GEOM_PainterPolyDataMapper.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/OBJECT/GEOM_PainterPolyDataMapper.h b/src/OBJECT/GEOM_PainterPolyDataMapper.h index 02d23b23f..0ec8875f8 100644 --- a/src/OBJECT/GEOM_PainterPolyDataMapper.h +++ b/src/OBJECT/GEOM_PainterPolyDataMapper.h @@ -20,17 +20,32 @@ #ifndef GEOM_PAINTERPOLYDATAMAPPER_H #define GEOM_PAINTERPOLYDATAMAPPER_H +#ifndef VTK_OPENGL2 #include +#else +#include +#endif /* * This class can be used to prevent drawing of mappers' content (due to an * empty definition of GEOM_PainterPolyDataMapper::RenderPiece(...) method). * It is used as poly data mapper in GEOM_Actor class. */ -class GEOM_PainterPolyDataMapper: public vtkPainterPolyDataMapper +class GEOM_PainterPolyDataMapper: +#ifndef VTK_OPENGL2 +public vtkPainterPolyDataMapper +#else +public vtkPolyDataMapper +#endif { public: +#ifndef VTK_OPENGL2 vtkTypeMacro(GEOM_PainterPolyDataMapper,vtkPainterPolyDataMapper); +#else + vtkTypeMacro(GEOM_PainterPolyDataMapper,vtkPolyDataMapper); +#endif + + static GEOM_PainterPolyDataMapper* New(); virtual void RenderPiece(vtkRenderer *ren, vtkActor *act) {} -- 2.30.2