From: asl Date: Wed, 18 Dec 2013 11:53:37 +0000 (+0000) Subject: bug #226: children under channel/digue X-Git-Tag: BR_hydro_v_0_6~42 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6e0cd430821292a07e3ec980e6b2cd6cff33d33a;p=modules%2Fhydro.git bug #226: children under channel/digue --- diff --git a/src/HYDROGUI/HYDROGUI_DataModel.cxx b/src/HYDROGUI/HYDROGUI_DataModel.cxx index 1fb7a1cc..4a1baf91 100644 --- a/src/HYDROGUI/HYDROGUI_DataModel.cxx +++ b/src/HYDROGUI/HYDROGUI_DataModel.cxx @@ -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 )