15 #include "eggSliderData.h" 16 #include "eggVertexPointer.h" 17 #include "eggScalarTablePointer.h" 18 #include "eggSliderPointer.h" 20 #include "eggPrimitive.h" 21 #include "eggVertex.h" 22 #include "eggSAnimData.h" 53 DCAST_INTO_R(slider, back, 0.0);
55 return slider->get_frame(n);
66 if (egg_object->
is_of_type(EggPrimitive::get_class_type())) {
74 }
else if (egg_object->
is_of_type(EggVertex::get_class_type())) {
82 }
else if (egg_object->
is_of_type(EggSAnimData::get_class_type())) {
91 nout <<
"Invalid object added to slider for back pointer.\n";
101 write(ostream &out,
int indent_level)
const {
102 indent(out, indent_level)
103 <<
"Slider " << get_name()
106 for (
int model_index = 0; model_index < num_models; model_index++) {
108 out <<
" " << model_index;
void set_model(int model_index, EggBackPointer *back)
Sets the back_pointer associated with the given model_index.
This stores a pointer back to an EggSAnimData table (i.e.
virtual void add_back_pointer(int model_index, EggObject *egg_object)
Adds the indicated vertex, primitive, or morph table to the data.
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.
This is a base class for EggVertexPointer and EggScalarTablePointer.
Represents a set of characters, as read and collected from possibly several model and/or animation eg...
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(int model_index, int n) const
Returns the value corresponding to this slider position in the nth frame in the indicated model...
bool is_of_type(TypeHandle handle) const
Returns true if the current object is or derives from the indicated type.
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.
This stores a pointer back to a <Vertex>, or to a particular pritimive like a <Polygon>, representing a morph offset.