From 48b9784d4bf74d7040c249ab0e185316d5fd0c37 Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 20 Sep 2005 13:35:44 +0000 Subject: [PATCH] Porting on SALOME CVS HEAD --- src/SVTK/SALOME_Actor.cxx | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/src/SVTK/SALOME_Actor.cxx b/src/SVTK/SALOME_Actor.cxx index 836065fc8..28163b263 100644 --- a/src/SVTK/SALOME_Actor.cxx +++ b/src/SVTK/SALOME_Actor.cxx @@ -116,8 +116,8 @@ SALOME_Actor mySelectionMode(ActorSelection), myIsHighlighted(false), myIsPreselected(false), - myRepresentation(VTK_WIREFRAME), - myDisplayMode(0), + myRepresentation(VTK_SURFACE), + myDisplayMode(1), myProperty(vtkProperty::New()), PreviewProperty(NULL), myIsInfinite(false), @@ -704,15 +704,19 @@ SALOME_Actor ::highlight(bool theHighlight, Selection_Mode theSelectionMode) { - myIsHighlighted = theHighlight; - - if( !GetVisibility() ) - return; - - myOutline->SetBounds( GetBounds() ); - myOutlineActor->SetVisibility( theHighlight ); - - myHighlightActor->SetVisibility( theHighlight && theSelectionMode != ActorSelection ); + if(hasHighlight() && theSelectionMode == ActorSelection) + highlight(theHighlight); + else{ + myIsHighlighted = theHighlight; + + if( !GetVisibility() ) + return; + + myOutline->SetBounds( GetBounds() ); + myOutlineActor->SetVisibility( theHighlight ); + + myHighlightActor->SetVisibility( theHighlight && theSelectionMode != ActorSelection ); + } } //---------------------------------------------------------------- -- 2.39.2