Package 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.
-
-
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
Constructors Constructor Description ColladaEffect(java.lang.String ns)
Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Material
getMaterial()
Indicates the material specified by this effect.ColladaNewParam
getParam(java.lang.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, setNamespaceURI, setParent
-
-
-
-
Method Detail
-
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.
-
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(java.lang.String sid)
Find a NewParam item by scoped ID (the sid attribute of the param).- Overrides:
getParam
in classColladaAbstractParamContainer
- Parameters:
sid
- Id to search for.- Returns:
- The requested parameter, or null if no such parameter can be found.
-
-