15 #ifndef EGGMATRIXTABLEPOINTER_H 16 #define EGGMATRIXTABLEPOINTER_H 18 #include "pandatoolbase.h" 20 #include "eggJointPointer.h" 23 #include "eggXfmSAnim.h" 24 #include "pointerTo.h" 54 virtual void set_name(
const string &name);
64 static void init_type() {
65 EggJointPointer::init_type();
66 register_type(_type_handle,
"EggMatrixTablePointer",
67 EggJointPointer::get_class_type());
70 return get_class_type();
72 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
virtual LMatrix4d get_frame(int n) const
Returns the transform matrix corresponding to this joint position in the nth frame.
This is a 4-by-4 transform matrix.
virtual void set_frame(int n, const LMatrix4d &mat)
Sets the transform matrix corresponding to this joint position in the nth frame.
virtual void extend_to(int num_frames)
Extends the table to the indicated number of frames.
virtual void set_name(const string &name)
Applies the indicated name change to the egg file.
virtual void optimize()
Resets the table before writing to disk so that redundant rows (e.g.
virtual EggJointPointer * make_new_joint(const string &name)
Creates a new child of the current joint in the egg data, and returns a pointer to it...
This class is used during joint optimization or restructuring to store the table of interim joint com...
virtual bool do_rebuild(EggCharacterDb &db)
Rebuilds the entire table all at once, based on the frames added by repeated calls to add_rebuild_fra...
virtual bool add_frame(const LMatrix4d &mat)
Appends a new frame onto the end of the data, if possible; returns true if not possible, or false otherwise (e.g.
This corresponds to an <Xfm$Anim_S$> entry, which is a collection of up to nine <S$Anim> entries that...
This is a base class for EggJointNodePointer and EggMatrixTablePointer.
This stores a pointer back to an EggXfmSAnim table (i.e.
virtual int get_num_frames() const
Returns the number of frames of animation for this particular joint.
virtual void quantize_channels(const string &components, double quantum)
Rounds the named components of the transform to the nearest multiple of quantum.
virtual void do_finish_reparent(EggJointPointer *new_parent)
Performs the actual reparenting operation by removing the node from its old parent and associating it...
virtual double get_frame_rate() const
Returns the stated frame rate of this particular joint, or 0.0 if it doesn't state.
TypeHandle is the identifier used to differentiate C++ class types.
virtual void zero_channels(const string &components)
Zeroes out the named components of the transform in the animation frames.
The highest-level base class in the egg directory.