-
- 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 aDataRegions = myEditedObject->GetRegions();
- anIter.Init( aDataRegions );
- for ( ; anIter.More(); anIter.Next() )
- {
- Handle(HYDROData_Region) aDataRegion =
- Handle(HYDROData_Region)::DownCast( anIter.Value() );
- if ( aDataRegion.IsNull() )
- continue;
-
- QString aRegionName = aDataRegion->GetName();
- if ( aRegionName.isEmpty() )
- continue;
-
- Region aRegion;
- aRegion.SplitData.Shape = aDataRegion->Face();
-
- aRegion.FillingColor = aDataRegion->GetFillingColor();
- aRegion.BorderColor = aDataRegion->GetBorderColor();
-
- aRegion.RegionName = aRegionName;
-
- aRegion.DataRegion = aDataRegion;
-
- myRegionsList.append( aRegion );
-
- aRegions.append( aRegionName );
- }