From: apo Date: Mon, 17 Oct 2005 07:01:21 +0000 (+0000) Subject: To improve selection management. X-Git-Tag: TG-D5-38-2003_D2005-20-12~153 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=742addf6ca1125702bbd24b1ea4c3b2810193389;p=modules%2Fvisu.git To improve selection management. All SALOME_Actor share the same instances of pickers and highlight/prehighlight properties that is stored into SVTK_Renderer --- 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 =