----------------------------------------------------------------------------- Initialize the widget using the values from the key frame proxy.
| 349 | //----------------------------------------------------------------------------- |
| 350 | /// Initialize the widget using the values from the key frame proxy. |
| 351 | void pqCameraKeyFrameWidget::initializeUsingKeyFrame(vtkSMProxy* keyFrame) |
| 352 | { |
| 353 | this->Internal->setPosition(vtkSMPropertyHelper(keyFrame, "Position").GetDoubleArray().data()); |
| 354 | this->Internal->setFocalPoint( |
| 355 | vtkSMPropertyHelper(keyFrame, "FocalPoint").GetDoubleArray().data()); |
| 356 | this->Internal->setViewUp(vtkSMPropertyHelper(keyFrame, "ViewUp").GetDoubleArray().data()); |
| 357 | this->Internal->setViewAngle(vtkSMPropertyHelper(keyFrame, "ViewAngle").GetAsDouble()); |
| 358 | this->Internal->setParallelScale(vtkSMPropertyHelper(keyFrame, "ParallelScale").GetAsDouble()); |
| 359 | |
| 360 | this->Internal->PSplineProxy->GetProperty("Points")->Copy( |
| 361 | keyFrame->GetProperty("PositionPathPoints")); |
| 362 | |
| 363 | this->Internal->PSplineProxy->GetProperty("Closed")->Copy( |
| 364 | keyFrame->GetProperty("ClosedPositionPath")); |
| 365 | |
| 366 | this->Internal->FSplineProxy->GetProperty("Points")->Copy( |
| 367 | keyFrame->GetProperty("FocalPathPoints")); |
| 368 | |
| 369 | this->Internal->FSplineProxy->GetProperty("Closed")->Copy( |
| 370 | keyFrame->GetProperty("ClosedFocalPath")); |
| 371 | |
| 372 | this->Internal->PSplineProxy->UpdateVTKObjects(); |
| 373 | this->Internal->FSplineProxy->UpdateVTKObjects(); |
| 374 | } |
| 375 | |
| 376 | //----------------------------------------------------------------------------- |
| 377 | /// Initialize the widget using the camera. |
no test coverage detected