]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Moving of actors without recalculation
authorvsv <vsv@opencascade.com>
Fri, 29 Apr 2005 07:14:25 +0000 (07:14 +0000)
committervsv <vsv@opencascade.com>
Fri, 29 Apr 2005 07:14:25 +0000 (07:14 +0000)
src/VISUGUI/VisuGUI.cxx

index 6f0eff12ff199a1d2b70378a6f9c3dcd776d478a..02cf8f3444d2c11a9409f168445fa4b2037796e9 100644 (file)
@@ -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<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();