Class Skeleton
- Namespace
- PlumJsonAnimator.Models.SkeletonNameSpace
- Assembly
- PlumJsonAnimator.dll
Provides methods for work with skeleton
public class Skeleton : INotifyable, INotifyPropertyChanged
- Inheritance
-
Skeleton
- Implements
- Inherited Members
Constructors
Skeleton(GlobalState, LocalizationService)
public Skeleton(GlobalState globalState, LocalizationService localizationService)
Parameters
globalStateGlobalStatelocalizationServiceLocalizationService
Properties
Bones
public ObservableCollection<Bone> Bones { get; set; }
Property Value
RootBones
public ObservableCollection<Bone> RootBones { get; set; }
Property Value
Methods
AddBone(Bone)
Adds new bone into skeleton
public void AddBone(Bone b)
Parameters
bBoneNew bone
AddBoneToParent(int)
Adds new bone into skeleton. Binds it with existing parent bone
public void AddBoneToParent(int parentId)
Parameters
parentIdintParent bone id
DrawSkeleton(Canvas)
public void DrawSkeleton(Canvas canvas)
Parameters
canvasCanvas
GenerateCode()
public string GenerateCode()
Returns
GenerateJSONData()
public List<BoneData> GenerateJSONData()
Returns
GetBoneById(int)
public Bone? GetBoneById(int id)
Parameters
idint
Returns
GetBoneByName(string?)
public Bone? GetBoneByName(string? name)
Parameters
namestring