Salome HOME
Rewrite local function ModifySurface of BlockFix_SphereSpaceModifier
[modules/geom.git] / src / OBJECT / GEOM_PainterPolyDataMapper.h
index 25c94c557e2dd84b7c0eb38676d8bcc829ef77c0..d828178bd3a2a7edc21c1c1ce37dc9a5a4ca2788 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 #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:
-  vtkTypeMacro(GEOM_PainterPolyDataMapper,vtkPainterPolyDataMapper);
+#ifndef VTK_OPENGL2
+  vtkTypeMacro(GEOM_PainterPolyDataMapper,vtkPainterPolyDataMapper)
+#else
+  vtkTypeMacro(GEOM_PainterPolyDataMapper,vtkPolyDataMapper)
+#endif
+
+
   static GEOM_PainterPolyDataMapper* New();
 
-  virtual void RenderPiece(vtkRenderer *ren, vtkActor *act) {}
+  virtual void RenderPiece(vtkRenderer* /*ren*/, vtkActor* /*act*/) {}
 
  protected:
   GEOM_PainterPolyDataMapper() {}