From: Viktor UZLOV Date: Mon, 15 Feb 2021 14:23:29 +0000 (+0300) Subject: fix errors. Build completed X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0d1e270e8a6be585bd9e744902dc71d283670b1e;p=modules%2Fgui.git fix errors. Build completed --- diff --git a/src/SVTK/SALOME_Actor.cxx b/src/SVTK/SALOME_Actor.cxx index 8c91d9d3a..8ed50cef4 100644 --- a/src/SVTK/SALOME_Actor.cxx +++ b/src/SVTK/SALOME_Actor.cxx @@ -86,9 +86,9 @@ namespace int GetEdgeAndNodesId(SALOME_Actor* theActor, vtkPicker* thePicker, - int theObjId, - int& theFirstNodeId, - int& theSecondNodeId) + vtkIdType theObjId, + vtkIdType& theFirstNodeId, + vtkIdType& theSecondNodeId) { int anEdgeId = 0; if (vtkCell* aPickedCell = theActor->GetElemCell(theObjId)) { diff --git a/src/SVTK/SVTK_Actor.cxx b/src/SVTK/SVTK_Actor.cxx index 1b4ee4571..3a34619e5 100644 --- a/src/SVTK/SVTK_Actor.cxx +++ b/src/SVTK/SVTK_Actor.cxx @@ -231,9 +231,9 @@ SVTK_Actor vtkUnstructuredGrid * aSourceGrid = ( vtkUnstructuredGrid * )theMapActor->GetInput(); GetSource()->SetPoints( aSourceGrid->GetPoints() ); - int aNbOfParts = theMapCompositeIndex.Extent(); - for(int ind = 1; ind <= aNbOfParts; ind++){ - std::vector aNodesIds = theMapCompositeIndex( ind ); + vtkIdType aNbOfParts = theMapCompositeIndex.Extent(); + for(vtkIdType ind = 1; ind <= aNbOfParts; ind++){ + std::vector aNodesIds = theMapCompositeIndex( ind ); vtkSmartPointer ids = vtkSmartPointer::New(); ids->InsertNextId(theMapActor->GetNodeVtkId( aNodesIds[0] ) ); ids->InsertNextId(theMapActor->GetNodeVtkId( aNodesIds[1] ) ); diff --git a/src/VTKViewer/VTKViewer_Filter.h b/src/VTKViewer/VTKViewer_Filter.h index 4153b388b..ddc320c2e 100644 --- a/src/VTKViewer/VTKViewer_Filter.h +++ b/src/VTKViewer/VTKViewer_Filter.h @@ -29,6 +29,7 @@ #define VTKViewer_Filter_HeaderFile #include "VTKViewer.h" +#include #include #include