collada.source.InputList¶
-
class
collada.source.
InputList
¶ Bases:
object
Used for defining input sources to a geometry.
digraph inheritance7607915fbc { rankdir=LR; size="8.0, 12.0"; "DaeObject" [URL="collada.common.DaeObject.html#collada.common.DaeObject",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="This class is the abstract interface to all collada objects."]; "FloatSource" [URL="collada.source.FloatSource.html#collada.source.FloatSource",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Contains a source array of floats, as defined in the collada"]; "Source" -> "FloatSource" [arrowsize=0.5,style="setlinewidth(0.5)"]; "IDRefSource" [URL="collada.source.IDRefSource.html#collada.source.IDRefSource",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Contains a source array of ID references, as defined in the collada"]; "Source" -> "IDRefSource" [arrowsize=0.5,style="setlinewidth(0.5)"]; "InputList" [URL="#collada.source.InputList",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Used for defining input sources to a geometry."]; "NameSource" [URL="collada.source.NameSource.html#collada.source.NameSource",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Contains a source array of strings, as defined in the collada"]; "Source" -> "NameSource" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Source" [URL="collada.source.Source.html#collada.source.Source",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Abstract class for loading source arrays"]; "DaeObject" -> "Source" [arrowsize=0.5,style="setlinewidth(0.5)"]; }-
__init__
()¶ Create an input list
Methods
__init__
()Create an input list addInput
(offset, semantic, src[, set])Add an input source to this input list. getList
()Returns a list of tuples of the source in the form (offset, semantic, source, set) -
addInput
(offset, semantic, src, set=None)¶ Add an input source to this input list.
Parameters: - offset (int) – Offset for this source within the geometry’s indices
- semantic (str) –
- The semantic for the input source. Currently supported options are:
- VERTEX
- NORMAL
- TEXCOORD
- TEXBINORMAL
- TEXTANGENT
- COLOR
- TANGENT
- BINORMAL
- src (str) – A string identifier of the form #srcid where srcid is a source
within the geometry’s
sourceById
array. - set (str) – Indicates a set number for the source. This is used, for example, when there are multiple texture coordinate sets.
-
getList
()¶ Returns a list of tuples of the source in the form (offset, semantic, source, set)
-