gov.nasa.worldwind.ogc.collada
Class ColladaEffect
java.lang.Object
gov.nasa.worldwind.util.xml.AbstractXMLEventParser
gov.nasa.worldwind.ogc.collada.ColladaAbstractObject
gov.nasa.worldwind.ogc.collada.ColladaAbstractParamContainer
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.
| 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 |
ColladaEffect
public ColladaEffect(String ns)
- Construct an instance.
- Parameters:
ns - the qualifying namespace URI. May be null to indicate no namespace qualification.
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.