]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0022379: EDF 2276 GEOM: Dependency Tree - reverse the direction of the arrows
authormpa <mpa@opencascade.com>
Fri, 31 Oct 2014 13:59:11 +0000 (16:59 +0300)
committermpa <mpa@opencascade.com>
Fri, 31 Oct 2014 13:59:11 +0000 (16:59 +0300)
src/DependencyTree/DependencyTree_View.cxx

index 230bfa53ac729e1526c25fe031792158a91b322e..b1afd4085087530b5bf100b6226b02d02df3fb89 100644 (file)
@@ -477,7 +477,7 @@ void DependencyTree_View::parseTree()
       GEOMUtils::LevelInfo::const_iterator node;
       for( node = Levelup.begin(); node != Levelup.end(); node++ ) {
         DependencyTree_Object* object = myTreeMap[ node->first ];
-        addArrow( Main_object, object );
+        addArrow( object, Main_object );
       }
     }
     parseTreeWardArrow( i->second.first );
@@ -515,7 +515,7 @@ void DependencyTree_View::parseTreeWardArrow( const GEOMUtils::LevelsList& theWa
       for( int link = 0; link < Links.size(); link++ ) {
         DependencyTree_Object* LinkObject = myTreeMap[ Links[ link ] ];
         if( object && LinkObject )
-          addArrow( object, LinkObject );
+          addArrow( LinkObject, object );
       }
     }
   }
@@ -613,7 +613,7 @@ void DependencyTree_View::drawTree()
         for( node = Levelup.begin(); node != Levelup.end(); node++ ) {
           DependencyTree_Object* object = myTreeMap[ node->first ];
           DependencyTree_Arrow* arrow =
-            myArrows[ std::pair<DependencyTree_Object*,DependencyTree_Object*>( Main_object, object )];
+            myArrows[ std::pair<DependencyTree_Object*,DependencyTree_Object*>( object, Main_object )];
           if( arrow && !isItemAdded( arrow ) )
             addItem( arrow );
         }
@@ -670,7 +670,7 @@ void DependencyTree_View::drawWardArrows( const GEOMUtils::LevelsList& theWard )
       for( int link = 0; link < Links.size(); link++ ) {
         DependencyTree_Object* LinkObject = myTreeMap[ Links[ link ] ];
         if( isItemAdded( object ) && isItemAdded( LinkObject ) ) {
-          DependencyTree_Arrow* arrow = myArrows[ std::pair<DependencyTree_Object*,DependencyTree_Object*>( object, LinkObject ) ];
+          DependencyTree_Arrow* arrow = myArrows[ std::pair<DependencyTree_Object*,DependencyTree_Object*>( LinkObject, object ) ];
           if( arrow && !isItemAdded( arrow ) )
             addItem( arrow );
         }