#include <HYDROData_Image.h>
#include <HYDROData_Polyline.h>
#include <HYDROData_VisualState.h>
+#include <HYDROData_Bathymetry.h>
+#include <HYDROData_Calculation.h>
+#include <HYDROData_Zone.h>
#include <TDataStd_Name.hxx>
#include <NCollection_DataMap.hxx>
return Object(aNewLab);
}
-Handle_HYDROData_Object HYDROData_Iterator::Object(const TDF_Label theLabel)
+Handle_HYDROData_Object HYDROData_Iterator::Object( const TDF_Label theLabel )
{
ObjectKind aKind = theLabel.Father().Tag();
+
Handle(HYDROData_Object) aResult;
- switch(aKind) {
+ switch( aKind )
+ {
case KIND_IMAGE:
aResult = new HYDROData_Image();
break;
case KIND_VISUAL_STATE:
aResult = new HYDROData_VisualState();
break;
+ case KIND_BATHYMETRY:
+ aResult = new HYDROData_Bathymetry();
+ break;
+ case KIND_CALCULATION:
+ aResult = new HYDROData_Calculation();
+ break;
+ case KIND_ZONE:
+ aResult = new HYDROData_Zone();
+ break;
}
- if (!aResult.IsNull())
- aResult->SetLabel(theLabel);
+
+ if ( !aResult.IsNull() )
+ aResult->SetLabel( theLabel );
+
return aResult;
}