#include <animBundleMaker.h>
Public Member Functions | |
AnimBundleMaker (EggTable *root) | |
AnimBundleNode * | make_node () |
Private Member Functions | |
AnimBundle * | make_bundle () |
void | inspect_tree (EggNode *node) |
Walks the egg tree, getting out the fps and the number of frames. | |
void | build_hierarchy (EggTable *egg_table, AnimGroup *parent) |
Walks the egg tree again, creating the AnimChannels as appropriate. | |
AnimChannelScalarTable * | create_s_channel (EggSAnimData *egg_anim, const string &name, AnimGroup *parent) |
Creates an AnimChannelScalarTable corresponding to the given EggSAnimData structure. | |
AnimChannelMatrixXfmTable * | create_xfm_channel (EggNode *egg_node, const string &name, AnimGroup *parent) |
Creates an AnimChannelMatrixXfmTable corresponding to the given EggNode structure, if possible. | |
AnimChannelMatrixXfmTable * | create_xfm_channel (EggXfmSAnim *egg_anim, const string &name, AnimGroup *parent) |
Creates an AnimChannelMatrixXfmTable corresponding to the given EggXfmSAnim structure. | |
Private Attributes | |
float | _fps |
int | _num_frames |
bool | _ok_fps |
bool | _ok_num_frames |
EggTable * | _root |
Definition at line 48 of file animBundleMaker.h.
|
Definition at line 44 of file animBundleMaker.cxx. |
|
Walks the egg tree again, creating the AnimChannels as appropriate.
Definition at line 203 of file animBundleMaker.cxx. Referenced by make_node(). |
|
Creates an AnimChannelScalarTable corresponding to the given EggSAnimData structure.
Definition at line 257 of file animBundleMaker.cxx. References create_xfm_channel(), DCAST, EggXfmSAnim::get_class_type(), EggXfmAnimData::get_class_type(), TypedObject::is_of_type(), and NULL. |
|
Creates an AnimChannelMatrixXfmTable corresponding to the given EggXfmSAnim structure.
Definition at line 317 of file animBundleMaker.cxx. |
|
Creates an AnimChannelMatrixXfmTable corresponding to the given EggNode structure, if possible.
Definition at line 287 of file animBundleMaker.cxx. References AnimChannelMatrixXfmTable(), EggGroupNode::begin(), EggGroupNode::const_iterator, DCAST, EggGroupNode::end(), EggSAnimData::get_class_type(), Namable::get_name(), AnimChannelMatrixXfmTable::is_valid_id(), and EggXfmSAnim::optimize_to_standard_order(). Referenced by create_s_channel(). |
|
Walks the egg tree, getting out the fps and the number of frames.
Definition at line 120 of file animBundleMaker.cxx. |
|
Definition at line 92 of file animBundleMaker.cxx. |
|
Definition at line 80 of file animBundleMaker.cxx. References _fps, _num_frames, _root, EggGroupNode::begin(), build_hierarchy(), EggGroupNode::const_iterator, DCAST, EggGroupNode::end(), EggTable::get_class_type(), and Namable::get_name(). |
|
Definition at line 70 of file animBundleMaker.h. Referenced by make_node(). |
|
Definition at line 71 of file animBundleMaker.h. Referenced by make_node(). |
|
Definition at line 72 of file animBundleMaker.h. |
|
Definition at line 73 of file animBundleMaker.h. |
|
Definition at line 75 of file animBundleMaker.h. Referenced by make_node(). |