From 7a21501766c937c05db848aa6513dcd5a90d1d58 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 12 Sep 2008 07:13:50 +0000 Subject: [PATCH] Improving "Filtering by Scalars" functionality - introduction special marks on scalar bar --- src/VISUGUI/VISU_msg_en.ts | 10 +++++----- src/VISUGUI/VisuGUI_FilterScalarsDlg.cxx | 1 + src/VISU_I/VISU_ScalarMap_i.cc | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) 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(); -- 2.39.2