15 #ifndef EGGCOMPONENTDATA_H 16 #define EGGCOMPONENTDATA_H 18 #include "pandatoolbase.h" 20 #include "eggObject.h" 47 void extend_to(
int model_index,
int num_frames)
const;
50 virtual void add_back_pointer(
int model_index,
EggObject *egg_object)=0;
51 virtual void write(ostream &out,
int indent_level = 0)
const=0;
54 INLINE
bool has_model(
int model_index)
const;
63 BackPointers _back_pointers;
76 static void init_type() {
77 EggObject::init_type();
78 register_type(_type_handle,
"EggComponentData",
79 EggObject::get_class_type());
82 return get_class_type();
84 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
90 #include "eggComponentData.I" 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...
int get_num_models() const
Returns the maximum number of back pointers this component may have.
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...
This is the base class of both EggJointData and EggSliderData.
A handy class for converting a list of arbitrary names (strings) so that each name is guaranteed to b...
A base class for all things which can have a name.
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...
bool has_model(int model_index) const
Returns true if the component has a back pointer to an egg file somewhere for the indicated model...
Represents a single character, as read and collected from several models and animation files...
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...
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...
The highest-level base class in the egg directory.