An animation channel that accepts a matrix each frame from some dynamic input provided by code.
More...
Public Member Functions |
|
| AnimChannelMatrixDynamic (const string &name) |
| virtual int | complete_pointers (TypedWritable **plist, BamReader *manager) |
| | Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().
|
| void | fillin (DatagramIterator &scan, BamReader *manager) |
| | Function that reads out of the datagram (or asks manager to read) all of the data that is needed to re-create this object and stores it in the appropiate place.
|
|
virtual TypeHandle | force_init_type () |
| virtual void | get_hpr (int frame, LVecBase3 &hpr) |
| | Returns the h, p, and r components associated with the current frame.
|
| virtual void | get_pos (int frame, LVecBase3 &pos) |
| | Returns the x, y, and z translation components associated with the current frame.
|
| virtual void | get_quat (int frame, LQuaternion &quat) |
| | Returns the rotation component associated with the current frame, expressed as a quaternion.
|
| virtual void | get_scale (int frame, LVecBase3 &scale) |
| | Gets the scale value at the indicated frame.
|
| virtual void | get_shear (int frame, LVecBase3 &shear) |
| | Returns the a, b, and c shear components associated with the current frame.
|
|
virtual TypeHandle | get_type () const |
| virtual void | get_value (int frame, LMatrix4 &mat) |
| | Gets the value of the channel at the indicated frame.
|
| virtual void | get_value_no_scale_shear (int frame, LMatrix4 &value) |
| | Gets the value of the channel at the indicated frame, without any scale or shear information.
|
| PandaNode * | get_value_node () const |
| | Returns the node that was set via set_value_node(), if any.
|
| const TransformState * | get_value_transform () const |
| | Returns the explicit TransformState value that was set via set_value(), if any.
|
| virtual bool | has_changed (int last_frame, double last_frac, int this_frame, double this_frac) |
| | Returns true if the value has changed since the last call to has_changed().
|
| void | set_value (const LMatrix4 &value) |
| | Explicitly sets the matrix value.
|
| void | set_value (const TransformState *value) |
| | Explicitly sets the matrix value, using the indicated TransformState object as a convenience.
|
| void | set_value_node (PandaNode *node) |
| | Specifies a node whose transform will be queried each frame to implicitly specify the transform of this joint.
|
| virtual void | write_datagram (BamWriter *manager, Datagram &dg) |
| | Function to write the important information in the particular object to a Datagram.
|
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
|
static void | init_type () |
| static TypedWritable * | make_AnimChannelMatrixDynamic (const FactoryParams ¶ms) |
| | Factory method to generate an AnimChannelMatrixDynamic object.
|
| static void | register_with_read_factory () |
| | Factory method to generate an AnimChannelMatrixDynamic object.
|
Protected Member Functions |
| | AnimChannelMatrixDynamic () |
| | For use only with the bam reader.
|
| | AnimChannelMatrixDynamic (AnimGroup *parent, const AnimChannelMatrixDynamic ©) |
| | Creates a new AnimChannelMatrixDynamic, just like this one, without copying any children.
|
| virtual AnimGroup * | make_copy (AnimGroup *parent) const |
| | Returns a copy of this object, and attaches it to the indicated parent (which may be NULL only if this is an AnimBundle).
|
An animation channel that accepts a matrix each frame from some dynamic input provided by code.
This object operates in two modes: in explicit mode, the programmer should call set_value() each frame to indicate the new value; in implicit mode, the programmer should call set_value_node() to indicate the node whose transform will be copied to the joint each frame.
Definition at line 37 of file animChannelMatrixDynamic.h.