From: rkv Date: Fri, 10 Jan 2014 04:39:45 +0000 (+0000) Subject: Fix for the bug #317: Limited polyline, included in calculation case is not shown... X-Git-Tag: BR_hydro_v_1_0~121 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=08669ea77b511887ec6f408085861a06987fa458;p=modules%2Fhydro.git Fix for the bug #317: Limited polyline, included in calculation case is not shown in the data tree. --- diff --git a/src/HYDROGUI/HYDROGUI_DataModel.cxx b/src/HYDROGUI/HYDROGUI_DataModel.cxx index 837548ac..f4cb0c9a 100644 --- a/src/HYDROGUI/HYDROGUI_DataModel.cxx +++ b/src/HYDROGUI/HYDROGUI_DataModel.cxx @@ -832,6 +832,13 @@ void HYDROGUI_DataModel::buildObjectTree( SUIT_DataObject* theParent, Handle(HYDROData_CalculationCase) aCaseObj = Handle(HYDROData_CalculationCase)::DownCast( aDataObj ); + LightApp_DataObject* aPolylineSect = + createObject( aGuiObj, tr( "CASE_BOUNDARY" ), aGuiObj->entry() ); + + Handle(HYDROData_PolylineXY) aPolyline = aCaseObj->GetBoundaryPolyline(); + if ( !aPolyline.IsNull() && !aPolyline->IsRemoved() ) + createObject( aPolylineSect, aPolyline, aGuiObj->entry(), false ); + LightApp_DataObject* aCaseAOSect = createObject( aGuiObj, tr( partitionName( KIND_ARTIFICIAL_OBJECT ).toAscii() ), aGuiObj->entry() ); diff --git a/src/HYDROGUI/resources/HYDROGUI_msg_en.ts b/src/HYDROGUI/resources/HYDROGUI_msg_en.ts index cff4cdf0..2ccbb1c3 100644 --- a/src/HYDROGUI/resources/HYDROGUI_msg_en.ts +++ b/src/HYDROGUI/resources/HYDROGUI_msg_en.ts @@ -87,6 +87,10 @@ BATHYMETRY_FILTER Bathymetry files (*.xyz);;All files (*.* *) + + CASE_BOUNDARY + Boundary + CASE_REFERENCE_ZONES Reference zones