ObjectKind anObjectKind = theObject->GetKind();
if ( anObjectKind != KIND_IMAGE &&
anObjectKind != KIND_POLYLINEXY &&
+ anObjectKind != KIND_POLYLINE &&
anObjectKind != KIND_IMMERSIBLE_ZONE &&
anObjectKind != KIND_REGION &&
anObjectKind != KIND_ZONE &&
#include <HYDROData_ImmersibleZone.h>
#include <HYDROData_Obstacle.h>
#include <HYDROData_PolylineXY.h>
+#include <HYDROData_Polyline3D.h>
#include <HYDROData_Profile.h>
#include <HYDROData_Region.h>
#include <HYDROData_Stream.h>
}
}
}
+ else if ( myObject->IsKind( STANDARD_TYPE(HYDROData_Polyline3D) ) )
+ {
+ Handle(HYDROData_Polyline3D) aPolyline =
+ Handle(HYDROData_Polyline3D)::DownCast( myObject );
+
+ TopoDS_Shape aPolylineShape = aPolyline->GetShape3D();
+
+ if ( !aPolylineShape.IsNull() ) {
+ if ( aPolylineShape.ShapeType() == TopAbs_WIRE ) {
+ TopoDS_Wire aPolylineWire = TopoDS::Wire( aPolylineShape );
+ setWire( aPolylineWire, false, false );
+ } else {
+ myTopoShape = aPolylineShape;
+ myDisplayMode = AIS_WireFrame;
+
+ buildShape();
+ updateShape( false, false );
+ }
+ }
+ }
else if ( myObject->IsKind( STANDARD_TYPE(HYDROData_Zone) ) )
{
Handle(HYDROData_Zone) aZone =
if( !anObject.IsNull() && (
( anObject->GetKind() == KIND_IMAGE ) ||
( anObject->GetKind() == KIND_POLYLINEXY ) ||
+ ( anObject->GetKind() == KIND_POLYLINE ) ||
( anObject->GetKind() == KIND_IMMERSIBLE_ZONE ) ||
( anObject->GetKind() == KIND_REGION ) ||
( anObject->GetKind() == KIND_BATHYMETRY ) ||