OCCViewer_ViewWindow* aWnd = dynamic_cast<OCCViewer_ViewWindow*>( theViewer->getViewManager()->getActiveView() );
Handle(V3d_View) aView = aWnd->getViewPort()->getView();
-
+
int aViewerId = (size_t)theViewer;//TODO: check if viewer id is correct
bool isLandCoverColoringOn = module()->isLandCoversScalarMapModeOn( aViewerId );
// Get range
Handle(HYDROData_StricklerTable) aTable;
- TColStd_SequenceOfExtendedString aTableTypes;
+ QStringList aTableTypes;
if ( isLandCoverColoringOn ) {
aTable = module()->getLandCoverColoringTable( aViewerId );
if ( !aTable.IsNull() ) {
- aColorScaleTitle = TCollection_ExtendedString( aTable->GetName().toLatin1().constData() );
+ // TODO: non-empty title leads to buggy behaviour
+ // aColorScaleTitle = TCollection_ExtendedString( aTable->GetName().toLatin1().constData() );
aTable->GetCoefficientRange( aColorScaleMin, aColorScaleMax );
aTableTypes = aTable->GetTypes();
}
QColor aColor = isLandCoverColoringOn ? aUndefinedColor : aLandCover->GetFillingColor();
if ( isLandCoverColoringOn && !aTable.IsNull() ) {
- TCollection_ExtendedString aStricklerType =
+ QString aStricklerType =
aLandCover->GetStricklerType().toLatin1().constData();
if ( aTable->HasType( aStricklerType ) ) {
aLandCoverShape->setFillingColor( aColor, true, true );
aLandCoverShape->setScalarMapModeEnabled( isLandCoverColoringOn );
theViewer->getAISContext()->Redisplay( aLandCoverShape->getAISObject() );
- //theViewer->getAISContext()->UpdateCurrentViewer(); //@MZN
- //theViewer->getAISContext()->UpdateCurrent();
- //theViewer->getAISContext()->UpdateSelected( true );
}
myToUpdateColorScale = false;