collada.source.Source

class collada.source.Source

Bases: collada.common.DaeObject

Abstract class for loading source arrays

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.html#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",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__()

Initialize self. See help(type(self)) for accurate signature.

Methods

load(collada, localscope, node) Load and return a class instance from an XML node.
save() Put all the data to the internal xml node (xmlnode) so it can be serialized.
static load(collada, localscope, node)

Load and return a class instance from an XML node.

Inspect the data inside node, which must match this class tag and create an instance out of it.

Parameters:
  • collada (collada.Collada) – The collada file object where this object lives
  • localscope (dict) – If there is a local scope where we should look for local ids (sid) this is the dictionary. Otherwise empty dict ({})
  • node – An Element from python’s ElementTree API
save()

Put all the data to the internal xml node (xmlnode) so it can be serialized.