29 return _models.size();
47 nassertr(n >= 0 && n < (
int)_models.size(), 0);
48 return _models[n]._model_index;
63 nassertr(n >= 0 && n < (
int)_models.size(), (
EggNode *)NULL);
64 return _models[n]._model_root;
76 nassertr(n >= 0 && n < (
int)_models.size(), (
EggData *)NULL);
77 return _models[n]._egg_data;
117 _joints.push_back(joint);
118 _components.push_back(joint);
130 return _joints.size();
142 nassertr(n >= 0 && n < (
int)_joints.size(), NULL);
154 return _sliders.size();
164 nassertr(n >= 0 && n < (
int)_sliders.size(), NULL);
176 return _components.size();
191 nassertr(n >= 0 && n < (
int)_components.size(), NULL);
192 return _components[n];
EggJointData * find_joint(const string &name)
Returns the first descendent joint found with the indicated name, or NULL if no joint has that name...
int get_num_models() const
Returns the total number of models associated with this character.
int get_num_joints() const
Returns the total number of joints in the character joint hierarchy.
EggSliderData * get_slider(int n) const
Returns the nth slider in the character slider list.
This corresponds to a single morph slider control.
This is the primary interface into all the egg data, and the root of the egg file structure...
EggNode * get_model_root(int n) const
Returns the model_root of the nth model associated with this character.
This is the base class of both EggJointData and EggSliderData.
int get_num_components() const
Returns the total number of joints and sliders in the character.
int get_model_index(int n) const
Returns the model_index of the nth model associated with this character.
EggJointData * get_root_joint() const
Returns the root joint of the character hierarchy.
EggComponentData * get_component(int n) const
Returns the nth joint or slider in the character.
This is one node of a hierarchy of EggJointData nodes, each of which represents a single joint of the...
A base class for things that may be directly added into the egg hierarchy.
EggJointData * get_joint(int n) const
Returns the nth joint in the character joint hierarchy.
EggJointData * find_joint(const string &name) const
Returns the first joint found with the indicated name, or NULL if no joint has that name...
int get_num_sliders() const
Returns the number of sliders in the character slider list.
EggData * get_egg_data(int n) const
Returns the EggData representing the egg file that defined this particular model. ...
EggJointData * make_new_joint(const string &name, EggJointData *parent)
Creates a new joint as a child of the indicated joint and returns it.