# panda3d.core.TransformTable¶

class TransformTable

Stores the total set of VertexTransforms that the vertices in a particular GeomVertexData object might depend on.

This structure is used for a GeomVertexData set up to compute its dynamic vertices on the graphics card. See TransformBlendTable for one set up to compute its dynamic vertices on the CPU.

Inheritance diagram

__init__() → None
__init__(copy: TransformTable) → None
addTransform(transform: VertexTransform) → size_t

Adds a new transform to the table and returns the index number of the new transform. Only valid for unregistered tables.

This does not automatically uniquify the pointer; if the transform is already present in the table, it will be added twice.

Return type

size_t

assign(copy: TransformTable) → TransformTable
Return type

TransformTable

static getClassType() → TypeHandle
Return type

TypeHandle

getModified(current_thread: Thread) → UpdateSeq

Returns a sequence number that’s guaranteed to change at least when any VertexTransforms in the table change. (However, this is only true for a registered table. An unregistered table may or may not reflect an update here when a VertexTransform changes.)

Return type

getNumTransforms() → size_t

Returns the number of transforms in the table.

Return type

size_t

getTransform(n: size_t) → VertexTransform

Returns the nth transform in the table.

Return type

VertexTransform

getTransforms() → list
insertTransform(n: size_t, transform: VertexTransform) → None

Inserts a new transform to the table at the given index position. If the index is beyond the end of the table, appends it to the end. Only valid for unregistered tables.

This does not automatically uniquify the pointer; if the transform is already present in the table, it will be added twice.

isRegistered() → bool

Returns true if this table has been registered. Once it has been registered, the set of transforms in a TransformTable may not be further modified; but it must be registered before it can be assigned to a Geom.

property modified

Returns a sequence number that’s guaranteed to change at least when any VertexTransforms in the table change. (However, this is only true for a registered table. An unregistered table may or may not reflect an update here when a VertexTransform changes.)

Return type

static registerTable(table: TransformTable) → TransformTable

Registers a TransformTable for use. This is similar to GeomVertexFormat.registerFormat(). Once registered, a TransformTable may no longer be modified (although the individual VertexTransform objects may modify their reported transforms).

This must be called before a table may be used in a Geom. After this call, you should discard the original pointer you passed in (which may or may not now be invalid) and let its reference count decrement normally; you should use only the returned value from this point on.

Return type

TransformTable

property registered

Returns true if this table has been registered. Once it has been registered, the set of transforms in a TransformTable may not be further modified; but it must be registered before it can be assigned to a Geom.

Return type

bool

removeTransform(n: size_t) → None

Removes the nth transform. Only valid for unregistered tables.

setTransform(n: size_t, transform: VertexTransform) → None

Replaces the nth transform. Only valid for unregistered tables.

property transforms
Getter

Returns the nth transform in the table.

Setter

Replaces the nth transform. Only valid for unregistered tables.

Return type
write(out: ostream) → None