MCPcopy Create free account
hub / github.com/Kitware/VTK / UpdateAtTimeValue

Method UpdateAtTimeValue

IO/Import/vtkGLTFImporter.cxx:979–1000  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

977
978//----------------------------------------------------------------------------
979bool vtkGLTFImporter::UpdateAtTimeValue(double timeValue)
980{
981 for (int animationId = 0; animationId < this->GetNumberOfAnimations(); animationId++)
982 {
983 if (this->EnabledAnimations[animationId])
984 {
985 if (!this->Loader->ApplyAnimation(
986 static_cast<float>(timeValue), animationId, !this->GetInterpolateBetweenTimeSteps()))
987 {
988 vtkErrorMacro("Error applying animation");
989 return false;
990 }
991 }
992 }
993 this->Loader->BuildGlobalTransforms();
994
995 this->ImportCameras(this->Renderer);
996
997 this->ApplySkinningMorphing();
998
999 return this->GetUpdateStatus() == vtkImporter::UpdateStatusEnum::SUCCESS;
1000}
1001
1002//----------------------------------------------------------------------------
1003void vtkGLTFImporter::ApplySkinningMorphing()

Callers 1

TestGLTFImporterFunction · 0.80

Calls 5

GetNumberOfAnimationsMethod · 0.95
ImportCamerasMethod · 0.95
ApplySkinningMorphingMethod · 0.95
ApplyAnimationMethod · 0.80
BuildGlobalTransformsMethod · 0.80

Tested by 1

TestGLTFImporterFunction · 0.64