]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
bug #226: children under channel/digue
authorasl <asl@opencascade.com>
Wed, 18 Dec 2013 11:53:37 +0000 (11:53 +0000)
committerasl <asl@opencascade.com>
Wed, 18 Dec 2013 11:53:37 +0000 (11:53 +0000)
src/HYDROGUI/HYDROGUI_DataModel.cxx

index 1fb7a1cca721691a06644edaa1d7b587ddd9a854..4a1baf917f2cff0683977c17c43ec6dc5a2ba887 100644 (file)
@@ -849,6 +849,17 @@ void HYDROGUI_DataModel::buildObjectTree( SUIT_DataObject* theParent,
 
     aGuiObj->setIsValid( aProfileObj->IsValid() );
   }
+  else if ( anObjectKind == KIND_CHANNEL || anObjectKind == KIND_DIGUE )
+  {
+    Handle(HYDROData_Channel) aChannelObj =
+      Handle(HYDROData_Channel)::DownCast( aDataObj );
+
+    Handle(HYDROData_Profile) aProfile = aChannelObj->GetProfile();
+    Handle(HYDROData_Polyline3D) aGuideLine = aChannelObj->GetGuideLine();
+
+    createObject( aGuiObj, aProfile, aGuiObj->entry(), false );
+    createObject( aGuiObj, aGuideLine, aGuiObj->entry(), false );
+  }
 }
 
 void HYDROGUI_DataModel::buildCaseTree( SUIT_DataObject* theParent, Handle(HYDROData_CalculationCase) theCase )