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

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

clear_table(table_id: char)

Removes the indicated table from the definition.

static get_class_type() TypeHandle
get_table(table_id: char) CPTA_stdfloat

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

has_table(table_id: char) bool

Returns true if the indicated subtable has been assigned.

static is_valid_id(table_id: char) bool

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

set_table(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.