continue;
}
- QColor aColor;
Handle(HYDROData_LandCoverMap) aLandCoverMap =
Handle(HYDROData_LandCoverMap)::DownCast( aLandCoverMapShape->getObject() );
continue;
}
- aLandCoverMapShape->setScalarMapModeEnabled( isLandCoverColoringOn );
- theViewer->getAISContext()->Redisplay( aLandCoverMapShape->getAISObject() );
+ bool isScalarMode = aLandCoverMapShape->isScalarMapModeEnabled();
+ if( isScalarMode != isLandCoverColoringOn )
+ {
+ aLandCoverMapShape->setScalarMapModeEnabled( isLandCoverColoringOn );
+ theViewer->getAISContext()->Redisplay( aLandCoverMapShape->getAISObject() );
+ }
}
myToUpdateColorScale = false;
HYDROGUI_Shape::update( theIsUpdateViewer, isDeactivateSelection );
}
+bool HYDROGUI_ShapeLandCoverMap::isScalarMapModeEnabled() const
+{
+ return myIsScalarMapMode;
+}
+
void HYDROGUI_ShapeLandCoverMap::setScalarMapModeEnabled( const bool theIsToEnable )
{
myIsScalarMapMode = theIsToEnable;
virtual void setVisible( const bool theState,
const bool theIsUpdateViewer = true );
+ bool isScalarMapModeEnabled() const;
/**
* Enable/disable scalar map coloring mode.
* @param theIsToEnable if true - scalar map coloring mode willbe enbaled, if false - disabled