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<VTKViewer_ViewFrame*>(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();