This is an abstract base class that holds a pointer to some transform, computed in some arbitrary way, that is to be applied to vertices during rendering.
More...
Classes |
| class | CData |
Public Member Functions |
| virtual void | accumulate_matrix (LMatrix4 &accum, PN_stdfloat weight) const |
| | Adds the value of this transform's matrix, modified by the indicated weight, into the indicated accumulation matrix.
|
|
virtual TypeHandle | force_init_type () |
|
virtual void | get_matrix (LMatrix4 &matrix) const =0 |
| UpdateSeq | get_modified (Thread *current_thread) const |
| | Returns a sequence number that's guaranteed to change at least every time the value reported by get_matrix() changes.
|
|
virtual TypeHandle | get_type () const |
| virtual void | mult_matrix (LMatrix4 &result, const LMatrix4 &previous) const |
| | Premultiplies this transform's matrix with the indicated previous matrix, so that the result is the net composition of the given transform with this transform.
|
|
virtual void | output (ostream &out) const |
|
virtual void | write (ostream &out, int indent_level) const |
| virtual void | write_datagram (BamWriter *manager, Datagram &dg) |
| | Writes the contents of this object to the datagram for shipping out to a Bam file.
|
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
| static UpdateSeq | get_global_modified (Thread *current_thread) |
| | Returns the currently highest VertexTransform::get_modified() value in the world.
|
| static UpdateSeq | get_next_modified (Thread *current_thread) |
| | Returns a monotonically increasing sequence.
|
|
static void | init_type () |
Protected Member Functions |
| void | fillin (DatagramIterator &scan, BamReader *manager) |
| | This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new VertexTransform.
|
| void | mark_modified (Thread *current_thread) |
| | Intended to be called by a derived class whenever the reported transform might have changed.
|
Friends |
|
class | TransformTable |
This is an abstract base class that holds a pointer to some transform, computed in some arbitrary way, that is to be applied to vertices during rendering.
This is used to implement soft-skinned and animated vertices. Derived classes will define how the transform is actually computed.
Definition at line 39 of file vertexTransform.h.
| void VertexTransform::accumulate_matrix |
( |
LMatrix4 & |
accum, |
|
|
PN_stdfloat |
weight |
|
) |
| const [virtual] |
| UpdateSeq VertexTransform::get_next_modified |
( |
Thread * |
current_thread | ) |
[static] |
| void VertexTransform::mult_matrix |
( |
LMatrix4 & |
result, |
|
|
const LMatrix4 & |
previous |
|
) |
| const [virtual] |