Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refs #682, #684 - #686: create icons for land cover map operations.
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_LandCoverMapPrs.cxx
diff --git
a/src/HYDROGUI/HYDROGUI_LandCoverMapPrs.cxx
b/src/HYDROGUI/HYDROGUI_LandCoverMapPrs.cxx
index 0afe0e31f9f880e7c544f5985d5390c2945f7388..196bd70ded7ab773c1078b792ca147b3efd2644f 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_LandCoverMapPrs.cxx
+++ b/
src/HYDROGUI/HYDROGUI_LandCoverMapPrs.cxx
@@
-28,7
+28,7
@@
#include <QColor>
#include <QString>
#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 )
const int HILIGHT_ISO_NB = 10;
IMPLEMENT_STANDARD_HANDLE( HYDROGUI_LandCoverMapPrs, AIS_ColoredShape )
@@
-59,12
+59,15
@@
void HYDROGUI_LandCoverMapPrs::SetLandCoverMap( const Handle(HYDROData_LandCover
void HYDROGUI_LandCoverMapPrs::UpdateColors()
{
void HYDROGUI_LandCoverMapPrs::UpdateColors()
{
- if( !myLCMap.IsNull() )
- SetTransparency( myLCMap->GetTransparency() );
-
- Set( myLCMap->GetShape() );
SetMaterial( Graphic3d_NOM_PLASTIC );
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();
for( ; anIt.More(); anIt.Next() )
{
TopoDS_Face aFace = anIt.Face();
@@
-72,7
+75,8
@@
void HYDROGUI_LandCoverMapPrs::UpdateColors()
Quantity_Color aColor = GetColor( aStricklerType );
SetCustomColor( aFace, aColor );
SetCustomWidth( aFace, 1.0 );
Quantity_Color aColor = GetColor( aStricklerType );
SetCustomColor( aFace, aColor );
SetCustomWidth( aFace, 1.0 );
- }
+ }
+ SetTransparency( myLCMap->GetTransparency() );
}
Handle(Aspect_ColorScale) HYDROGUI_LandCoverMapPrs::GetColorScale() const
}
Handle(Aspect_ColorScale) HYDROGUI_LandCoverMapPrs::GetColorScale() const