Panda3D
|
This represents a tree of EggTables, corresponding to Animation entries in the X file. More...
#include "xFileAnimationSet.h"
Classes | |
class | FrameData |
class | FrameEntry |
class | TablePair |
Public Types | |
enum | FrameDataFlags { FDF_scale = 0x01, FDF_rot = 0x02, FDF_trans = 0x04, FDF_mat = 0x08 } |
typedef pvector< FrameEntry > | FrameEntries |
Public Member Functions | |
void | clear_name () |
Resets the Namable's name to empty. | |
FrameData & | create_frame_data (const string &joint_name) |
Returns a reference to a new FrameData table corresponding to the indicated joint. | |
bool | create_hierarchy (XFileToEggConverter *converter) |
Sets up the hierarchy of EggTables corresponding to this AnimationSet. | |
const string & | get_name () const |
EggXfmSAnim * | get_table (const string &joint_name) const |
Returns the table associated with the indicated joint name. | |
bool | has_name () const |
Returns true if the Namable has a nonempty name set, false if the name is empty. | |
void | output (ostream &out) const |
Outputs the Namable. | |
void | set_name (const string &name) |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Public Attributes | |
double | _frame_rate |
This represents a tree of EggTables, corresponding to Animation entries in the X file.
There is one EggTable for each joint in the character's joint set, and the whole tree is structured as a mirror of the joint set.
Definition at line 37 of file xFileAnimationSet.h.
void Namable::clear_name | ( | ) | [inline, inherited] |
XFileAnimationSet::FrameData & XFileAnimationSet::create_frame_data | ( | const string & | joint_name | ) |
Returns a reference to a new FrameData table corresponding to the indicated joint.
Definition at line 128 of file xFileAnimationSet.cxx.
bool XFileAnimationSet::create_hierarchy | ( | XFileToEggConverter * | converter | ) |
Sets up the hierarchy of EggTables corresponding to this AnimationSet.
Definition at line 50 of file xFileAnimationSet.cxx.
References EggGroupNode::add_child(), EggXfmSAnim::add_data(), XFileToEggConverter::get_dart_node(), SomethingToEggConverter::get_egg_data(), get_table(), EggTransform::get_transform3d(), and EggXfmSAnim::optimize().
EggXfmSAnim * XFileAnimationSet::get_table | ( | const string & | joint_name | ) | const |
Returns the table associated with the indicated joint name.
Definition at line 112 of file xFileAnimationSet.cxx.
Referenced by create_hierarchy().
bool Namable::has_name | ( | ) | const [inline, inherited] |
Returns true if the Namable has a nonempty name set, false if the name is empty.
Definition at line 75 of file namable.I.
Referenced by XFileNode::add_child(), EggComponentData::add_name(), Texture::do_read_dds_file(), Texture::do_read_one(), Character::fillin(), EggGroupUniquifier::get_category(), EggXfmSAnim::optimize(), NodePathComponent::output(), AsyncTask::output(), EggNamedObject::output(), EggSAnimData::write(), EggPrimitive::write_body(), ParametricCurveCollection::write_egg(), ParametricCurve::write_egg(), EggNamedObject::write_header(), XFileDataNodeTemplate::write_text(), and XFileDataDef::write_text().
void Namable::output | ( | ostream & | out | ) | const [inline, inherited] |
Outputs the Namable.
This function simply writes the name to the output stream; most Namable derivatives will probably redefine this.
Reimplemented in AnimBundle, AnimChannelFixed< SwitchType >, AnimChannelMatrixFixed, AnimControl, AnimGroup, PartBundle, CollisionNode, CollisionTraverser, ButtonNode, EggNamedObject, AsyncTask, AsyncTaskChain, AsyncTaskManager, AdaptiveLru, Material, SimpleLru, HermiteCurve, RopeNode, SheetNode, Fog, GeomNode, LensNode, Loader, PandaNode, PlaneNode, PolylightNode, PortalNode, CallbackNode, FadeLODNode, LODNode, ForceNode, Thread, MouseRecorder, TextNode, MouseWatcherRegion, WebcamVideo, and MayaShader.