void HYDROGUI_LandCoverMapPrs::UpdateColors()
{
- if( !myLCMap.IsNull() )
- SetTransparency( myLCMap->GetTransparency() );
-
- Set( myLCMap->GetShape() );
SetMaterial( Graphic3d_NOM_PLASTIC );
+ if( myLCMap.IsNull() )
+ {
+ Set( TopoDS_Shape() );
+ return;
+ }
+
+ Set( myLCMap->GetShape() );
HYDROData_LandCoverMap::Explorer anIt( myLCMap );
for( ; anIt.More(); anIt.Next() )
{
QString aStricklerType = anIt.StricklerType();
Quantity_Color aColor = GetColor( aStricklerType );
SetCustomColor( aFace, aColor );
- SetCustomWidth( aFace, 1.0 );
- }
+ SetCustomWidth( aFace, 1.0 );
+ }
+ SetTransparency( myLCMap->GetTransparency() );
}
Handle(Aspect_ColorScale) HYDROGUI_LandCoverMapPrs::GetColorScale() const