NASA World Wind

gov.nasa.worldwind.ogc.collada
Class ColladaEffect

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.ColladaAbstractParamContainer
              extended by gov.nasa.worldwind.ogc.collada.ColladaEffect
All Implemented Interfaces:
XMLEventParser

public class ColladaEffect
extends ColladaAbstractParamContainer

Represents the COLLADA effect element and provides access to its contents.


Field Summary
 
Fields inherited from class gov.nasa.worldwind.ogc.collada.ColladaAbstractParamContainer
newParams
 
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
 
Constructor Summary
ColladaEffect(String ns)
          Construct an instance.
 
Method Summary
 Material getMaterial()
          Indicates the material specified by this effect.
 ColladaNewParam getParam(String sid)
          Find a NewParam item by scoped ID (the sid attribute of the param).
 ColladaProfileCommon getProfileCommon()
          Indicates the value of the profile_COMMON field.
 ColladaTexture getTexture()
          Indicates the texture specified by this effect.
 
Methods inherited from class gov.nasa.worldwind.ogc.collada.ColladaAbstractParamContainer
setField
 
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, setFields, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColladaEffect

public ColladaEffect(String ns)
Construct an instance.

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

getMaterial

public Material getMaterial()
Indicates the material specified by this effect. Material is specified by the shader in the profile_COMMON element.

Returns:
The material for this effect, or null if the material cannot be resolved.

getParam

public ColladaNewParam getParam(String sid)
Find a NewParam item by scoped ID (the sid attribute of the param).

Overrides:
getParam in class ColladaAbstractParamContainer
Parameters:
sid - Id to search for.
Returns:
The requested parameter, or null if no such parameter can be found.

getProfileCommon

public ColladaProfileCommon getProfileCommon()
Indicates the value of the profile_COMMON field.

Returns:
The value of the profile_COMMON field, or null if the field is not set.

getTexture

public ColladaTexture getTexture()
Indicates the texture specified by this effect. The texture is specified by the diffuse field of the shader specified by the profile_COMMON element.

Returns:
The texture specified by this effect, or null if the texture cannot be resolved.

NASA World Wind