NASA World Wind

gov.nasa.worldwind.ogc.collada
Class ColladaTextureOrColor

java.lang.Object
  extended by gov.nasa.worldwind.util.xml.AbstractXMLEventParser
      extended by gov.nasa.worldwind.ogc.collada.ColladaAbstractObject
          extended by 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
ColladaTextureOrColor(String ns)
          Construct an instance.
 
Method Summary
 Color getColor()
          Indicates the value of the color field.
 ColladaTexture getTexture()
          Indicates the value of the texture field.
protected  float[] parseFloatArray(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, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColladaTextureOrColor

public ColladaTextureOrColor(String ns)
Construct an instance.

Parameters:
ns - the qualifying namespace URI. May be null to indicate no namespace qualification.
Method Detail

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[].

NASA World Wind