Bases: collada.source.Source
Contains a source array of floats, as defined in the collada <float_array> inside a <source>.
If f is an instance of collada.source.FloatSource, then len(f) is the length of the shaped source. len(f)*len(f.components) would give you the number of values in the source. f[i] is the ith item in the source array.
digraph inheritance7607915fbc { rankdir=LR; size="8.0, 12.0"; "InputList" [style="setlinewidth(0.5)",URL="collada.source.InputList.html#collada.source.InputList",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Used for defining input sources to a geometry.",height=0.25,shape=box,fontsize=10]; "Source" [style="setlinewidth(0.5)",URL="collada.source.Source.html#collada.source.Source",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Abstract class for loading source arrays",height=0.25,shape=box,fontsize=10]; "DaeObject" -> "Source" [arrowsize=0.5,style="setlinewidth(0.5)"]; "FloatSource" [style="setlinewidth(0.5)",URL="#collada.source.FloatSource",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Contains a source array of floats, as defined in the collada",height=0.25,shape=box,fontsize=10]; "Source" -> "FloatSource" [arrowsize=0.5,style="setlinewidth(0.5)"]; "IDRefSource" [style="setlinewidth(0.5)",URL="collada.source.IDRefSource.html#collada.source.IDRefSource",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Contains a source array of ID references, as defined in the collada",height=0.25,shape=box,fontsize=10]; "Source" -> "IDRefSource" [arrowsize=0.5,style="setlinewidth(0.5)"]; "NameSource" [style="setlinewidth(0.5)",URL="collada.source.NameSource.html#collada.source.NameSource",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Contains a source array of strings, as defined in the collada",height=0.25,shape=box,fontsize=10]; "Source" -> "NameSource" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DaeObject" [style="setlinewidth(0.5)",URL="collada.common.DaeObject.html#collada.common.DaeObject",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="This class is the abstract interface to all collada objects.",height=0.25,shape=box,fontsize=10]; }
Create a float source instance.
Parameters: |
|
---|
Methods
__init__(id, data, components[, xmlnode]) | Create a float source instance. |
load(collada, localscope, node) | |
save() | Saves the source back to xmlnode |
The unique string identifier for the source
Numpy array with the source values. This will be shaped as (-1,N) where N = len(self.components)
Tuple of strings describing the semantic of the data, e.g. ('X','Y','Z')
ElementTree representation of the source.