-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPose.h
30 lines (26 loc) · 768 Bytes
/
Pose.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef _H_POSE_
#define _H_POSE_
#include <vector>
#include "Transform.h"
class Pose {
protected:
std::vector<Transform> mJoints;
std::vector<int> mParents;
public:
Pose();
Pose(const Pose& p);
Pose& operator=(const Pose& p);
Pose(unsigned int numJoints);
void Resize(unsigned int size);
unsigned int Size();
Transform GetLocalTransform(unsigned int index);
void SetLocalTransform(unsigned int index, const Transform& transform);
Transform GetGlobalTransform(unsigned int index);
Transform operator[](unsigned int index);
void GetMatrixPalette(std::vector<mat4>& out);
int GetParent(unsigned int index);
void SetParent(unsigned int index, int parent);
bool operator==(const Pose& other);
bool operator!=(const Pose& other);
};
#endif // !_H_POSE_