panda3d.core.AnimChannelMatrixXfmTable

class AnimChannelMatrixXfmTable

Bases: AnimChannel_ACMatrixSwitchType

An animation channel that issues a matrix each frame, read from a table such as might have been read from an egg file. The table actually consists of nine sub-tables, each representing one component of the transform: scale, rotate, translate.

Inheritance diagram

Inheritance diagram of AnimChannelMatrixXfmTable

__init__(parent: AnimGroup, name: str) → None
static isValidId(table_id: char) → bool

Returns true if the given letter is one of the nine valid table id’s.

setTable(table_id: char, table: CPTA_stdfloat) → None

Assigns the indicated table. table_id is one of ‘i’, ‘j’, ‘k’, for scale, ‘a’, ‘b’, ‘c’ for shear, ‘h’, ‘p’, ‘r’, for rotation, and ‘x’, ‘y’, ‘z’, for translation. The new table must have either zero, one, or get_num_frames() frames.

getTable(table_id: char) → CPTA_stdfloat

Returns a pointer to the indicated subtable’s data, if it exists, or NULL if it does not.

Return type

CPTA_stdfloat

clearAllTables() → None

Removes all the tables from the channel, and resets it to its initial state.

hasTable(table_id: char) → bool

Returns true if the indicated subtable has been assigned.

clearTable(table_id: char) → None

Removes the indicated table from the definition.

static getClassType() → TypeHandle
Return type

TypeHandle

property tables
Getter

Returns a pointer to the indicated subtable’s data, if it exists, or NULL if it does not.

Setter

Assigns the indicated table. table_id is one of ‘i’, ‘j’, ‘k’, for scale, ‘a’, ‘b’, ‘c’ for shear, ‘h’, ‘p’, ‘r’, for rotation, and ‘x’, ‘y’, ‘z’, for translation. The new table must have either zero, one, or get_num_frames() frames.

Return type

Mapping[CPTA_stdfloat]