15 #include "eggComponentData.h" 16 #include "eggBackPointer.h" 17 #include "nameUniquifier.h" 32 _collection(collection),
44 BackPointers::iterator bpi;
45 for (bpi = _back_pointers.begin(); bpi != _back_pointers.end(); ++bpi) {
65 if (_names.insert(name).second) {
69 if (get_name() != name) {
70 nout <<
"Warning: renamed " << name <<
" to " << get_name()
71 <<
" to avoid naming conflict.\n";
86 if (name == get_name()) {
89 return (_names.find(name) != _names.end());
104 return back->get_num_frames();
144 while ((
int)_back_pointers.size() <= model_index) {
149 nout <<
"Warning: deleting old back pointer.\n";
150 delete _back_pointers[model_index];
152 _back_pointers[model_index] = back;
int get_num_frames(int model_index) const
Returns the number of frames of animation for this particular component in the indicated model...
void set_model(int model_index, EggBackPointer *back)
Sets the back_pointer associated with the given model_index.
void extend_to(int model_index, int num_frames) const
Extends the number of frames in the indicated model (presumably an animation table model) to the give...
EggBackPointer * get_model(int model_index) const
Returns the back pointer to an egg file for the indicated model if it exists, or NULL if it does not...
A handy class for converting a list of arbitrary names (strings) so that each name is guaranteed to b...
virtual double get_frame_rate() const
Returns the stated frame rate of this particular joint, or 0.0 if it doesn't state.
virtual void extend_to(int num_frames)
Extends the table to the indicated number of frames.
Represents a set of characters, as read and collected from possibly several model and/or animation eg...
bool matches_name(const string &name) const
Returns true if the indicated name matches any name that was ever matched with this particular joint...
Represents a single character, as read and collected from several models and animation files...
string add_name(const string &name)
If name is nonempty and so far unique, returns it unchanged.
double get_frame_rate(int model_index) const
Returns the number of frames of animation for this particular component in the indicated model...
void add_name(const string &name, NameUniquifier &uniquifier)
Adds the indicated name to the set of names that this component can be identified with...
bool has_name() const
Returns true if the Namable has a nonempty name set, false if the name is empty.
TypeHandle is the identifier used to differentiate C++ class types.
This stores a pointer from an EggJointData or EggSliderData object back to the referencing data in an...