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

Method DisableAnimation

IO/Geometry/vtkGLTFReader.cxx:939–954  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

937
938//------------------------------------------------------------------------------
939void vtkGLTFReader::DisableAnimation(vtkIdType animationIndex)
940{
941 if (this->AnimationSelection == nullptr)
942 {
943 vtkErrorMacro("Error accessing animations: model is not loaded yet");
944 return;
945 }
946 if (animationIndex < 0 || animationIndex >= this->AnimationSelection->GetNumberOfArrays())
947 {
948 vtkErrorMacro("Out of range animation index");
949 return;
950 }
951 auto name = this->AnimationSelection->GetArrayName(animationIndex);
952 this->AnimationSelection->DisableArray(name);
953 this->Modified();
954}
955
956//------------------------------------------------------------------------------
957bool vtkGLTFReader::IsAnimationEnabled(vtkIdType animationIndex)

Callers

nothing calls this directly

Calls 4

DisableArrayMethod · 0.80
GetNumberOfArraysMethod · 0.45
GetArrayNameMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected