00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 INLINE EggJointData *EggJointData::
00022 get_parent() const {
00023 return _parent;
00024 }
00025
00026
00027
00028
00029
00030
00031 INLINE int EggJointData::
00032 get_num_children() const {
00033 return _children.size();
00034 }
00035
00036
00037
00038
00039
00040
00041 INLINE EggJointData *EggJointData::
00042 get_child(int n) const {
00043 nassertr(n >= 0 && n < (int)_children.size(), (EggJointData *)NULL);
00044 return _children[n];
00045 }
00046
00047
00048
00049
00050
00051
00052
00053 INLINE EggJointData *EggJointData::
00054 find_joint(const string &name) {
00055 EggJointData *joint = find_joint_exact(name);
00056 if (joint == (EggJointData *)NULL) {
00057 joint = find_joint_matches(name);
00058 }
00059 return joint;
00060 }
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071 INLINE bool EggJointData::
00072 has_rest_frame() const {
00073 return _has_rest_frame;
00074 }
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084 INLINE bool EggJointData::
00085 rest_frames_differ() const {
00086 return _rest_frames_differ;
00087 }
00088
00089
00090
00091
00092
00093
00094
00095
00096 INLINE const LMatrix4d &EggJointData::
00097 get_rest_frame() const {
00098 nassertr(has_rest_frame(), LMatrix4d::ident_mat());
00099 return _rest_frame;
00100 }
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111 INLINE void EggJointData::
00112 reparent_to(EggJointData *new_parent) {
00113 _new_parent = new_parent;
00114 }