15 #ifndef EGGJOINTPOINTER_H 16 #define EGGJOINTPOINTER_H 18 #include "pandatoolbase.h" 19 #include "eggBackPointer.h" 36 virtual int get_num_frames()
const=0;
37 virtual LMatrix4d get_frame(
int n)
const=0;
38 virtual void set_frame(
int n,
const LMatrix4d &mat)=0;
47 virtual void expose(EggGroup::DCSType dcs_type);
58 static void init_type() {
59 EggBackPointer::init_type();
60 register_type(_type_handle,
"EggJointPointer",
61 EggBackPointer::get_class_type());
64 return get_class_type();
66 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
72 #include "eggJointPointer.I" virtual void quantize_channels(const string &components, double quantum)
Rounds the named components of the transform to the nearest multiple of quantum.
virtual void optimize()
Resets the table before writing to disk so that redundant rows (e.g.
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 is a 4-by-4 transform matrix.
virtual void zero_channels(const string &components)
Zeroes out the named components of the transform in the animation frames.
virtual void move_vertices_to(EggJointPointer *new_joint)
Moves the vertices assigned to this joint into the other joint (which should be of the same type)...
This class is used during joint optimization or restructuring to store the table of interim joint com...
virtual void apply_default_pose(EggJointPointer *source_joint, int frame)
Applies the pose from the indicated frame of the indicated source joint as the initial pose for this ...
This is a base class for EggJointNodePointer and EggMatrixTablePointer.
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 void expose(EggGroup::DCSType dcs_type)
Flags the joint with the indicated DCS flag so that it will be loaded as a separate node in the playe...
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...