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