From: Pascal Obry Date: Thu, 8 Sep 2022 13:18:55 +0000 (+0200) Subject: Some fixes to compile against ParaView master. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ff4084850382beef1670f9a09535b59ddff7a7e6;p=modules%2Fgui.git Some fixes to compile against ParaView master. --- diff --git a/src/SVTK/SVTK_DeviceActor.cxx b/src/SVTK/SVTK_DeviceActor.cxx index 6142443dd..d7202cef9 100644 --- a/src/SVTK/SVTK_DeviceActor.cxx +++ b/src/SVTK/SVTK_DeviceActor.cxx @@ -41,7 +41,7 @@ #include #include -#include +#include 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()); } /*! diff --git a/src/SVTK/SVTK_DeviceActor.h b/src/SVTK/SVTK_DeviceActor.h index 331c8848b..a2749d030 100644 --- a/src/SVTK/SVTK_DeviceActor.h +++ b/src/SVTK/SVTK_DeviceActor.h @@ -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 myPassFilter; + std::vector myPassFilter; vtkShrinkFilter* myShrinkFilter; vtkFeatureEdges* myFeatureEdges; VTKViewer_DataSetMapper* myMapper; diff --git a/src/VTKViewer/VTKViewer_Actor.cxx b/src/VTKViewer/VTKViewer_Actor.cxx index 9989dbebc..c0b18ed9c 100644 --- a/src/VTKViewer/VTKViewer_Actor.cxx +++ b/src/VTKViewer/VTKViewer_Actor.cxx @@ -42,7 +42,7 @@ #include #include #include -#include +#include #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(myPassFilter.front()->GetOutput()); } /*! diff --git a/src/VTKViewer/VTKViewer_Actor.h b/src/VTKViewer/VTKViewer_Actor.h index 4c9f73eba..945135f48 100644 --- a/src/VTKViewer/VTKViewer_Actor.h +++ b/src/VTKViewer/VTKViewer_Actor.h @@ -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 myPassFilter; + std::vector myPassFilter; int myRepresentation; vtkProperty *myProperty; diff --git a/src/VTKViewer/VTKViewer_OpenGLRenderer.cxx b/src/VTKViewer/VTKViewer_OpenGLRenderer.cxx index 4d5e6bbbd..1d4091556 100644 --- a/src/VTKViewer/VTKViewer_OpenGLRenderer.cxx +++ b/src/VTKViewer/VTKViewer_OpenGLRenderer.cxx @@ -42,7 +42,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/VTKViewer/VTKViewer_RenderWindowInteractor.cxx b/src/VTKViewer/VTKViewer_RenderWindowInteractor.cxx index fc73a00cd..6629447e1 100644 --- a/src/VTKViewer/VTKViewer_RenderWindowInteractor.cxx +++ b/src/VTKViewer/VTKViewer_RenderWindowInteractor.cxx @@ -359,7 +359,7 @@ void VTKViewer_RenderWindowInteractor::TimerFunc() return ; } - ((vtkInteractorStyle*)this->InteractorStyle)->OnTimer() ; + ((vtkInteractorStyle*)this->InteractorStyle.Get())->OnTimer() ; emit RenderWindowModified() ; } diff --git a/src/VTKViewer/VTKViewer_Texture.cxx b/src/VTKViewer/VTKViewer_Texture.cxx index 2e67a94ef..a105eb031 100644 --- a/src/VTKViewer/VTKViewer_Texture.cxx +++ b/src/VTKViewer/VTKViewer_Texture.cxx @@ -38,7 +38,7 @@ #include "vtkOpenGLRenderWindow.h" #include "vtkTransform.h" #include "vtkPixelBufferObject.h" -#include "vtkOpenGL.h" +#include "vtk_glew.h" #include vtkStandardNewMacro(VTKViewer_Texture) diff --git a/src/VTKViewer/VTKViewer_Trihedron.cxx b/src/VTKViewer/VTKViewer_Trihedron.cxx index a44814437..a9b5192c9 100644 --- a/src/VTKViewer/VTKViewer_Trihedron.cxx +++ b/src/VTKViewer/VTKViewer_Trihedron.cxx @@ -25,7 +25,6 @@ #include "VTKViewer_Algorithm.h" // VTK Includes -#include #include #include #include