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

Method SetAnimationValue

Remoting/ServerManager/vtkSMStringListDomain.cxx:202–214  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

200
201//---------------------------------------------------------------------------
202void vtkSMStringListDomain::SetAnimationValue(vtkSMProperty* prop, int idx, double value)
203{
204 if (!prop)
205 {
206 return;
207 }
208
209 vtkSMStringVectorProperty* svp = vtkSMStringVectorProperty::SafeDownCast(prop);
210 if (svp)
211 {
212 svp->SetElement(idx, this->GetString((int)(floor(value))));
213 }
214}
215
216//---------------------------------------------------------------------------
217int vtkSMStringListDomain::SetDefaultValues(vtkSMProperty* prop, bool use_unchecked_values)

Callers

nothing calls this directly

Calls 3

GetStringMethod · 0.95
floorFunction · 0.50
SetElementMethod · 0.45

Tested by

no test coverage detected