Package 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.
-
-
Field Summary
-
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
-
-
Constructor Summary
Constructors Constructor Description ColladaTextureOrColor(java.lang.String ns)
Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Color
getColor()
Indicates the value of the color field.ColladaTexture
getTexture()
Indicates the value of the texture field.protected float[]
parseFloatArray(java.lang.String floatArrayString)
Parse a string of floats into a float[]-
Methods inherited from class gov.nasa.worldwind.ogc.collada.ColladaAbstractObject
getLocalExtent, getRoot
-
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, setNamespaceURI, setParent
-
-
-
-
Method Detail
-
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.
-
getColor
public java.awt.Color getColor()
Indicates the value of the color field.- Returns:
- The value of the color field, or null if the field is not set.
-
parseFloatArray
protected float[] parseFloatArray(java.lang.String floatArrayString)
Parse a string of floats into a float[]- Parameters:
floatArrayString
- String of floats, separated by whitespace.- Returns:
- Parsed float[].
-
-