]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Stream added in to the model tree.
authoradv <adv@opencascade.com>
Mon, 2 Dec 2013 11:27:40 +0000 (11:27 +0000)
committeradv <adv@opencascade.com>
Mon, 2 Dec 2013 11:27:40 +0000 (11:27 +0000)
src/HYDROGUI/HYDROGUI_DataModel.cxx

index 3ea41225aff48ccc2907b573c1ed533f165d7e52..ba34e1e62721aff393d7b80e60dae89b21a62afc 100644 (file)
@@ -44,6 +44,7 @@
 #include <HYDROData_Channel.h>
 #include <HYDROData_Digue.h>
 #include <HYDROData_River.h>
+#include <HYDROData_Stream.h>
 
 #include <CAM_Application.h>
 #include <CAM_DataObject.h>
@@ -329,6 +330,16 @@ void HYDROGUI_DataModel::update( const int theStudyId )
 
           break;
         }
+        case KIND_STREAM:
+        {
+          Handle(HYDROData_Stream) aStreamObj =
+            Handle(HYDROData_Stream)::DownCast( anObj );
+          if( !aStreamObj.IsNull() ) {
+            createObject( aNaturalObjectsRootObj, aStreamObj );
+          }
+
+          break;
+        }
         case KIND_OBSTACLE:
         {
           Handle(HYDROData_Obstacle) anObstacleObj =