From 0529c1b2089dedbde1438b54774a31401dd72e8b Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 10 Dec 2007 14:51:36 +0000 Subject: [PATCH] Fix for Bug NPAL18219 EDF 618 VISU : Regression, Lost of permformance in Vectors representation --- src/LightApp/LightApp_Application.cxx | 1 + src/LightApp/resources/LightApp.xml | 2 ++ src/LightApp/resources/LightApp_msg_en.po | 3 +++ src/SVTK/SVTK_Selector.cxx | 2 +- src/SalomeApp/resources/SalomeApp.xml | 1 + 5 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index fad300901..d5b8f386b 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -1809,6 +1809,7 @@ void LightApp_Application::createPreferences( LightApp_Preferences* pref ) pref->addPreference( tr( "PREF_RELATIVE_SIZE" ), vtkGroup, LightApp_Preferences::Bool, "VTKViewer", "relative_size" ); pref->addPreference( tr( "PREF_VIEWER_BACKGROUND" ), vtkGroup, LightApp_Preferences::Color, "VTKViewer", "background" ); + pref->addPreference( tr( "PREF_USE_ADVANCED_SELECTION_ALGORITHM" ), vtkGroup, LightApp_Preferences::Bool, "VTKViewer", "use_advanced_selection_algorithm" ); pref->setItemProperty( vtkTS, "min", 1.0E-06 ); pref->setItemProperty( vtkTS, "max", 150 ); diff --git a/src/LightApp/resources/LightApp.xml b/src/LightApp/resources/LightApp.xml index fa3b06bd7..b011a33f3 100644 --- a/src/LightApp/resources/LightApp.xml +++ b/src/LightApp/resources/LightApp.xml @@ -73,6 +73,8 @@ + +
diff --git a/src/LightApp/resources/LightApp_msg_en.po b/src/LightApp/resources/LightApp_msg_en.po index d39056f3c..42223b609 100644 --- a/src/LightApp/resources/LightApp_msg_en.po +++ b/src/LightApp/resources/LightApp_msg_en.po @@ -180,6 +180,9 @@ msgstr "VTK Viewer 3d" msgid "LightApp_Application::PREF_VIEWER_BACKGROUND" msgstr "Background color" +msgid "LightApp_Application::PREF_USE_ADVANCED_SELECTION_ALGORITHM" +msgstr "Use Advanced Selection Algorithm" + msgid "LightApp_Application::PREF_TRIHEDRON_SIZE" msgstr "Trihedron size" diff --git a/src/SVTK/SVTK_Selector.cxx b/src/SVTK/SVTK_Selector.cxx index c23a922cb..91ce79229 100644 --- a/src/SVTK/SVTK_Selector.cxx +++ b/src/SVTK/SVTK_Selector.cxx @@ -554,7 +554,7 @@ SVTK_SelectorDef bool anAdvancedSelectionAlgorithm = true; SUIT_ResourceMgr* aResourceMgr = SUIT_Session::session()->resourceMgr(); if ( aResourceMgr ) - anAdvancedSelectionAlgorithm = aResourceMgr->booleanValue( "VTKViewer", "selection_algorithm", true ); + anAdvancedSelectionAlgorithm = aResourceMgr->booleanValue( "VTKViewer", "use_advanced_selection_algorithm", true ); SALOME_Actor* anActor = NULL; vtkActorCollection* aListActors = NULL; diff --git a/src/SalomeApp/resources/SalomeApp.xml b/src/SalomeApp/resources/SalomeApp.xml index 1054fba97..1aa8c00e6 100644 --- a/src/SalomeApp/resources/SalomeApp.xml +++ b/src/SalomeApp/resources/SalomeApp.xml @@ -90,6 +90,7 @@ +
-- 2.39.2