From: Anthony Geay Date: Fri, 9 Sep 2022 11:55:51 +0000 (+0200) Subject: End of fast porting X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bd94a0628ae6e2d2aa79ab2eba1ee0901bd01c03;p=modules%2Fgui.git End of fast porting --- diff --git a/src/SVTK/SALOME_Actor.cxx b/src/SVTK/SALOME_Actor.cxx index de76c4605..18d5406df 100644 --- a/src/SVTK/SALOME_Actor.cxx +++ b/src/SVTK/SALOME_Actor.cxx @@ -63,7 +63,7 @@ #include #include -#include +#include #include #include diff --git a/src/SVTK/SVTK_DeviceActor.cxx b/src/SVTK/SVTK_DeviceActor.cxx index d7202cef9..af2999e92 100644 --- a/src/SVTK/SVTK_DeviceActor.cxx +++ b/src/SVTK/SVTK_DeviceActor.cxx @@ -150,7 +150,7 @@ vtkDataSet* SVTK_DeviceActor ::GetInput() { - return myPassFilter.front()->GetOutput(); + return static_cast(myPassFilter.front()->GetOutput()); } /*! @@ -266,7 +266,7 @@ SVTK_DeviceActor if ( vtkAlgorithmOutput* anOutput = myPassFilter[ 0 ]->GetOutputPort() ) { myPassFilter[ 0 ]->Update(); - if ( vtkDataSet* aDataSet = myPassFilter[ 0 ]->GetOutput() ) + if ( vtkDataSet* aDataSet = static_cast( myPassFilter[ 0 ]->GetOutput() ) ) { vtkIdType numCells=aDataSet->GetNumberOfCells(); vtkIdType numPts = aDataSet->GetNumberOfPoints(); diff --git a/src/VTKViewer/VTKViewer_Actor.cxx b/src/VTKViewer/VTKViewer_Actor.cxx index c0b18ed9c..1c40f6601 100644 --- a/src/VTKViewer/VTKViewer_Actor.cxx +++ b/src/VTKViewer/VTKViewer_Actor.cxx @@ -339,7 +339,7 @@ vtkDataSet* VTKViewer_Actor ::GetInput() { - return static_cast(myPassFilter.front()->GetOutput()); + return static_cast( myPassFilter.front()->GetOutput() ); } /*! diff --git a/src/VTKViewer/VTKViewer_GeometryFilter.cxx b/src/VTKViewer/VTKViewer_GeometryFilter.cxx index ee72257ec..db0b092ed 100644 --- a/src/VTKViewer/VTKViewer_GeometryFilter.cxx +++ b/src/VTKViewer/VTKViewer_GeometryFilter.cxx @@ -219,9 +219,10 @@ VTKViewer_GeometryFilter vtkInformation* excInfo = inputVector[1]->GetInformationObject(0); vtkExcludedFaces exc; // Will delete exc->Links when goes out of scope + vtkPolyData* excFaces = nullptr; if (excInfo) { - vtkPolyData* excFaces = vtkPolyData::SafeDownCast(excInfo->Get(vtkDataObject::DATA_OBJECT())); + excFaces = vtkPolyData::SafeDownCast(excInfo->Get(vtkDataObject::DATA_OBJECT())); vtkCellArray* excPolys = excFaces->GetPolys(); if (excPolys->GetNumberOfCells() > 0) { @@ -233,7 +234,7 @@ VTKViewer_GeometryFilter switch (input->GetDataObjectType()) { case VTK_POLY_DATA: - return this->vtkGeometryFilter::PolyDataExecute(input, output, &exc); + return this->vtkGeometryFilter::PolyDataExecute(input, output, excFaces); case VTK_UNSTRUCTURED_GRID: { vtkUnstructuredGrid* inputUnstructured = static_cast(input); @@ -282,20 +283,20 @@ VTKViewer_GeometryFilter if ( myStoreMapping ) { // pass through cell ids to get original cell ids this->PassThroughCellIds = true; - ret = this->vtkGeometryFilter::UnstructuredGridExecute(input, output, info, &exc); + ret = this->vtkGeometryFilter::UnstructuredGridExecute(input, output, info, excFaces); FillVTK2ObjIds(output); } else { // no need to get original cell ids this->PassThroughCellIds = false; - ret = this->vtkGeometryFilter::UnstructuredGridExecute(input, output, info, &exc); + ret = this->vtkGeometryFilter::UnstructuredGridExecute(input, output, info, excFaces); } return ret; } } } - return this->vtkGeometryFilter::DataSetExecute(input, output, &exc); + return this->vtkGeometryFilter::DataSetExecute(input, output, excFaces); } else // !delegateToVtk #endif