#include <OCCViewer_ViewManager.h>
#include <LightApp_Application.h>
#include <QAction>
+#include <QApplication>
HYDROGUI_BathymetrySelectionOp::HYDROGUI_BathymetrySelectionOp( HYDROGUI_Module* theModule )
: HYDROGUI_Operation( theModule ), myIsActive( false )
if( myIsActive==isActive )
return;
+ qApp->setOverrideCursor( Qt::WaitCursor );
+
getContext( module() )->ClearSelected();
Handle(AIS_InteractiveContext) ctx = getContext( module() );
}
myIsActive = isActive;
+
+ qApp->restoreOverrideCursor();
}
setToUpdateColorScale( true );
if( !getAISObjects().isEmpty() )
- getAISObjects()[0]->Redisplay();
+ {
+ getContext()->RecomputePrsOnly( getAISObjects()[0] );
+ //getAISObjects()[0]->Redisplay();
+ }
}
void HYDROGUI_ShapeBathymetry::RescaleDefault()
getContext()->ClearSelected();
prs->SetTextLabels( selection );
- prs->Redisplay();
+ getContext()->RecomputePrsOnly( prs );
+ //prs->Redisplay();
getContext()->UpdateCurrentViewer();
}