From: apo Date: Fri, 12 Sep 2008 07:13:50 +0000 (+0000) Subject: Improving "Filtering by Scalars" functionality X-Git-Tag: TG_VISU_2008_2008-09-12~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7a21501766c937c05db848aa6513dcd5a90d1d58;p=modules%2Fvisu.git Improving "Filtering by Scalars" functionality - introduction special marks on scalar bar --- diff --git a/src/VISUGUI/VISU_msg_en.ts b/src/VISUGUI/VISU_msg_en.ts index d14f7765..4ff11002 100644 --- a/src/VISUGUI/VISU_msg_en.ts +++ b/src/VISUGUI/VISU_msg_en.ts @@ -300,7 +300,7 @@ number of time stamps or number of components is not the same! VISU_SCALAR_RANGE - Scalar range + Scalar range: VISU_SHOW_BOUNDARY_EDGES @@ -1999,7 +1999,7 @@ Please, provide non-empty resulting presentation. LOGARITHMIC_SCALING - Logarithmic scaling + Logarithmic ORIENTATION_GRP @@ -2019,7 +2019,7 @@ Please, provide non-empty resulting presentation. SCALAR_RANGE_GRP - Scalar range + Scalar range: VERTICAL_BTN @@ -2830,7 +2830,7 @@ Please, provide non-empty resulting presentation. LOGARITHMIC_SCALING - Logarithmic scaling + Logarithmic MSG_MINMAX_VALUES @@ -2850,7 +2850,7 @@ Please, provide non-empty resulting presentation. SCALAR_RANGE_GRP - Scalar range + Scalar range: VERTICAL_BTN diff --git a/src/VISUGUI/VisuGUI_FilterScalarsDlg.cxx b/src/VISUGUI/VisuGUI_FilterScalarsDlg.cxx index b606a41e..ccca18b9 100644 --- a/src/VISUGUI/VisuGUI_FilterScalarsDlg.cxx +++ b/src/VISUGUI/VisuGUI_FilterScalarsDlg.cxx @@ -128,6 +128,7 @@ void VisuGUI_FilterScalarsDlg::accept() { myColoredPrs3d->SetScalarFilterRange( myMinEdit->text().toDouble(), myMaxEdit->text().toDouble() ); myColoredPrs3d->UseScalarFiltering( myRangeBox->isChecked() ); + myColoredPrs3d->UpdateActors(); QDialog::accept(); } diff --git a/src/VISU_I/VISU_ScalarMap_i.cc b/src/VISU_I/VISU_ScalarMap_i.cc index 850d6de0..ebcba2f5 100644 --- a/src/VISU_I/VISU_ScalarMap_i.cc +++ b/src/VISU_I/VISU_ScalarMap_i.cc @@ -435,10 +435,10 @@ VISU::ScalarMap_i VISU_LookupTable * aLookupTable = GetSpecificPL()->GetBarTable(); if ( IsScalarFilterUsed() ) { - unsigned char MARK_COLOR[] = { 1, 1, 1 }; + aLookupTable->ForceBuild(); + static unsigned char MARK_COLOR[] = { 1, 1, 1 }; aLookupTable->MarkValueByColor( GetScalarFilterMin(), MARK_COLOR ); aLookupTable->MarkValueByColor( GetScalarFilterMax(), MARK_COLOR ); - aLookupTable->Modified(); } VISU_ScalarBarActor *aScalarBar = anActor->GetScalarBar();