23 return _models.size();
38 nassertr(n >= 0 && n < (
int)_models.size(), 0);
39 return _models[n]._model_index;
50 nassertr(n >= 0 && n < (
int)_models.size(),
nullptr);
51 return _models[n]._model_root;
60 nassertr(n >= 0 && n < (
int)_models.size(),
nullptr);
61 return _models[n]._egg_data;
92 _joints.push_back(joint);
93 _components.push_back(joint);
102 return _joints.size();
111 nassertr(n >= 0 && n < (
int)_joints.size(),
nullptr);
120 return _sliders.size();
128 nassertr(n >= 0 && n < (
int)_sliders.size(),
nullptr);
137 return _components.size();
148 nassertr(n >= 0 && n < (
int)_components.size(),
nullptr);
149 return _components[n];
EggJointData * get_root_joint() const
Returns the root joint of the character hierarchy.
int get_model_index(int n) const
Returns the model_index of the nth model associated with this character.
int get_num_components() const
Returns the total number of joints and sliders in the character.
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 * get_joint(int n) const
Returns the nth joint in the character joint hierarchy.
EggJointData * make_new_joint(const std::string &name, EggJointData *parent)
Creates a new joint as a child of the indicated joint and returns it.
EggNode * get_model_root(int n) const
Returns the model_root of the nth model associated with this character.
EggSliderData * get_slider(int n) const
Returns the nth slider in the character slider list.
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.
EggComponentData * get_component(int n) const
Returns the nth joint or slider in the character.
EggJointData * find_joint(const std::string &name) const
Returns the first joint found with the indicated name, or NULL if no joint has that name.
This is the base class of both EggJointData and EggSliderData.
This is the primary interface into all the egg data, and the root of the egg file structure.
This is one node of a hierarchy of EggJointData nodes, each of which represents a single joint of the...
EggJointData * find_joint(const std::string &name)
Returns the first descendent joint found with the indicated name, or NULL if no joint has that name.
A base class for things that may be directly added into the egg hierarchy.
This corresponds to a single morph slider control.