InstanceList

class InstanceList

Bases: CopyOnWriteObject

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

Added in version 1.11.0.

Inheritance diagram

digraph inheritance52902ddc8d { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "CachedTypedWritableReferenceCount" [URL="acron.core.CachedTypedWritableReferenceCount.html#acron.core.CachedTypedWritableReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "CachedTypedWritableReferenceCount" [arrowsize=0.75,style=""]; "CopyOnWriteObject" [URL="acron.core.CopyOnWriteObject.html#acron.core.CopyOnWriteObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "CachedTypedWritableReferenceCount" -> "CopyOnWriteObject" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "InstanceList" [URL="acron.core.InstanceList.html#acron.core.InstanceList",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "CopyOnWriteObject" -> "InstanceList" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedWritable" [URL="acron.core.TypedWritable.html#acron.core.TypedWritable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedWritable" [arrowsize=0.75,style=""]; "TypedWritableReferenceCount" [URL="acron.core.TypedWritableReferenceCount.html#acron.core.TypedWritableReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritable" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; }
class InstanceList.Instance

Bases:

An individual instance in an InstanceList.

Added in version 1.11.0.

__init__()

Initializes an instance with the identity transform.

Initializes an instance with the given transformation.

get_hpr()
get_mat()
get_pos()
get_quat()
get_scale()
get_transform()
set_hpr()
set_mat()
set_pos()
set_quat()
set_scale()
set_transform()
property transform → TransformState
InstanceList.__getitem__()

Returns the nth instance in the list.

Returns the nth instance in the list.

InstanceList.__init__()
InstanceList.append()

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.

InstanceList.clear()

Empties the instance list.

static InstanceList.get_class_type()
static InstanceList.operator_delete()
static InstanceList.operator_delete()
static InstanceList.operator_new()
static InstanceList.operator_new()
InstanceList.reserve()

Reserves space for the given number of instances.

InstanceList.size()

Returns the total number of instances in the list.

static InstanceList.validate_ptr()
InstanceList.xform()

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