-
- Handle(HYDROData_Polyline) aBoundaryPolyline = myEditedObject->GetBoundaryPolyline();
- if ( !aBoundaryPolyline.IsNull() )
- {
- QString aPolylineName = aBoundaryPolyline->GetName();
- aPanel->setPolylineName( aPolylineName );
- }
-
- HYDROData_SequenceOfObjects aRefZones = myEditedObject->GetZones();
- HYDROData_SequenceOfObjects::Iterator anIter( aRefZones );
- for ( ; anIter.More(); anIter.Next() )
- {
- Handle(HYDROData_Zone) aRefZone =
- Handle(HYDROData_Zone)::DownCast( anIter.Value() );
- if ( aRefZone.IsNull() )
- continue;
-
- QString aRefZoneName = aRefZone->GetName();
- if ( aRefZoneName.isEmpty() )
- continue;
-
- aSelectedZones.append( aRefZoneName );
- }
-
- HYDROData_SequenceOfObjects aSplitZones = myEditedObject->GetSplittedZones();
- anIter.Init( aSplitZones );
- for ( ; anIter.More(); anIter.Next() )
- {
- Handle(HYDROData_Zone) aSplitZone =
- Handle(HYDROData_Zone)::DownCast( anIter.Value() );
- if ( aSplitZone.IsNull() )
- continue;
-
- QString aSplitZoneName = aSplitZone->GetName();
- if ( aSplitZoneName.isEmpty() )
- continue;
-
- SplittedZone aSplittedZone;
- aSplittedZone.SplitData.Path = aSplitZone->GetPainterPath();
- // aSplittedZone.SplitData.ZoneNames ???
-
- aSplittedZone.FillingColor = aSplitZone->GetFillingColor();
- aSplittedZone.BorderColor = aSplitZone->GetBorderColor();
-
- aSplittedZone.ZoneName = aSplitZoneName;
-
- Handle(HYDROData_Polyline) aZonePolyline = aSplitZone->GetPolyline();
- if ( !aZonePolyline.IsNull() )
- aSplittedZone.PolylineName = aZonePolyline->GetName();
-
- aSplittedZone.DataZone = aSplitZone;
-
- mySplittedZones.append( aSplittedZone );
-
- aSplittedZones.append( aSplitZoneName );
- }