+ // Set shading mode to avoid that hilight presentation is equal to "normal" object presentation.
+ // Note that hilight presentation is always to be on top ( i.e. in the top Z layer ).
+ myDisplayMode = AIS_Shaded;
+
+ buildShape();
+ updateShape( false, false );
+ }
+ }
+
+ QColor aWireColor = aPolyline->GetWireColor();
+ setBorderColor( aWireColor, false, false );
+ }
+ 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;
+ // Set shading mode to avoid that hilight presentation is equal to "normal" object presentation.
+ // Note that hilight presentation is always to be on top ( i.e. in the top Z layer ).
+ myDisplayMode = AIS_Shaded;