continue;
Region aRegion;
- // aRegion.SplitData.Path = aSplitZone->GetPainterPath();
- // aRegion.SplitData.ZoneNames ???
+ aRegion.SplitData.Shape = aDataRegion->Face();
aRegion.FillingColor = aDataRegion->GetFillingColor();
aRegion.BorderColor = aDataRegion->GetBorderColor();
continue;
// Fill the zone data
+ aDataRegion->SetFace( aRegion.SplitData.Face() );
+
aDataRegion->SetName( aRegion.RegionName );
aDataRegion->SetBorderColor( aRegion.BorderColor );
aDataRegion->SetFillingColor( aRegion.FillingColor );
{
Region& aRegion = *anIter;
if ( aRegion.Shape )
+ {
+ aRegion.Shape->erase( false );
delete aRegion.Shape;
+ }
- aRegion.Shape = new HYDROGUI_Shape( aCtx );
+ aRegion.Shape = new HYDROGUI_Shape( aCtx, NULL );
- aRegion.Shape->setFillingColor( aRegion.FillingColor, false );
- aRegion.Shape->setBorderColor( aRegion.BorderColor, false );
- aRegion.Shape->setPath( aRegion.SplitData.Path, true );
+ aRegion.Shape->setFillingColor( aRegion.FillingColor, false, false );
+ aRegion.Shape->setBorderColor( aRegion.BorderColor, false, false );
+ aRegion.Shape->setFace( aRegion.SplitData.Face(), true, false );
}
//Process the draw events for viewer
Region& aRegion = *anIter;
if ( aRegion.Shape )
{
+ aRegion.Shape->erase( false );
delete aRegion.Shape;
aRegion.Shape = NULL;
}