gov.nasa.worldwind.ogc.collada
Class ColladaTextureOrColor
java.lang.Object
gov.nasa.worldwind.util.xml.AbstractXMLEventParser
gov.nasa.worldwind.ogc.collada.ColladaAbstractObject
gov.nasa.worldwind.ogc.collada.ColladaTextureOrColor
- All Implemented Interfaces:
- XMLEventParser
public class ColladaTextureOrColor
- extends ColladaAbstractObject
Represents a COLLADA texture or color element and provides access to its contents.
| Methods inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser |
allocate, doAddCharacters, doAddEventAttribute, doAddEventContent, doParseEventAttributes, doParseEventContent, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parse, parseCharacterContent, removeField, setField, setField, setFields, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColladaTextureOrColor
public ColladaTextureOrColor(String ns)
- Construct an instance.
- Parameters:
ns - the qualifying namespace URI. May be null to indicate no namespace qualification.
getColor
public Color getColor()
- Indicates the value of the color field.
- Returns:
- The value of the color field, or null if the field is not set.
getTexture
public ColladaTexture getTexture()
- Indicates the value of the texture field.
- Returns:
- The value of the texture field, or null if the field is not set.
parseFloatArray
protected float[] parseFloatArray(String floatArrayString)
- Parse a string of floats into a float[]
- Parameters:
floatArrayString - String of floats, separated by whitespace.
- Returns:
- Parsed float[].