]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
fix errors. Build completed
authorViktor UZLOV <vuzlov@debian10-01.nnov.opencascade.com>
Mon, 15 Feb 2021 14:23:29 +0000 (17:23 +0300)
committerViktor UZLOV <vuzlov@debian10-01.nnov.opencascade.com>
Mon, 15 Feb 2021 14:23:29 +0000 (17:23 +0300)
src/SVTK/SALOME_Actor.cxx
src/SVTK/SVTK_Actor.cxx
src/VTKViewer/VTKViewer_Filter.h

index 8c91d9d3a15d8acd5a9388223212e8e588964fc2..8ed50cef4a9993577b8b04671aece4280c618310 100644 (file)
@@ -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)) {
index 1b4ee45710fc50cf2dc440419904515dd54c74a6..3a34619e56d74914cd6c51751f0e9bab74f4ba85 100644 (file)
@@ -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<int> aNodesIds = theMapCompositeIndex( ind );
+  vtkIdType aNbOfParts = theMapCompositeIndex.Extent();
+  for(vtkIdType ind = 1; ind <= aNbOfParts; ind++){
+      std::vector<vtkIdType> aNodesIds = theMapCompositeIndex( ind );
       vtkSmartPointer<vtkIdList> ids = vtkSmartPointer<vtkIdList>::New();
       ids->InsertNextId(theMapActor->GetNodeVtkId( aNodesIds[0] ) );
       ids->InsertNextId(theMapActor->GetNodeVtkId( aNodesIds[1] ) );
index 4153b388bece2f9ad9b5a6875075efa635be4edb..ddc320c2e3ff0e6de793e0a77be07bdaf92f9c55 100644 (file)
@@ -29,6 +29,7 @@
 #define VTKViewer_Filter_HeaderFile
 
 #include "VTKViewer.h"
+#include <vtkType.h>
 
 #include <Standard_Transient.hxx>
 #include <Standard_DefineHandle.hxx>