]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Fix for the bug #317: Limited polyline, included in calculation case is not shown...
authorrkv <rkv@opencascade.com>
Fri, 10 Jan 2014 04:39:45 +0000 (04:39 +0000)
committerrkv <rkv@opencascade.com>
Fri, 10 Jan 2014 04:39:45 +0000 (04:39 +0000)
src/HYDROGUI/HYDROGUI_DataModel.cxx
src/HYDROGUI/resources/HYDROGUI_msg_en.ts

index 837548ac6a0037517516ce37da92c52f81ce9f02..f4cb0c9a780bdb520e01518b3516f1db26470cac 100644 (file)
@@ -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() );
index cff4cdf058d68f86a1f25e4d00133da53d5578d7..2ccbb1c37fe77da34295983a5740aac5787b37ba 100644 (file)
       <source>BATHYMETRY_FILTER</source>
       <translation>Bathymetry files (*.xyz);;All files (*.* *)</translation>
     </message>
+    <message>
+      <source>CASE_BOUNDARY</source>
+      <translation>Boundary</translation>
+    </message>
     <message>
       <source>CASE_REFERENCE_ZONES</source>
       <translation>Reference zones</translation>