#include "HYDROData_Image.h"
#include "HYDROData_ImmersibleZone.h"
#include "HYDROData_Obstacle.h"
+#include "HYDROData_Polyline3D.h"
#include "HYDROData_PolylineXY.h"
#include "HYDROData_Profile.h"
#include "HYDROData_ProfileUZ.h"
case KIND_IMAGE:
aResult = new HYDROData_Image();
break;
- //case KIND_POLYLINE:
- //aResult = new HYDROData_Polyline();
- //break;
+ case KIND_POLYLINE:
+ aResult = new HYDROData_Polyline3D();
+ break;
case KIND_BATHYMETRY:
aResult = new HYDROData_Bathymetry();
break;
#include <HYDROData_Image.h>
#include <HYDROData_ImmersibleZone.h>
#include <HYDROData_Iterator.h>
+#include <HYDROData_Polyline3D.h>
#include <HYDROData_PolylineXY.h>
#include <HYDROData_Profile.h>
#include <HYDROData_VisualState.h>
// POLYLINES
LightApp_DataObject* aPolylineRootObj = createObject( aRootObj, tr( partitionName( KIND_POLYLINEXY ).toAscii() ) );
+ // POLYLINES
+ LightApp_DataObject* aPolyline3DRootObj = createObject( aRootObj, tr( partitionName( KIND_POLYLINE ).toAscii() ) );
+
// PROFILES
LightApp_DataObject* aProfileRootObj = createObject( aRootObj, tr( partitionName( KIND_PROFILE ).toAscii() ) );
break;
}
+ case KIND_POLYLINE:
+ {
+ Handle(HYDROData_Polyline3D) aPolylineObj =
+ Handle(HYDROData_Polyline3D)::DownCast( anObj );
+ if( !aPolylineObj.IsNull() ) {
+ createObject( aPolyline3DRootObj, aPolylineObj );
+ }
+
+ break;
+ }
case KIND_PROFILE:
{
Handle(HYDROData_Profile) aProfileObj =
switch( theObjectKind )
{
case KIND_IMAGE: return "IMAGES";
+ case KIND_POLYLINE: return "POLYLINES 3D";
case KIND_POLYLINEXY: return "POLYLINES";
case KIND_PROFILE: return "PROFILES";
case KIND_VISUAL_STATE: return "VISUAL_STATES";