| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLStructureAdapter
hmi.graphics.collada.ColladaElement
hmi.graphics.collada.Source
public class Source
A Collada Source defines an Accessor to some data array, like a FloatArray or IntArray, and usually includes that data array. It provides access to a "homogeneous" version of that data, i.e. a simple Java array, without offset or strides. This data corrsponds to the (named) fields specified in the Accessor.
| Field Summary | |
|---|---|
private  BoolArray | 
boolArray
 | 
private  FloatArray | 
floatArray
 | 
private  IDREFArray | 
idrefArray
 | 
private  IntArray | 
intArray
 | 
private  NameArray | 
nameArray
 | 
private  TechniqueCommonSource | 
techniqueCommon
 | 
private  ArrayList<TechniqueCore> | 
techniques
 | 
private static String | 
XMLTAG
 | 
| Fields inherited from class hmi.graphics.collada.ColladaElement | 
|---|
COLLADANAMESPACE | 
| Fields inherited from class hmi.xml.XMLStructureAdapter | 
|---|
ATTRIBUTE_TOKEN_DELIMITERS, COMMA_SEPARATOR, DECODEDARRAYSIZE, DEFAULT_RECOVER_MODE, NEWLINE, SYSTEMNEWLINE, TAB, TAB_STRING | 
| Constructor Summary | |
|---|---|
Source()
default constructor  | 
|
Source(Collada collada,
       XMLTokenizer tokenizer)
creates a new Collada Source object, and reconstructs it from XML.  | 
|
| Method Summary | |
|---|---|
 StringBuilder | 
appendContent(StringBuilder buf,
              XMLFormatting fmt)
Appends a String to buf that encodes the contents for the XML encoding.  | 
 void | 
decodeContent(XMLTokenizer tokenizer)
decodes the XML contents, i.e. the XML between the STag and ETag of the encoding.  | 
 Accessor | 
getAccessor()
returns the (resolved) Accessor from the Technique(_Common) child  | 
 boolean[] | 
getHomogeneousBoolData()
Like getHomogeneousFloatData, but accesses BoolArray data  | 
 float[] | 
getHomogeneousFloatData()
returns the float data from from the Collada FloatArray in a Java float array, as specified by the Accessor of this Source.  | 
 float[] | 
getHomogeneousFloatData(String[] fieldNames)
returns the float data from from the Collada FloatArray in a Java float array, as specified by the Accessor of this Source.  | 
 String[] | 
getHomogeneousIDREFData()
Like getHomogeneousFloatData, but accesses IDREFArray data  | 
 int[] | 
getHomogeneousIntData()
Like getHomogeneousFloatData, but accesses IntArray data  | 
 int[] | 
getHomogeneousIntData(String[] fieldNames)
Like getHomogeneousFloatData, but accesses IntArray data  | 
 String[] | 
getHomogeneousNameData()
Like getHomogeneousFloatData, but accesses NameArray data  | 
 int | 
getNrOfNamedParams()
Returns the number of named parameters, as specified by the Accessor for this Source.  | 
 String | 
getXMLTag()
returns the XML Stag for XML encoding  | 
 void | 
resolve()
method that should be called in order to resolve the source data array, before the accessor can be used to actually access data.  | 
static String | 
xmlTag()
The XML Stag for XML encoding  | 
| Methods inherited from class hmi.graphics.collada.ColladaElement | 
|---|
addColladaNode, addColladaNodes, addToIdMap, appendAttributes, decodeAttributes, getCollada, getColladaNodes, getId, getIdMap, getIdOrName, getIds, getName, getNamespace, getRecursiveColladaNodes, getRecursiveColladaNodes, getResources, getSid, report, reportNode, setCollada, setId, setName, setSid, urlToId | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
private TechniqueCommonSource techniqueCommon
private ArrayList<TechniqueCore> techniques
private FloatArray floatArray
private IntArray intArray
private BoolArray boolArray
private NameArray nameArray
private IDREFArray idrefArray
private static final String XMLTAG
| Constructor Detail | 
|---|
public Source()
public Source(Collada collada,
              XMLTokenizer tokenizer)
       throws IOException
IOException| Method Detail | 
|---|
public void resolve()
public Accessor getAccessor()
public int getNrOfNamedParams()
public float[] getHomogeneousFloatData(String[] fieldNames)
public float[] getHomogeneousFloatData()
public int[] getHomogeneousIntData(String[] fieldNames)
public int[] getHomogeneousIntData()
public boolean[] getHomogeneousBoolData()
public String[] getHomogeneousNameData()
public String[] getHomogeneousIDREFData()
public StringBuilder appendContent(StringBuilder buf,
                                   XMLFormatting fmt)
XMLStructureAdapter
appendContent in class XMLStructureAdapter
public void decodeContent(XMLTokenizer tokenizer)
                   throws IOException
XMLStructureAdapter
decodeContent in class XMLStructureAdapterIOExceptionpublic static String xmlTag()
public String getXMLTag()
getXMLTag in interface XMLStructuregetXMLTag in class XMLStructureAdapter
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||