InstanceList

from panda3d.core import InstanceList
class InstanceList

Bases:

Bases: CopyOnWriteObject

This structure stores a list of per-instance data, used by InstancedNode.

New in version 1.11.0.

Inheritance diagram

Inheritance diagram of InstanceList

class Instance

Bases:

An individual instance in an InstanceList.

New in version 1.11.0.

__init__(param0: Instance)
get_hpr() LVecBase3
get_mat() LMatrix4
get_pos() LPoint3
get_quat() LQuaternion
get_scale() LVecBase3
get_transform() TransformState
set_hpr(param0: LVecBase3)
set_hpr(h: float, p: float, r: float)
set_mat(mat: LMatrix4)
set_pos(param0: LPoint3)
set_pos(x: float, y: float, z: float)
set_quat(param0: LQuaternion)
set_scale(param0: LVecBase3)
set_scale(sx: float, sy: float, sz: float)
set_transform(param0: TransformState)
property transform TransformState
__getitem__(n: int) Instance

Returns the nth instance in the list.

__getitem__(n: int) Instance

Returns the nth instance in the list.

__init__()
__init__(copy: InstanceList)
append(instance: Instance)

Adds a new instance with the indicated transformation to the list.

append(pos: LPoint3, quat: LQuaternion, scale: LVecBase3)

Adds a new instance with the indicated transformation to the list.

append(pos: LPoint3, hpr: LVecBase3, scale: LVecBase3)

Adds a new instance with the indicated transformation to the list.

append(transform: TransformState)

Adds a new instance with the indicated transformation to the list.

clear()

Empties the instance list.

static get_class_type() TypeHandle
reserve(param0: int)

Reserves space for the given number of instances.

size() int

Returns the total number of instances in the list.

xform(mat: LMatrix4)

Transforms all of the instances in the list by the indicated matrix.