#include <eggJointNodePointer.h>
Inheritance diagram for EggJointNodePointer:
Public Member Functions | |
EggJointNodePointer (EggObject *object) | |
virtual int | get_num_frames () const |
Returns the number of frames of animation for this particular joint. | |
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 bool | add_rebuild_frame (const LMatrix4d &mat) |
Adds a new frame to the set of rebuild frames. | |
virtual bool | do_rebuild () |
Rebuilds the entire table all at once, based on the frames added by repeated calls to add_rebuild_frame() since the last call to begin_rebuild(). | |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
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. | |
void | begin_rebuild () |
Resets the set of rebuild frames in preparation for rebuilding the complete table of frames. | |
virtual void | optimize () |
Resets the table before writing to disk so that redundant rows (e.g. | |
int | get_type_index () const |
bool | is_of_type (TypeHandle handle) const |
bool | is_exact_type (TypeHandle handle) const |
Static Public Member Functions | |
TypeHandle | get_class_type () |
void | init_type () |
Protected Types | |
typedef pvector< LMatrix4d > | RebuildFrames |
Protected Attributes | |
RebuildFrames | _rebuild_frames |
Private Attributes | |
PointerTo< EggGroup > | _joint |
Static Private Attributes | |
TypeHandle | _type_handle |
Definition at line 39 of file eggJointNodePointer.h.
|
Definition at line 62 of file eggJointPointer.h. |
|
Definition at line 40 of file eggJointNodePointer.cxx. References _joint. |
|
Appends a new frame onto the end of the data, if possible; returns true if not possible, or false otherwise (e.g. for a static joint). Reimplemented in EggMatrixTablePointer. Definition at line 41 of file eggJointPointer.cxx. References EggJointPointer::_rebuild_frames. |
|
Adds a new frame to the set of rebuild frames. See begin_rebuild() and do_rebuild(). Returns true if this is valid, false otherwise (e.g. adding multiple frames to a static joint). Reimplemented from EggJointPointer. Definition at line 144 of file eggJointNodePointer.cxx. |
|
Resets the set of rebuild frames in preparation for rebuilding the complete table of frames. Repeated calls to add_rebuild_frame() will build up the frames without changing the values returned by get_frame(); the table will eventually be updated when do_rebuild is called. Definition at line 64 of file eggJointPointer.cxx. |
|
Rebuilds the entire table all at once, based on the frames added by repeated calls to add_rebuild_frame() since the last call to begin_rebuild(). Until do_rebuild() is called, the animation table is not changed. The return value is true if all frames are acceptable, or false if there is some problem. Reimplemented from EggJointPointer. Definition at line 177 of file eggJointNodePointer.cxx. |
|
Reimplemented from EggJointPointer. Definition at line 65 of file eggJointNodePointer.h. |
|
Reimplemented from EggJointPointer. Definition at line 54 of file eggJointNodePointer.h. |
|
Returns the transform matrix corresponding to this joint position in the nth frame. In the case of a EggJointNodePointer, which just stores a pointer to a entry for a character model (not an animation table), there is always exactly one frame: the rest pose. Implements EggJointPointer. Definition at line 98 of file eggJointNodePointer.cxx. References EggJointPointer::_rebuild_frames, and EggJointPointer::add_rebuild_frame(). |
|
Returns the number of frames of animation for this particular joint. In the case of a EggJointNodePointer, which just stores a pointer to a entry for a character model (not an animation table), there is always exactly one frame: the rest pose. Implements EggJointPointer. Definition at line 73 of file eggJointNodePointer.cxx. |
|
Reimplemented from EggJointPointer. Definition at line 62 of file eggJointNodePointer.h. References _type_handle. |
|
Reimplemented from EggJointPointer. Definition at line 57 of file eggJointNodePointer.h. Referenced by ConfigureFn(). |
|
Resets the table before writing to disk so that redundant rows (e.g. i { 1 1 1 1 1 1 1 1 }) are collapsed out. Reimplemented in EggMatrixTablePointer. Definition at line 134 of file eggJointPointer.cxx. Referenced by EggJointData::do_rebuild(). |
|
Sets the transform matrix corresponding to this joint position in the nth frame. In the case of a EggJointNodePointer, which just stores a pointer to a entry for a character model (not an animation table), there is always exactly one frame: the rest pose. Implements EggJointPointer. Definition at line 124 of file eggJointNodePointer.cxx. References _joint, and EggJointPointer::_rebuild_frames. |
|
Definition at line 51 of file eggJointNodePointer.h. Referenced by EggJointNodePointer(), get_num_frames(), and set_frame(). |
|
Definition at line 63 of file eggJointPointer.h. Referenced by EggMatrixTablePointer::add_frame(), EggJointPointer::add_frame(), get_frame(), and set_frame(). |
|
Reimplemented from EggJointPointer. Definition at line 30 of file eggJointNodePointer.cxx. Referenced by get_type(). |