From 742addf6ca1125702bbd24b1ea4c3b2810193389 Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 17 Oct 2005 07:01:21 +0000 Subject: [PATCH] To improve selection management. All SALOME_Actor share the same instances of pickers and highlight/prehighlight properties that is stored into SVTK_Renderer --- src/OBJECT/VISU_GaussPtsAct.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OBJECT/VISU_GaussPtsAct.cxx b/src/OBJECT/VISU_GaussPtsAct.cxx index 5646fd4c..ab61fee0 100644 --- a/src/OBJECT/VISU_GaussPtsAct.cxx +++ b/src/OBJECT/VISU_GaussPtsAct.cxx @@ -521,11 +521,11 @@ bool VISU_GaussPtsAct::PreHighlight(SVTK_Selector* theSelector, if(vtkDataArray *aScalarArray = aCellData->GetScalars()){ float aRadius = myGaussPointsPL->GetPointSize(aVtkId,aScalarArray); float aPyramidHeight = myPickingSettings->GetPyramidHeight(); - aPyramidHeight=aPyramidHeight*myGaussPointsPL->GetMaxPointSize(); + aPyramidHeight = aPyramidHeight*myGaussPointsPL->GetMaxPointSize(); myCursorPyramid->Init(aPyramidHeight, aRadius, aNodeCoord, - myPreHighlightProperty.GetPointer()->GetColor()); + myHighlightActor->GetProperty()->GetColor()); } myLastObjPointID = anObjId; } @@ -676,7 +676,7 @@ void VISU_GaussPtsAct::highlight(bool theHighlight, myCursorPyramidSelected->Init(aPyramidHeight, aRadius, aNodeCoord, - myHighlightProperty.GetPointer()->GetColor()); + myHighlightActor->GetProperty()->GetColor()); myCursorPyramidSelected->SetVisibility(1); // const VISU::PGaussPtsIDMapper& aGaussPtsIDMapper = -- 2.39.2