Salome HOME
Start potring to the VTK OpenGL2 backend.
authorrnv <rnv@opencascade.com>
Wed, 10 Aug 2016 14:20:04 +0000 (17:20 +0300)
committerrnv <rnv@opencascade.com>
Wed, 10 Aug 2016 14:20:04 +0000 (17:20 +0300)
src/OBJECT/GEOM_PainterPolyDataMapper.h

index 02d23b23f21ff0c9ea27c76a8af5281ded9cc3ca..0ec8875f8027409de1454e0fb084b99c0a4e0aa3 100644 (file)
 #ifndef GEOM_PAINTERPOLYDATAMAPPER_H 
 #define GEOM_PAINTERPOLYDATAMAPPER_H 
 
+#ifndef VTK_OPENGL2
 #include <vtkPainterPolyDataMapper.h>
+#else
+#include <vtkPolyDataMapper.h>
+#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) {}