]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To improve selection management.
authorapo <apo@opencascade.com>
Mon, 17 Oct 2005 07:01:21 +0000 (07:01 +0000)
committerapo <apo@opencascade.com>
Mon, 17 Oct 2005 07:01:21 +0000 (07:01 +0000)
All SALOME_Actor share the same instances of pickers and highlight/prehighlight properties that is stored into SVTK_Renderer

src/OBJECT/VISU_GaussPtsAct.cxx

index 5646fd4cdadf73dc2b1402ab2c16cf8131c16e44..ab61fee02802abe145bfba7645378bdc85317ee1 100644 (file)
@@ -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 =