gov.nasa.worldwind.ogc.collada
Class ColladaUnit
java.lang.Object
gov.nasa.worldwind.util.xml.AbstractXMLEventParser
gov.nasa.worldwind.ogc.collada.ColladaAbstractObject
gov.nasa.worldwind.ogc.collada.ColladaUnit
- All Implemented Interfaces:
- XMLEventParser
public class ColladaUnit
- extends ColladaAbstractObject
Represents the COLLADA Unit element and provides access to its contents.
|
Method Summary |
Double |
getMeter()
Indicates the value of the "meter" attribute of the unit. |
| 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 |
ColladaUnit
public ColladaUnit(String ns)
- Construct an instance.
- Parameters:
ns - the qualifying namespace URI. May be null to indicate no namespace qualification.
getMeter
public Double getMeter()
- Indicates the value of the "meter" attribute of the unit. This attribute is a scaling factor that converts length
units in the COLLADA document to meters (1.0 for meters, 1000 for kilometers, etc.) See COLLADA spec pg. 5-18.
- Returns:
- The scaling factor, or null if none is defined.