Skip to content
Snippets Groups Projects
Commit 2ab3ec14 authored by Mathieu Westphal (Kitware)'s avatar Mathieu Westphal (Kitware) :zap:
Browse files

Import: Clarify vtkImporter::UpdateTimeStep doc and usage

parent 66b067a0
No related branches found
No related tags found
No related merge requests found
......@@ -526,8 +526,8 @@ public:
};
/**
* Apply the specified animation, at the specified time, to the internal Model. Changes node
* transforms and morphing weights.
* Apply the specified animation, at the specified time value t, to the internal Model. Changes
* node transforms and morphing weights.
*/
bool ApplyAnimation(float t, int animationId, bool forceStep = false);
......
......@@ -674,13 +674,13 @@ void vtkGLTFImporter::ImportLights(vtkRenderer* renderer)
}
//----------------------------------------------------------------------------
void vtkGLTFImporter::UpdateTimeStep(double timestep)
void vtkGLTFImporter::UpdateTimeStep(double timeValue)
{
for (int animationId = 0; animationId < this->GetNumberOfAnimations(); animationId++)
{
if (this->EnabledAnimations[animationId])
{
this->Loader->ApplyAnimation(static_cast<float>(timestep), animationId);
this->Loader->ApplyAnimation(static_cast<float>(timeValue), animationId);
}
}
this->Loader->BuildGlobalTransforms();
......
......@@ -102,7 +102,7 @@ public:
/**
* update timestep
*/
void UpdateTimeStep(double timestep) override;
void UpdateTimeStep(double timeValue) override;
/**
* Get the number of available animations.
......
......@@ -220,7 +220,7 @@ bool vtkImporter::GetTemporalInformation(vtkIdType vtkNotUsed(animationIdx),
}
//------------------------------------------------------------------------------
void vtkImporter::UpdateTimeStep(double vtkNotUsed(timeStep))
void vtkImporter::UpdateTimeStep(double vtkNotUsed(timeValue))
{
this->Update();
}
......
......@@ -152,10 +152,10 @@ public:
double timeRange[2], vtkDoubleArray* timeSteps);
/**
* Import the actors, camera, lights and properties at a specific timestep.
* Import the actors, camera, lights and properties at a specific time value.
* If not reimplemented, only call Update().
*/
virtual void UpdateTimeStep(double timeStep);
virtual void UpdateTimeStep(double timeValue);
protected:
vtkImporter();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment