MCPcopy Create free account
hub / github.com/Kitware/ParaView / saveToKeyFrame

Method saveToKeyFrame

Qt/Components/pqCameraKeyFrameWidget.cxx:399–429  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Write the user chosen values for this key frame to the proxy.

Source from the content-addressed store, hash-verified

397//-----------------------------------------------------------------------------
398/// Write the user chosen values for this key frame to the proxy.
399void 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//-----------------------------------------------------------------------------
432void pqCameraKeyFrameWidget::changeCurrentPage()

Callers 1

writeKeyFrameDataMethod · 0.80

Calls 12

usePathBasedModeMethod · 0.95
positionMethod · 0.80
focalPointMethod · 0.80
viewUp_PathMethod · 0.80
viewUp_NonPathMethod · 0.80
getViewAngleMethod · 0.80
getParallelScaleMethod · 0.80
applyMethod · 0.45
SetMethod · 0.45
CopyMethod · 0.45
GetPropertyMethod · 0.45
UpdateVTKObjectsMethod · 0.45

Tested by

no test coverage detected