]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Some fixes to compile against ParaView master.
authorPascal Obry <pascal@obry.net>
Thu, 8 Sep 2022 13:18:55 +0000 (15:18 +0200)
committerPascal Obry <pascal@obry.net>
Thu, 8 Sep 2022 15:59:04 +0000 (17:59 +0200)
src/SVTK/SVTK_DeviceActor.cxx
src/SVTK/SVTK_DeviceActor.h
src/VTKViewer/VTKViewer_Actor.cxx
src/VTKViewer/VTKViewer_Actor.h
src/VTKViewer/VTKViewer_OpenGLRenderer.cxx
src/VTKViewer/VTKViewer_RenderWindowInteractor.cxx
src/VTKViewer/VTKViewer_Texture.cxx
src/VTKViewer/VTKViewer_Trihedron.cxx

index 6142443dd077a89b5556a7e1a4c548cb10fdca53..d7202cef9ff0849ee4396d66256a1646977b2b61 100644 (file)
@@ -41,7 +41,7 @@
 #include <VTKViewer_PolyDataMapper.h>
 #include <VTKViewer_DataSetMapper.h>
 
-#include <vtkPassThroughFilter.h>
+#include <vtkPassThrough.h>
 
 vtkStandardNewMacro(SVTK_DeviceActor)
 
@@ -76,7 +76,7 @@ SVTK_DeviceActor
   myTransformFilter = VTKViewer_TransformFilter::New();
 
   for(int i = 0; i < 6; i++)
-    myPassFilter.push_back(vtkPassThroughFilter::New());
+    myPassFilter.push_back(vtkPassThrough::New());
 }
 
 /*!
index 331c8848be58416f8fe11f723273d7e65d3c321b..a2749d030b96c755a8a3458f6c0cafc3c38c772e 100644 (file)
@@ -46,7 +46,7 @@ class vtkDataSet;
 class vtkShrinkFilter;
 class vtkFeatureEdges;
 class VTKViewer_DataSetMapper;
-class vtkPassThroughFilter;
+class vtkPassThrough;
 class vtkAlgorithmOutput;
 
 #ifdef WIN32
@@ -279,7 +279,7 @@ class SVTK_EXPORT SVTK_DeviceActor: public vtkLODActor
 
   VTKViewer_GeometryFilter *myGeomFilter;
   VTKViewer_TransformFilter *myTransformFilter;
-  std::vector<vtkPassThroughFilter*> myPassFilter;
+  std::vector<vtkPassThrough*> myPassFilter;
   vtkShrinkFilter* myShrinkFilter;
   vtkFeatureEdges* myFeatureEdges;
   VTKViewer_DataSetMapper* myMapper;
index 9989dbebc04e3a5529dbf10ff3cfb8b30b00529f..c0b18ed9c2a1b70ac4b9f4f5a7a5d00556f71abd 100644 (file)
@@ -42,7 +42,7 @@
 #include <vtkDataSetMapper.h>
 #include <vtkPolyDataMapper.h>
 #include <vtkRenderer.h>
-#include <vtkPassThroughFilter.h>
+#include <vtkPassThrough.h>
 
 #if defined __GNUC__
   #if __GNUC__ == 2
@@ -78,7 +78,7 @@ VTKViewer_Actor
                                                     myPolygonOffsetUnits);
 
   for(int i = 0; i < 6; i++)
-    myPassFilter.push_back(vtkPassThroughFilter::New());
+    myPassFilter.push_back(vtkPassThrough::New());
 }
 
 /*!
@@ -339,7 +339,7 @@ vtkDataSet*
 VTKViewer_Actor
 ::GetInput()
 {
-  return myPassFilter.front()->GetOutput();
+  return static_cast<vtkDataSet *>(myPassFilter.front()->GetOutput());
 }
 
 /*!
index 4c9f73eba001d95b2b7d684bfe1a3c5c53446c5c..945135f48121340128f15c481d0f09040d401e5f 100644 (file)
@@ -46,7 +46,7 @@ class vtkDataSet;
 class vtkCamera;
 class vtkProperty;
 class vtkRenderer;
-class vtkPassThroughFilter;
+class vtkPassThrough;
 
 class VTKViewer_Transform;
 class VTKViewer_GeometryFilter;
@@ -381,7 +381,7 @@ class VTKVIEWER_EXPORT VTKViewer_Actor : public vtkLODActor
   bool myStoreMapping;
   VTKViewer_GeometryFilter *myGeomFilter;
   VTKViewer_TransformFilter *myTransformFilter;
-  std::vector<vtkPassThroughFilter*> myPassFilter;
+  std::vector<vtkPassThrough*> myPassFilter;
 
   int myRepresentation;
   vtkProperty *myProperty;
index 4d5e6bbbd568f65bbdb854ae4434496acdd40032..1d409155663a00267163f4fa1494df2aaaabd266 100644 (file)
@@ -42,7 +42,7 @@
 #include <vtkPNGWriter.h>
 #include <vtkOpenGLTexture.h>
 #include <vtkTimerLog.h>
-#include <vtkOpenGL.h>
+#include <vtk_glew.h>
 #include <vtkObjectFactory.h>
 
 #include <Basics_Utils.hxx>
index fc73a00cdf90d56f9ec05293ca56119f6fb4b3ae..6629447e1b9d8901404194be9b15371b9cfb70e3 100644 (file)
@@ -359,7 +359,7 @@ void VTKViewer_RenderWindowInteractor::TimerFunc()
     return ;
   }
   
-  ((vtkInteractorStyle*)this->InteractorStyle)->OnTimer() ;
+  ((vtkInteractorStyle*)this->InteractorStyle.Get())->OnTimer() ;
   emit RenderWindowModified() ;
 }
 
index 2e67a94ef2830b68a0767c1eba13cae5ce62b11b..a105eb031890045a7e534cdeb957a97991879607 100644 (file)
@@ -38,7 +38,7 @@
 #include "vtkOpenGLRenderWindow.h"
 #include "vtkTransform.h"
 #include "vtkPixelBufferObject.h"
-#include "vtkOpenGL.h"
+#include "vtk_glew.h"
 #include <vtkObjectFactory.h>
 
 vtkStandardNewMacro(VTKViewer_Texture)
index a448144377d29eea10056b6bf842bf06927746f3..a9b5192c92dccf9e6a82f21b4341a2a42acbff47 100644 (file)
@@ -25,7 +25,6 @@
 #include "VTKViewer_Algorithm.h"
 
 // VTK Includes
-#include <vtkConfigure.h>
 #include <vtkMath.h>
 #include <vtkMapper.h>
 #include <vtkDataSet.h>