14 #ifndef EGGJOINTPOINTER_H 15 #define EGGJOINTPOINTER_H 33 virtual int get_num_frames()
const=0;
34 virtual LMatrix4d get_frame(
int n)
const=0;
35 virtual void set_frame(
int n,
const LMatrix4d &mat)=0;
36 virtual bool add_frame(
const LMatrix4d &mat);
44 virtual void expose(EggGroup::DCSType dcs_type);
55 static void init_type() {
56 EggBackPointer::init_type();
58 EggBackPointer::get_class_type());
61 return get_class_type();
63 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
virtual void optimize()
Resets the table before writing to disk so that redundant rows (e.g.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual bool add_frame(const LMatrix4d &mat)
Appends a new frame onto the end of the data, if possible; returns true if not possible,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
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 quantize_channels(const std::string &components, double quantum)
Rounds the named components of the transform to the nearest multiple of quantum.
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 zero_channels(const std::string &components)
Zeroes out the named components of the transform in the animation frames.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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...