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.
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. This is used to compute the result of several blended transforms.
UpdateSeq get_global_modified(Thread *current_thread)
UpdateSeq get_modified(Thread *current_thread = Thread::get_current_thread()) const
Returns a sequence number that’s guaranteed to change at least every time the value reported by
static UpdateSeq get_next_modified(Thread *current_thread)
Returns a monotonically increasing sequence. Each time this is called, a new sequence number is returned, higher than the previous value.
This is used to ensure that all
VertexTransform::get_modified()calls return an increasing number in the same space, so that
TransformBlend::get_modified()is easy to determine. It is similar to
Geom::get_modified(), but it is in a different space.
virtual void mult_matrix(LMatrix4 &result, LMatrix4 const &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. The result is stored in the parameter “result”, which should not be the same matrix as previous.
virtual void output(std::ostream &out) const
virtual void write(std::ostream &out, int indent_level) const
- virtual void accumulate_matrix(LMatrix4 &accum, PN_stdfloat weight) const