panda3d.egg.EggXfmAnimData

class EggXfmAnimData

Bases: EggAnimData

Corresponding to an <Xfm$Anim> entry, this stores a two-dimensional table with up to nine columns, one for each component of a transformation. This is an older syntax of egg anim table, not often used currently–it’s replaced by EggXfmSAnim.

Inheritance diagram

Inheritance diagram of EggXfmAnimData

__init__(copy: EggXfmAnimData) → None
__init__(convert_from: EggXfmSAnim) → None

Converts the newer-style XfmSAnim table to the older-style XfmAnim table.

__init__(name: str, cs: CoordinateSystem) → None
assign(copy: EggXfmAnimData) → EggXfmAnimData
Return type

EggXfmAnimData

clearContents() → None
clearOrder() → None
static getClassType() → TypeHandle
Return type

TypeHandle

getContents() → str
getCoordinateSystem() → CoordinateSystem

Returns the coordinate system this table believes it is defined within. This should always match the coordinate system of the EggData structure that owns it. It is necessary to store it here because the meaning of the h, p, and r columns depends on the coordinate system.

Return type

CoordinateSystem

getNumCols() → int

Returns the number of columns in the table. This is set according to the “contents” string, which defines the meaning of each column.

getNumRows() → int

Returns the number of rows in the table.

getOrder() → str
static getStandardOrder() → str

Returns the standard order of matrix component composition. This is what the order string must be set to in order to use set_value() or add_data() successfully.

getValue(row: int, mat: LMatrix4d) → None

Returns the value of the aggregate row of the table as a matrix. This is a convenience function that treats the 2-d table as if it were a single table of matrices.

getValue(row: int, col: int) → float

Returns the value at the indicated row. Row must be in the range 0 <= row < getNumRows(); col must be in the range 0 <= col < getNumCols().

hasContents() → bool
hasOrder() → bool
setContents(contents: str) → None
setOrder(order: str) → None