#include <QColor>
#include <QString>
-const Quantity_Color EDGES_COLOR = Quantity_NOC_WHITE;
+const Quantity_Color EDGES_COLOR = Quantity_NOC_SLATEGRAY;
const int HILIGHT_ISO_NB = 10;
IMPLEMENT_STANDARD_HANDLE( HYDROGUI_LandCoverMapPrs, AIS_ColoredShape )
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() )
{
Quantity_Color aColor = GetColor( aStricklerType );
SetCustomColor( aFace, aColor );
SetCustomWidth( aFace, 1.0 );
- }
+ }
+ SetTransparency( myLCMap->GetTransparency() );
}
Handle(Aspect_ColorScale) HYDROGUI_LandCoverMapPrs::GetColorScale() const