if(!mySelector.GetPointer())
return;
+ VISU_PickingSettings* aPickingSettings = VISU_PickingSettings::Get();
+
Selection_Mode aSelectionMode = mySelector->SelectionMode();
bool anInitialHasIndex = isSubElementsHighlighted() && mySelectionMode == GaussPointSelection;
mySelector->GetIndex( getIO(), aMapIndex );
bool aCurrentHasIndex = aMapIndex.Extent() == 1;
bool anIsVisible = GetVisibility() && aCurrentHasIndex && theIsHighlight;
+ bool aShowTextActor = aPickingSettings->GetInfoWindowEnabled();
myOutlineActor->SetVisibility(false);
myCursorPyramid->SetVisibility(false);
- myTextActor->SetVisibility(anIsVisible);
+ myTextActor->SetVisibility(anIsVisible && aShowTextActor);
myCellActor->SetVisibility(anIsVisible);
GetScalarBarCtrl()->SetIsMarked(anIsVisible);
myCursorPyramidSelected->SetVisibility(anIsVisible);
myIsSubElementsHighlighted = aCurrentHasIndex;
- VISU_PickingSettings* aPickingSettings = VISU_PickingSettings::Get();
-
// Zoom if necessary
- ChangeZoom(aPickingSettings,
- GetRenderer(),
- anInitialHasIndex,
- aCurrentHasIndex);
+ if( anIsVisible && aPickingSettings->GetCameraMovementEnabled() )
+ {
+ ChangeZoom(aPickingSettings,
+ GetRenderer(),
+ anInitialHasIndex,
+ aCurrentHasIndex);
+ }
if( aSelectionMode == ActorSelection ) {
Superclass::Highlight(theIsHighlight);
return;
// FlyTo
- vtkRenderWindowInteractor* anInteractor = myInteractor;
- vtkFloatingPointType aDollyWas = anInteractor->GetDolly();
- int aNumberOfFlyFramesWas = anInteractor->GetNumberOfFlyFrames();
+ if( anIsVisible && aPickingSettings->GetCameraMovementEnabled() )
+ {
+ vtkRenderWindowInteractor* anInteractor = myInteractor;
+ vtkFloatingPointType aDollyWas = anInteractor->GetDolly();
+ int aNumberOfFlyFramesWas = anInteractor->GetNumberOfFlyFrames();
- anInteractor->SetDolly(0.0);
- anInteractor->SetNumberOfFlyFrames(aPickingSettings->GetStepNumber());
- anInteractor->FlyTo(aRenderer, aNodeCoord);
- aRenderer->ResetCameraClippingRange();
- anInteractor->SetDolly(aDollyWas);
- anInteractor->SetNumberOfFlyFrames(aNumberOfFlyFramesWas);
- anInteractor->InvokeEvent(SVTK::ChangeRotationPoint, aNodeCoord);
+ anInteractor->SetDolly(0.0);
+ anInteractor->SetNumberOfFlyFrames(aPickingSettings->GetStepNumber());
+ anInteractor->FlyTo(aRenderer, aNodeCoord);
+ aRenderer->ResetCameraClippingRange();
+ anInteractor->SetDolly(aDollyWas);
+ anInteractor->SetNumberOfFlyFrames(aNumberOfFlyFramesWas);
+ anInteractor->InvokeEvent(SVTK::ChangeRotationPoint, aNodeCoord);
+ }
//
std::ostringstream aStr;
// int anObjId = aMapIndex(1);
myTextActor->SetTransparency(aPickingSettings->GetInfoWindowTransparency());
myTextActor->SetWorldPoint(aWorldCoord);
myTextActor->SetText(aString.c_str());
- myTextActor->SetVisibility(anIsVisible && theIsHighlight);
+ myTextActor->SetVisibility(anIsVisible && theIsHighlight && aShowTextActor);
//
// myCellActor
if(aPickingSettings->GetDisplayParentMesh()){