#include <HYDROData_Polyline3D.h>
#include <HYDROData_Profile.h>
#include <HYDROData_Region.h>
+#include <HYDROData_ShapesGroup.h>
#include <HYDROData_Stream.h>
#include <HYDROData_Zone.h>
setFillingColor( aFillingColor, false, false );
setBorderColor( aBorderColor, false, false );
}
+ else if ( myObject->IsKind( STANDARD_TYPE(HYDROData_ShapesGroup) ) )
+ {
+ Handle(HYDROData_ShapesGroup) aShapesGroup =
+ Handle(HYDROData_ShapesGroup)::DownCast( myObject );
+
+ TopTools_SequenceOfShape aShapes;
+ aShapesGroup->GetShapes( aShapes );
+
+ BRepBuilderAPI_MakeWire aMakeWire;
+
+ for ( int i = 1, n = aShapes.Length(); i <= n; ++i )
+ {
+ TopoDS_Edge anEdge = TopoDS::Edge( aShapes.Value( i ) );
+ aMakeWire.Add( anEdge );
+ }
+
+ aMakeWire.Build();
+ TopoDS_Wire aResWire = aMakeWire.Wire();
+
+ setWire( aResWire, false, false );
+ setBorderColor( Qt::red, false, false );
+ }
}
if ( myShape.IsNull() || !isVisible() )
Handle(Prs3d_LineAspect) aBoundaryAspect = anAttributes->FaceBoundaryAspect();
if ( !aBoundaryAspect.IsNull() )
+ {
aBoundaryAspect->SetColor( aBorderColor );
+ anAttributes->SetFaceBoundaryAspect( aBoundaryAspect );
+ }
}
}
else if ( myDisplayMode == AIS_WireFrame )