#include <vtkDataSetMapper.h>
#include <vtkCell.h>
#include <vtkCellArray.h>
+#include <vtkRenderWindow.h>
#include "VISU_Convertor_impl.hxx"
//
return anIsChanged;
}
+#include<vtkMath.h>
//==================================================================
// function : Highlight
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.};