From 24c314722985b2cd8806fa97639ff5ae40bbe3c5 Mon Sep 17 00:00:00 2001 From: pkv Date: Mon, 19 Sep 2005 13:11:27 +0000 Subject: [PATCH] fix the problem with moving of the camera during invokation the vtkRenderWindowInteractor::FlyTo(..) method --- src/OBJECT/VISU_GaussPtsAct.cxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/OBJECT/VISU_GaussPtsAct.cxx b/src/OBJECT/VISU_GaussPtsAct.cxx index ae87342e..100fd47e 100644 --- a/src/OBJECT/VISU_GaussPtsAct.cxx +++ b/src/OBJECT/VISU_GaussPtsAct.cxx @@ -59,6 +59,7 @@ #include #include #include +#include #include "VISU_Convertor_impl.hxx" // @@ -475,6 +476,7 @@ VISU_GaussPtsAct return anIsChanged; } +#include //================================================================== // function : Highlight @@ -556,11 +558,16 @@ bool VISU_GaussPtsAct::Highlight( SVTK_Selector *theSelector, theSelector->AddOrRemoveIndex( myIO, anObjId, isShift ); theSelector->AddIObject( this ); } - float *aNodeCoord, aRadius; + // + float *aNodeCoord, aRadius, aDollyWas; // aNodeCoord = GetNodeCoord(anObjId); - //aRWI->FlyTo (aRenderer, aNodeCoord); - //aRenderer->ResetCameraClippingRange(); + // + aDollyWas=aRWI->GetDolly(); + aRWI->SetDolly(0.); + aRWI->FlyTo (aRenderer, aNodeCoord); + aRenderer->ResetCameraClippingRange(); + aRWI->SetDolly(aDollyWas); // // To calculate display (2D) position of the annotation float aWorldCoord[4] = {aNodeCoord[0], aNodeCoord[1], aNodeCoord[2], 1.}; -- 2.39.2