From: pkv Date: Mon, 19 Sep 2005 13:11:27 +0000 (+0000) Subject: fix the problem with moving of the camera during invokation the vtkRenderWindowIntera... X-Git-Tag: BR-D5-38-2003_D2005-12-10~181 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=24c314722985b2cd8806fa97639ff5ae40bbe3c5;p=modules%2Fvisu.git fix the problem with moving of the camera during invokation the vtkRenderWindowInteractor::FlyTo(..) method --- 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.};