TransformBlendTable

from panda3d.core import TransformBlendTable
class TransformBlendTable

Bases:

Bases: CopyOnWriteObject

This 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 GeomVertexData set up to compute its dynamic vertices on the CPU. See TransformTable for one set up to compute its dynamic vertices on the graphics card.

Inheritance diagram

Inheritance diagram of TransformBlendTable

__init__()
__init__(copy: TransformBlendTable)
add_blend(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.

get_blend(n: int) TransformBlend

Returns the nth blend in the table.

get_blends() list
static get_class_type() TypeHandle
get_max_simultaneous_transforms() int

Returns the maximum number of unique VertexTransform objects that are applied to any one vertex simultaneously. This is the same limit reflected by GraphicsStateGuardian.get_max_vertex_transforms().

get_modified(current_thread: Thread) UpdateSeq

Returns a counter which is guaranteed to increment at least when any TransformBlends within the table have changed.

get_num_blends() int

Returns the total number of different blend combinations in the table.

get_num_transforms() int

Returns the number of unique VertexTransform objects represented in the table. This will correspond to the size of the TransformTable object that would represent the same table. This is also the same limit reflected by GraphicsStateGuardian.get_max_vertex_transform_indices().

get_rows() SparseArray

Returns the subset of rows (vertices) in the associated GeomVertexData that this TransformBlendTable actually affects.

property max_simultaneous_transforms int

Returns the maximum number of unique VertexTransform objects that are applied to any one vertex simultaneously. This is the same limit reflected by GraphicsStateGuardian.get_max_vertex_transforms().

property modified UpdateSeq

Returns a counter which is guaranteed to increment at least when any TransformBlends within the table have changed.

modify_rows() SparseArray

Returns a modifiable reference to the SparseArray that specifies the subset of rows (vertices) in the associated GeomVertexData that this TransformBlendTable actually affects.

property num_transforms int

Returns the number of unique VertexTransform objects represented in the table. This will correspond to the size of the TransformTable object that would represent the same table. This is also the same limit reflected by GraphicsStateGuardian.get_max_vertex_transform_indices().

remove_blend(n: int)

Removes the blend at the nth position.

property rows SparseArray

Returns/Specifies the subset of rows (vertices) in the associated GeomVertexData/GeomVertexData that */that this TransformBlendTable actually affects.

set_blend(n: int, blend: TransformBlend)

Replaces the blend at the nth position with the indicated value.

set_rows(rows: SparseArray)

Specifies the subset of rows (vertices) in the associated GeomVertexData that this TransformBlendTable actually affects.

write(out: ostream, indent_level: int)