NASA World Wind

gov.nasa.worldwind.ogc.collada
Class ColladaAbstractShader

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.ColladaAbstractShader
All Implemented Interfaces:
XMLEventParser
Direct Known Subclasses:
ColladaLambert, ColladaPhong

public class ColladaAbstractShader
extends ColladaAbstractObject

Base class for COLLADA shaders.


Field Summary
 
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
 
Constructor Summary
protected ColladaAbstractShader(String namespaceURI)
          Construct an instance.
 
Method Summary
 ColladaTextureOrColor getAmbient()
          Indicates the shader's ambient parameter.
 ColladaTextureOrColor getDiffuse()
          Indicates the shader's diffuse parameter.
 ColladaTextureOrColor getEmission()
          Indicates the shader's emission parameter.
 ColladaTextureOrColor getSpecular()
          Indicates the shader's specular parameter.
 
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

ColladaAbstractShader

protected ColladaAbstractShader(String namespaceURI)
Construct an instance.

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

getAmbient

public ColladaTextureOrColor getAmbient()
Indicates the shader's ambient parameter.

Returns:
The ambient parameter, or null if none is set.

getDiffuse

public ColladaTextureOrColor getDiffuse()
Indicates the shader's diffuse parameter.

Returns:
The diffuse parameter, or null if none is set.

getEmission

public ColladaTextureOrColor getEmission()
Indicates the shader's emission parameter.

Returns:
The emission parameter, or null if none is set.

getSpecular

public ColladaTextureOrColor getSpecular()
Indicates the shader's specular parameter.

Returns:
The specular parameter, or null if none is set.

NASA World Wind