X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Preferences_ScalarBarDlg.cxx;h=b55413f09530a9013d2a312c32500fc9e131a458;hp=1989d2c146f01c5ddd767198391d8c4939d7f7af;hb=e4737e85f0da6d3f90fd08f6be1c2825195fe16f;hpb=51569f091c2d18be76ea9bd3e68ca0247cc731c3 diff --git a/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx b/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx index 1989d2c14..b55413f09 100644 --- a/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx @@ -26,9 +26,10 @@ // Module : SMESH // $Header$ -using namespace std; #include "SMESHGUI_Preferences_ScalarBarDlg.h" + #include "SMESHGUI.h" +#include "SMESHGUI_VTKUtils.h" #include #include @@ -46,6 +47,7 @@ using namespace std; #include #include +#include #include "QAD_SpinBoxDbl.h" #include "QAD_Config.h" @@ -66,6 +68,8 @@ using namespace std; #define DEF_HOR_H 0.12 #define DEF_HOR_W 0.60 +using namespace std; + // Only one instance is allowed SMESHGUI_Preferences_ScalarBarDlg* SMESHGUI_Preferences_ScalarBarDlg::myDlg = 0; @@ -497,7 +501,7 @@ bool SMESHGUI_Preferences_ScalarBarDlg::onApply() double aMin = myMinEdit->text().toDouble(); double aMax = myMaxEdit->text().toDouble(); myScalarBarActor->GetLookupTable()->SetRange( aMin, aMax ); - SMESHGUI::GetSMESHGUI()->UpdateView(); + SMESH::RepaintCurrentView(); } else { // Scalar Bar preferences @@ -593,9 +597,8 @@ void SMESHGUI_Preferences_ScalarBarDlg::onSelectionChanged() if ( mySelection->IObjectCount() == 1 ) { Handle(SALOME_InteractiveObject) anIO = mySelection->firstIObject(); if( anIO->hasEntry() ) { - Standard_Boolean isOk; - SMESH_Actor* anActor = SMESHGUI::GetSMESHGUI()->FindActorByEntry( anIO->getEntry(), isOk, true ); - if ( isOk && anActor->GetScalarBarActor() && anActor->GetControlMode() != SMESH_Actor::eNone ) { + SMESH_Actor* anActor = SMESH::FindActorByEntry(anIO->getEntry()); + if ( anActor && anActor->GetScalarBarActor() && anActor->GetControlMode() != SMESH_Actor::eNone ) { myActor = anActor; vtkScalarBarActor* myScalarBarActor = myActor->GetScalarBarActor();