InstanceList

from panda3d.core import InstanceList
class InstanceList

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: DTOOL_SUPER_BASE

An individual instance in an InstanceList.

New in version 1.11.0.

__init__(*args, **kwargs)
getHpr()

C++ Interface: get_hpr(Instance self)

/**

*/

getMat()

C++ Interface: get_mat(Instance self)

/**

*/

getPos()

C++ Interface: get_pos(Instance self)

/**

*/

getQuat()

C++ Interface: get_quat(Instance self)

/**

*/

getScale()

C++ Interface: get_scale(Instance self)

/**

*/

getTransform()

C++ Interface: get_transform(Instance self)

/**

*/

get_hpr()

C++ Interface: get_hpr(Instance self)

/**

*/

get_mat()

C++ Interface: get_mat(Instance self)

/**

*/

get_pos()

C++ Interface: get_pos(Instance self)

/**

*/

get_quat()

C++ Interface: get_quat(Instance self)

/**

*/

get_scale()

C++ Interface: get_scale(Instance self)

/**

*/

get_transform()

C++ Interface: get_transform(Instance self)

/**

*/

setHpr()

C++ Interface: set_hpr(const Instance self, const LVecBase3f param0) set_hpr(const Instance self, float h, float p, float r)

/**

*/

/**

*/

setMat()

C++ Interface: set_mat(const Instance self, const LMatrix4f mat)

/**

*/

setPos()

C++ Interface: set_pos(const Instance self, const LPoint3f param0) set_pos(const Instance self, float x, float y, float z)

/**

*/

/**

*/

setQuat()

C++ Interface: set_quat(const Instance self, const LQuaternionf param0)

/**

*/

setScale()

C++ Interface: set_scale(const Instance self, const LVecBase3f param0) set_scale(const Instance self, float sx, float sy, float sz)

/**

*/

/**

*/

setTransform()

C++ Interface: set_transform(const Instance self, const TransformState param0)

/**

*/

set_hpr()

C++ Interface: set_hpr(const Instance self, const LVecBase3f param0) set_hpr(const Instance self, float h, float p, float r)

/**

*/

/**

*/

set_mat()

C++ Interface: set_mat(const Instance self, const LMatrix4f mat)

/**

*/

set_pos()

C++ Interface: set_pos(const Instance self, const LPoint3f param0) set_pos(const Instance self, float x, float y, float z)

/**

*/

/**

*/

set_quat()

C++ Interface: set_quat(const Instance self, const LQuaternionf param0)

/**

*/

set_scale()

C++ Interface: set_scale(const Instance self, const LVecBase3f param0) set_scale(const Instance self, float sx, float sy, float sz)

/**

*/

/**

*/

set_transform()

C++ Interface: set_transform(const Instance self, const TransformState param0)

/**

*/

transform
__init__(*args, **kwargs)
append()

C++ Interface: append(const InstanceList self, const LPoint3f pos) append(const InstanceList self, const TransformState transform) append(const InstanceList self, Instance instance) append(const InstanceList self, const LPoint3f pos, const LQuaternionf quat, const LVecBase3f scale) append(const InstanceList self, const LPoint3f pos, const LVecBase3f hpr, const LVecBase3f scale)

/**
  • Adds a new instance with the indicated transformation to the list.

*/

/**
  • Adds a new instance with the indicated transformation to the list.

*/

/**
  • Adds a new instance with the indicated transformation to the list.

*/

/**
  • Adds a new instance with the indicated transformation to the list.

*/

clear()

C++ Interface: clear(const InstanceList self)

/**
  • Empties the instance list.

*/

getClassType()

C++ Interface: get_class_type()

get_class_type()

C++ Interface: get_class_type()

reserve()

C++ Interface: reserve(const InstanceList self, int param0)

/**
  • Reserves space for the given number of instances.

*/

xform()

C++ Interface: xform(const InstanceList self, const LMatrix4f mat)

/**
  • Transforms all of the instances in the list by the indicated matrix.

*/