Go to the documentation of this file.
14 #ifndef EGGCOMPONENTDATA_H
15 #define EGGCOMPONENTDATA_H
44 void extend_to(
int model_index,
int num_frames)
const;
47 virtual void add_back_pointer(
int model_index,
EggObject *egg_object)=0;
48 virtual void write(std::ostream &out,
int indent_level = 0)
const=0;
51 INLINE
bool has_model(
int model_index)
const;
73 static void init_type() {
74 EggObject::init_type();
76 EggObject::get_class_type());
79 return get_class_type();
81 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
bool matches_name(const std::string &name) const
Returns true if the indicated name matches any name that was ever matched with this particular joint,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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,...
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
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.
This stores a pointer from an EggJointData or EggSliderData object back to the referencing data in an...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the base class of both EggJointData and EggSliderData.
void set_model(int model_index, EggBackPointer *back)
Sets the back_pointer associated with the given model_index.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
int get_num_frames(int model_index) const
Returns the number of frames of animation for this particular component in the indicated model.
void add_name(const std::string &name, NameUniquifier &uniquifier)
Adds the indicated name to the set of names that this component can be identified with.
int get_num_models() const
Returns the maximum number of back pointers this component may have.
A base class for all things which can have a name.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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...
Represents a set of characters, as read and collected from possibly several model and/or animation eg...
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.
The highest-level base class in the egg directory.
A handy class for converting a list of arbitrary names (strings) so that each name is guaranteed to b...