return sfs->Shape();
}
-}
+
+ void HYDROData_LandCoverMap::SetTransparency( double theTransparency )
+ {
+ Handle(TDataStd_Real) anAttr;
+ TDF_Label aLabel = myLab.FindChild( DataTag_Transparency );
+ if( !aLabel.FindAttribute( TDataStd_Real::GetID(), anAttr ) )
+ aLabel.AddAttribute( anAttr = new TDataStd_Real() );
+ anAttr->Set( theTransparency );
+ }
+
+ double HYDROData_LandCoverMap::GetTransparency() const
+ {
+ Handle(TDataStd_Real) anAttr;
+ TDF_Label aLabel = myLab.FindChild( DataTag_Transparency );
+ if( !aLabel.FindAttribute( TDataStd_Real::GetID(), anAttr ) )
+ return 0.5;
+
+ return anAttr->Get();
+
++}
void HYDROGUI_LandCoverMapPrs::UpdateColors()
{
+ if( !myLCMap.IsNull() )
+ SetTransparency( myLCMap->GetTransparency() );
+
Set( myLCMap->GetShape() );
SetMaterial( Graphic3d_NOM_PLASTIC );
- HYDROData_LandCoverMap::Iterator anIt( myLCMap );
+ HYDROData_LandCoverMap::Explorer anIt( myLCMap );
for( ; anIt.More(); anIt.Next() )
{
TopoDS_Face aFace = anIt.Face();