14 #ifndef EGGMATRIXTABLEPOINTER_H
15 #define EGGMATRIXTABLEPOINTER_H
38 virtual void set_frame(
int n,
const LMatrix4d &mat);
39 virtual bool add_frame(
const LMatrix4d &mat);
51 virtual void set_name(
const std::string &name);
61 static void init_type() {
62 EggJointPointer::init_type();
64 EggJointPointer::get_class_type());
67 return get_class_type();
69 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This class is used during joint optimization or restructuring to store the table of interim joint com...
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 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,...
virtual void zero_channels(const std::string &components)
Zeroes out the named components of the transform in the animation frames.
virtual double get_frame_rate() const
Returns the stated frame rate of this particular joint, or 0.0 if it doesn't state.
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 void extend_to(int num_frames)
Extends the table to the indicated number of frames.
virtual LMatrix4d get_frame(int n) const
Returns the transform matrix corresponding to this joint position in the nth frame.
virtual void set_frame(int n, const LMatrix4d &mat)
Sets the transform matrix corresponding to this joint position in the nth frame.
virtual void optimize()
Resets the table before writing to disk so that redundant rows (e.g.
virtual void set_name(const std::string &name)
Applies the indicated name change to the egg file.
virtual EggJointPointer * make_new_joint(const std::string &name)
Creates a new child of the current joint in the egg data, and returns a pointer to it.
virtual void quantize_channels(const std::string &components, double quantum)
Rounds the named components of the transform to the nearest multiple of quantum.
The highest-level base class in the egg directory.
This corresponds to an <Xfm$Anim_S$> entry, which is a collection of up to nine <S$Anim> entries that...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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(),...