TransformBlendTable
from panda3d.core import TransformBlendTable
- class TransformBlendTable
Bases:
Bases:
CopyOnWriteObjectThis structure collects together the different combinations of transforms and blend amounts used by a
GeomVertexData, to facilitate computing dynamic vertices on the CPU at runtime. Each vertex has a pointer to exactly one of the entries in this table, and each entry defines a number of transform/blend combinations.This structure is used for a
GeomVertexDataset up to compute its dynamic vertices on the CPU. SeeTransformTablefor one set up to compute its dynamic vertices on the graphics card.Inheritance diagram
- __init__()
- __init__(copy: TransformBlendTable)
- addBlend(blend: TransformBlend) int
Adds a new blend to the table, and returns its index number. If there is already an identical blend in the table, simply returns that number instead.
- assign(copy: TransformBlendTable) TransformBlendTable
- property blends Sequence[TransformBlend]
- Getter
Returns the nth blend in the table.
- Setter
Replaces the blend at the nth position with the indicated value.
- getBlend(n: int) TransformBlend
Returns the nth blend in the table.
- static getClassType() TypeHandle
- getMaxSimultaneousTransforms() int
Returns the maximum number of unique
VertexTransformobjects that are applied to any one vertex simultaneously. This is the same limit reflected byGraphicsStateGuardian.getMaxVertexTransforms().
- getModified(current_thread: Thread) UpdateSeq
Returns a counter which is guaranteed to increment at least when any
TransformBlendswithin the table have changed.
- getNumTransforms() int
Returns the number of unique
VertexTransformobjects represented in the table. This will correspond to the size of theTransformTableobject that would represent the same table. This is also the same limit reflected byGraphicsStateGuardian.getMaxVertexTransformIndices().
- getRows() SparseArray
Returns the subset of rows (vertices) in the associated
GeomVertexDatathat thisTransformBlendTableactually affects.
- property max_simultaneous_transforms int
Returns the maximum number of unique
VertexTransformobjects that are applied to any one vertex simultaneously. This is the same limit reflected byGraphicsStateGuardian.getMaxVertexTransforms().
- property modified UpdateSeq
Returns a counter which is guaranteed to increment at least when any
TransformBlendswithin the table have changed.
- modifyRows() SparseArray
Returns a modifiable reference to the
SparseArraythat specifies the subset of rows (vertices) in the associatedGeomVertexDatathat thisTransformBlendTableactually affects.
- property num_transforms int
Returns the number of unique
VertexTransformobjects represented in the table. This will correspond to the size of theTransformTableobject that would represent the same table. This is also the same limit reflected byGraphicsStateGuardian.getMaxVertexTransformIndices().
- property rows SparseArray
Returns/Specifies the subset of rows (vertices) in the associated GeomVertexData/GeomVertexData that */that this
TransformBlendTableactually affects.
- setBlend(n: int, blend: TransformBlend)
Replaces the blend at the nth position with the indicated value.
- setRows(rows: SparseArray)
Specifies the subset of rows (vertices) in the associated
GeomVertexDatathat thisTransformBlendTableactually affects.
