]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
fix Group Dialog and Highlights vuzlov/20256
authorViktor Uzlov <viktor.uzlov@opencascade.com>
Tue, 9 Mar 2021 18:38:07 +0000 (21:38 +0300)
committerViktor Uzlov <viktor.uzlov@opencascade.com>
Tue, 9 Mar 2021 18:38:07 +0000 (21:38 +0300)
src/SVTK/SALOME_Actor.cxx
src/SVTK/SVTK_Actor.cxx
src/VTKViewer/VTKViewer_Actor.cxx
src/VTKViewer/VTKViewer_Actor.h

index 70a7c4d3dd39bfe161599e58e77b878261f5a3aa..48a212d61c2db43885907bb7779a6522f153805a 100644 (file)
@@ -548,7 +548,7 @@ SALOME_Actor
         myIsPreselected = (anObjId >= 0);
         if(myIsPreselected){
           const SVTK_TIndexedMapOfVtkId& aMapIndex = myPreHighlightActor->GetMapIndex();
-          int anExtent = aMapIndex.Extent();
+          vtkIdType anExtent = aMapIndex.Extent();
           anIsChanged |= (anExtent == 0 || (anExtent > 0 && anObjId != aMapIndex(1)));
           if(anIsChanged){
             SVTK_TIndexedMapOfVtkId aMapIndex;
@@ -579,7 +579,7 @@ SALOME_Actor
           myIsPreselected = CheckDimensionId(aSelectionMode,this,anObjId);
           if(myIsPreselected){
             const SVTK_TIndexedMapOfVtkId& aMapIndex = myPreHighlightActor->GetMapIndex();
-            int anExtent = aMapIndex.Extent();
+            vtkIdType anExtent = aMapIndex.Extent();
             anIsChanged |= (anExtent == 0 || (anExtent > 0 && anObjId != aMapIndex(1)));
             if(anIsChanged){
               SVTK_TIndexedMapOfVtkId aMapIndex;
@@ -610,7 +610,7 @@ SALOME_Actor
            vtkIdType aFNObjId = GetNodeObjId( aFNId );
            vtkIdType aSNObjId = GetNodeObjId( aSNId );
             const SVTK_IndexedMapOfVtkIds& aMapIds = myPreHighlightActor->GetMapCompositeIndex();
-            int anExtent = aMapIds.Extent();
+            vtkIdType anExtent = aMapIds.Extent();
             anIsChanged |= (anExtent == 0 || (anExtent > 0 && aMapIds(1).size() == 2 && 
                                             (aFNObjId != aMapIds(1)[0] || aSNObjId != aMapIds(1)[1] ) ) );
             if( anIsChanged ) {
index b09bbcbadd3a442301639ae0506cafa73429b084..a6c963b21d9f909d3f7ba67ddd15dfbc270eef32 100644 (file)
@@ -165,7 +165,7 @@ SVTK_Actor
     vtkPoints *aPoints = vtkPoints::New();
     aPoints->SetNumberOfPoints(aNbOfParts);
     for(vtkIdType i = 0; i < aNbOfParts; i++){
-      int aPartId = theMapIndex( i+1 );
+         vtkIdType aPartId = theMapIndex( i+1 );
       if(double* aCoord = theMapActor->GetNodeCoord(aPartId)){
         aPoints->SetPoint(i,aCoord);
         // Change the type from int to vtkIdType in order to avoid compilation errors while using VTK
index 24211a36a6919c42973a0e14e3e8ba1a0804c90f..a0f37ded4c528acafad420810b82dec3cb5d5a0d 100644 (file)
@@ -487,7 +487,7 @@ VTKViewer_Actor
 */
 int
 VTKViewer_Actor
-::GetObjDimension( const int theObjId )
+::GetObjDimension( const vtkIdType theObjId )
 {
   if ( vtkCell* aCell = GetElemCell(theObjId) )
     return aCell->GetCellDimension();
index 465b9f893f051ed7dc6a9f70e37342f200a71f6b..1bc0e2625223f0703ec6e35dd42d9f5ed0c974ac 100644 (file)
@@ -169,7 +169,7 @@ class VTKVIEWER_EXPORT VTKViewer_Actor : public vtkLODActor
   //! Get dimension of corresponding mesh element
   virtual
   int
-  GetObjDimension( const int theObjId );
+  GetObjDimension( const vtkIdType theObjId );
 
   //! To insert some additional filters and then sets the given #vtkMapper
   virtual