----------------------------------------------------------------------------- Write the user chosen values for this key frame to the proxy.
| 397 | //----------------------------------------------------------------------------- |
| 398 | /// Write the user chosen values for this key frame to the proxy. |
| 399 | void pqCameraKeyFrameWidget::saveToKeyFrame(vtkSMProxy* keyFrame) |
| 400 | { |
| 401 | this->Internal->PSplineWidget->apply(); |
| 402 | this->Internal->FSplineWidget->apply(); |
| 403 | |
| 404 | vtkSMPropertyHelper(keyFrame, "Position").Set(this->Internal->position(), 3); |
| 405 | |
| 406 | vtkSMPropertyHelper(keyFrame, "FocalPoint").Set(this->Internal->focalPoint(), 3); |
| 407 | |
| 408 | vtkSMPropertyHelper(keyFrame, "ViewUp") |
| 409 | .Set( |
| 410 | this->usePathBasedMode() ? this->Internal->viewUp_Path() : this->Internal->viewUp_NonPath(), |
| 411 | 3); |
| 412 | |
| 413 | vtkSMPropertyHelper(keyFrame, "ViewAngle").Set(this->Internal->getViewAngle()); |
| 414 | |
| 415 | vtkSMPropertyHelper(keyFrame, "ParallelScale").Set(this->Internal->getParallelScale()); |
| 416 | |
| 417 | keyFrame->GetProperty("PositionPathPoints") |
| 418 | ->Copy(this->Internal->PSplineProxy->GetProperty("Points")); |
| 419 | |
| 420 | keyFrame->GetProperty("FocalPathPoints") |
| 421 | ->Copy(this->Internal->FSplineProxy->GetProperty("Points")); |
| 422 | |
| 423 | keyFrame->GetProperty("ClosedPositionPath") |
| 424 | ->Copy(this->Internal->PSplineProxy->GetProperty("Closed")); |
| 425 | |
| 426 | keyFrame->GetProperty("ClosedFocalPath") |
| 427 | ->Copy(this->Internal->FSplineProxy->GetProperty("Closed")); |
| 428 | keyFrame->UpdateVTKObjects(); |
| 429 | } |
| 430 | |
| 431 | //----------------------------------------------------------------------------- |
| 432 | void pqCameraKeyFrameWidget::changeCurrentPage() |
no test coverage detected