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

Method initializeUsingKeyFrame

Qt/Components/pqCameraKeyFrameWidget.cxx:351–374  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Initialize the widget using the values from the key frame proxy.

Source from the content-addressed store, hash-verified

349//-----------------------------------------------------------------------------
350/// Initialize the widget using the values from the key frame proxy.
351void 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.

Callers 1

readKeyFrameDataMethod · 0.80

Calls 11

setPositionMethod · 0.80
GetDoubleArrayMethod · 0.80
setFocalPointMethod · 0.80
setViewAngleMethod · 0.80
GetAsDoubleMethod · 0.80
dataMethod · 0.45
setViewUpMethod · 0.45
setParallelScaleMethod · 0.45
CopyMethod · 0.45
GetPropertyMethod · 0.45
UpdateVTKObjectsMethod · 0.45

Tested by

no test coverage detected