VertexTransform

from panda3d.core import VertexTransform
class VertexTransform

Bases: TypedWritableReferenceCount

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.

Inheritance diagram

Inheritance diagram of VertexTransform

__init__(*args, **kwargs)
accumulateMatrix()

C++ Interface: accumulate_matrix(VertexTransform self, LMatrix4f accum, float weight)

/**
  • 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.

*/

accumulate_matrix()

C++ Interface: accumulate_matrix(VertexTransform self, LMatrix4f accum, float weight)

/**
  • 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.

*/

getClassType()

C++ Interface: get_class_type()

getGlobalModified()

C++ Interface: get_global_modified(Thread current_thread)

/**
  • Returns the currently highest VertexTransform::get_modified() value in the

  • world. This can be used as a quick way to determine if any

  • VertexTransforms have changed value recently.

*/

getMatrix()

C++ Interface: get_matrix(VertexTransform self, LMatrix4f matrix)

getModified()

C++ Interface: get_modified(VertexTransform self, Thread current_thread)

/**
  • Returns a sequence number that’s guaranteed to change at least every time

  • the value reported by get_matrix() changes.

*/

getNextModified()

C++ Interface: 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.

*/

get_class_type()

C++ Interface: get_class_type()

get_global_modified()

C++ Interface: get_global_modified(Thread current_thread)

/**
  • Returns the currently highest VertexTransform::get_modified() value in the

  • world. This can be used as a quick way to determine if any

  • VertexTransforms have changed value recently.

*/

get_matrix()

C++ Interface: get_matrix(VertexTransform self, LMatrix4f matrix)

get_modified()

C++ Interface: get_modified(VertexTransform self, Thread current_thread)

/**
  • Returns a sequence number that’s guaranteed to change at least every time

  • the value reported by get_matrix() changes.

*/

get_next_modified()

C++ Interface: 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.

*/

modified
multMatrix()

C++ Interface: mult_matrix(VertexTransform self, LMatrix4f result, const LMatrix4f previous)

/**
  • 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.

*/

mult_matrix()

C++ Interface: mult_matrix(VertexTransform self, LMatrix4f result, const LMatrix4f previous)

/**
  • 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.

*/

output()

C++ Interface: output(VertexTransform self, ostream out)

/**

*/

write()

C++ Interface: write(VertexTransform self, ostream out, int indent_level)

/**

*/