AnimChannelMatrixXfmTable

from panda3d.core import AnimChannelMatrixXfmTable
class AnimChannelMatrixXfmTable

Bases:

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)
clearAllTables()

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

clearTable(table_id: char)

Removes the indicated table from the definition.

static getClassType() TypeHandle
getTable(table_id: char) CPTA_stdfloat

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

hasTable(table_id: char) bool

Returns true if the indicated subtable has been assigned.

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)

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.

property tables CPTA_stdfloat
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.