Class BoneAnimation
- Namespace
- PlumJsonAnimator.Models
- Assembly
- PlumJsonAnimator.dll
Class BoneAnimation contains the bone's transformations during animation
public class BoneAnimation
- Inheritance
-
BoneAnimation
- Inherited Members
Constructors
BoneAnimation(GlobalState, Interpolation)
public BoneAnimation(GlobalState globalState, Interpolation interpolation)
Parameters
globalStateGlobalStateinterpolationInterpolation
Methods
AddRotateFrame(double, double)
Adds rotate keyframe to bone
public void AddRotateFrame(double time, double value)
Parameters
AddTranslateFrame(double, double, double)
Adds translate keyframe to bone
public void AddTranslateFrame(double time, double x, double y)
Parameters
BoneStep(Bone, double)
Sets the bone to the desired state according current time
public void BoneStep(Bone b, double time)
Parameters
DeleteKeyFrame(double, TransformModesTypes)
Delete keyframe
public void DeleteKeyFrame(double time, TransformModesTypes keyFrameType)
Parameters
timedoublekeyFrameTypeTransformModesTypes
FindTime(double, TransformModesTypes, bool)
Finds time of the next or the previous keyframe
public double FindTime(double time, TransformModesTypes type, bool isNext)
Parameters
timedoubleCurrent time
typeTransformModesTypesType of target keyframe
isNextboolSearch for the next or the previous keyframe
Returns
- double
Double, time of the target keyframe
GenerateCode()
public string GenerateCode()
Returns
GenerateJSONData()
public BoneAnimationData GenerateJSONData()
Returns
GetKeyFeamesMarks()
public Dictionary<double, Dictionary<KeyFrameTypes, bool>> GetKeyFeamesMarks()
Returns
MaxTime()
Finds the longest time from all keyframe dictionary
public double MaxTime()