Salome HOME
refs #417: showing new objects
[modules/hydro.git] / src / HYDROData / HYDROData_Iterator.cxx
index c446ad61d9267140dbe83a528a5177a70c214c01..181bc496e1c6839f0accc7495ce78294d9e44752 100644 (file)
@@ -6,17 +6,23 @@
 #include "HYDROData_CalculationCase.h"
 #include "HYDROData_Channel.h"
 #include "HYDROData_Confluence.h"
+#include "HYDROData_DummyObject3D.h"
 #include "HYDROData_Digue.h"
+#include "HYDROData_ShapesGroup.h"
 #include "HYDROData_Image.h"
 #include "HYDROData_ImmersibleZone.h"
 #include "HYDROData_Obstacle.h"
-#include "HYDROData_Polyline.h"
+#include "HYDROData_ObstacleAltitude.h"
+#include "HYDROData_Polyline3D.h"
+#include "HYDROData_PolylineXY.h"
 #include "HYDROData_Profile.h"
 #include "HYDROData_ProfileUZ.h"
 #include "HYDROData_VisualState.h"
 #include "HYDROData_Region.h"
 #include "HYDROData_River.h"
+#include "HYDROData_SplittedShapesGroup.h"
 #include "HYDROData_Stream.h"
+#include "HYDROData_StreamAltitude.h"
 #include "HYDROData_Zone.h"
 
 #include <TDataStd_Name.hxx>
@@ -103,59 +109,30 @@ Handle(HYDROData_Entity) HYDROData_Iterator::Object( const TDF_Label& theLabel )
   
   switch( aKind )
   {
-    case KIND_IMAGE:
-      aResult = new HYDROData_Image();
-      break;
-    case KIND_POLYLINE:
-      aResult = new HYDROData_Polyline();
-      break;
-    case KIND_BATHYMETRY:
-      aResult = new HYDROData_Bathymetry();
-      break;
-    case KIND_ALTITUDE:
-      aResult = new HYDROData_AltitudeObject();
-      break;
-    case KIND_IMMERSIBLE_ZONE:
-      aResult = new HYDROData_ImmersibleZone();
-      break;
-    case KIND_RIVER:
-      aResult = new HYDROData_River();
-      break;
-    case KIND_STREAM:
-      aResult = new HYDROData_Stream();
-      break;
-    case KIND_CONFLUENCE:
-      aResult = new HYDROData_Confluence();
-      break;
-    case KIND_CHANNEL:
-      aResult = new HYDROData_Channel();
-      break;
-    case KIND_OBSTACLE:
-      aResult = new HYDROData_Obstacle();
-      break;
-    case KIND_DIGUE:
-      aResult = new HYDROData_Digue();
-      break;
-    case KIND_PROFILE:
-      aResult = new HYDROData_Profile();
-      break;
-    case KIND_PROFILEUZ:
-      aResult = new HYDROData_ProfileUZ();
-      break;
-    case KIND_CALCULATION:
-      aResult = new HYDROData_CalculationCase();
-      break;
-    case KIND_REGION:
-      aResult = new HYDROData_Region();
-      break;
-    case KIND_ZONE:
-      aResult = new HYDROData_Zone();
-      break;
-    case KIND_VISUAL_STATE:
-      aResult = new HYDROData_VisualState();
-      break;
-    default:
-      break;
+    case KIND_IMAGE:              aResult = new HYDROData_Image();                break;
+    case KIND_POLYLINE:           aResult = new HYDROData_Polyline3D();           break;
+    case KIND_BATHYMETRY:         aResult = new HYDROData_Bathymetry();           break;
+    case KIND_ALTITUDE:           aResult = new HYDROData_AltitudeObject();       break;
+    case KIND_IMMERSIBLE_ZONE:    aResult = new HYDROData_ImmersibleZone();       break;
+    case KIND_RIVER:              aResult = new HYDROData_River();                break;
+    case KIND_STREAM:             aResult = new HYDROData_Stream();               break;
+    case KIND_CONFLUENCE:         aResult = new HYDROData_Confluence();           break;
+    case KIND_CHANNEL:            aResult = new HYDROData_Channel();              break;
+    case KIND_OBSTACLE:           aResult = new HYDROData_Obstacle();             break;
+    case KIND_DIGUE:              aResult = new HYDROData_Digue();                break;
+    case KIND_PROFILE:            aResult = new HYDROData_Profile();              break;
+    case KIND_PROFILEUZ:          aResult = new HYDROData_ProfileUZ();            break;
+    case KIND_POLYLINEXY:         aResult = new HYDROData_PolylineXY();           break;
+    case KIND_CALCULATION:        aResult = new HYDROData_CalculationCase();      break;
+    case KIND_REGION:             aResult = new HYDROData_Region();               break;
+    case KIND_ZONE:               aResult = new HYDROData_Zone();                 break;
+    case KIND_VISUAL_STATE:       aResult = new HYDROData_VisualState();          break;
+    case KIND_DUMMY_3D:           aResult = new HYDROData_DummyObject3D();        break;
+    case KIND_SHAPES_GROUP:       aResult = new HYDROData_ShapesGroup();          break;
+    case KIND_SPLITTED_GROUP:     aResult = new HYDROData_SplittedShapesGroup();  break;
+    case KIND_STREAM_ALTITUDE:    aResult = new HYDROData_StreamAltitude();       break;
+    case KIND_OBSTACLE_ALTITUDE:  aResult = new HYDROData_ObstacleAltitude();     break;
+    default:                                                                      break;
   }
 
   if ( !aResult.IsNull() )