From 7eba5f99e851f5e298b8bea7dd2e535286765ca5 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 29 Apr 2005 07:14:25 +0000 Subject: [PATCH] Moving of actors without recalculation --- src/VISUGUI/VisuGUI.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 6f0eff12..02cf8f34 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -4432,7 +4432,15 @@ void VisuGUI::TranslatePrs() if (aDlg.exec() == QDialog::Accepted) { aDlg.getOffset(aOffset); aPrsObject->SetOffset(aOffset); - RecreateActor(aPrsObject); + // RecreateActor(aPrsObject); + for(int i = 0, nbFrames = GetActiveStudy()->getStudyFramesCount(); i < nbFrames; i++){ + if(QAD_StudyFrame* aFrame = GetActiveStudy()->getStudyFrame(i)){ + QAD_ViewFrame* aVFrame = aFrame->getRightFrame()->getViewFrame(); + if(VTKViewer_ViewFrame* aViewFrame = dynamic_cast(aVFrame)) + if(VISU_Actor* anActor = GetActor(aPrsObject,aViewFrame)) + anActor->SetPosition(aOffset);; + } + } if (VTKViewer_ViewFrame* vf = GetVtkViewFrame()) { if ( vf->getRenderer()->GetActors()->GetNumberOfItems () > 0 ) { vf->getRenderer()->ResetCameraClippingRange(); -- 2.39.2