- buildShape();
- updateShape( false, false );
- //TODO END of the block of code to be reimplemented
+ QColor aFillingColor = anObject3D->GetFillingColor();
+ QColor aBorderColor = anObject3D->GetBorderColor();
+
+ 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 );