#include "HYDROData_Image.h"
#include "HYDROData_ImmersibleZone.h"
#include "HYDROData_Obstacle.h"
-#include "HYDROData_Polyline.h"
+#include "HYDROData_PolylineXY.h"
#include "HYDROData_Profile.h"
#include "HYDROData_ProfileUZ.h"
#include "HYDROData_VisualState.h"
return theRoot.FindChild(theKind);
}
-HYDROData_Iterator::HYDROData_Iterator(Handle(HYDROData_Document) theDoc, ObjectKind theKind)
- : myIter(GetLabelByKind(theDoc->LabelOfObjects(), theKind),
- TDataStd_Name::GetID(), theKind == KIND_UNKNOWN) // iterate all sub-objects for unknown kind
+HYDROData_Iterator::HYDROData_Iterator( const Handle(HYDROData_Document)& theDoc,
+ const ObjectKind theKind )
+: myIter( GetLabelByKind( theDoc->LabelOfObjects(), theKind ),
+ TDataStd_Name::GetID(), theKind == KIND_UNKNOWN ) // iterate all sub-objects for unknown kind
{
}
case KIND_IMAGE:
aResult = new HYDROData_Image();
break;
- case KIND_POLYLINE:
- aResult = new HYDROData_Polyline();
- break;
+ //case KIND_POLYLINE:
+ //aResult = new HYDROData_Polyline();
+ //break;
case KIND_BATHYMETRY:
aResult = new HYDROData_Bathymetry();
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;