Package gov.nasa.worldwind.ogc.collada
Provides classes for parsing COLLADA files and streams.
How to Parse a COLLADA File or Stream
-
Create a
ColladaRoot
via one of its constructors, such asColladaRoot(java.io.File)
, passing the COLLADA source to the constructor. AColladaRoot
provides access to the COLLADA contents. The source can be either a file, an input stream, or a URL. -
Call
ColladaRoot.parse(Object[])
to parse the document. -
The
ColladaRoot
class provides accessor methods for theCOLLADA
element of the COLLADA file, its root. The content includes the element's asset and scene elements. Once the root is parsed, use these methods to obtain objects representing these elements, and use the accessor methods of those objects in turn to obtain their contents. - Each COLLADA element defined in the COLLADA specification version 1.4.1 has a corresponding class provided in this package. Each of those classes contains methods to obtain the element's contents as defined by the specification.
Extending the Classes
This package's classes are designed for easy behavior modification and replacement, and for straightforward addition
of operations to be performed during parsing. See the description of AbstractXMLEventParser
for further information.
Relative References
By default, relative references will be resolved relative to the location of the COLLADA file that includes the
reference. However, this behavior can be overridden by providing the ColladaRoot with a ColladaResourceResolver
.
-
Interface Summary Interface Description ColladaConstants Constants related to COLLADA documents.ColladaResourceResolver Interface for resolving paths relative to a COLLADA document. -
Class Summary Class Description ColladaAbstractGeometry Base class for COLLADA geometry (lines and triangles).ColladaAbstractInstance<T> Represents the COLLADA Instance element.ColladaAbstractObject Base class for COLLADA parser classes.ColladaAbstractParamContainer Base class for COLLADA elements that hold parameters.ColladaAbstractShader Base class for COLLADA shaders.ColladaAccessor Represents the COLLADA accessor element and provides access to its contents.ColladaAsset Represents the COLLADA asset element and provides access to its contents.ColladaBind Represents the COLLADA bind element and provides access to its contents.ColladaBindMaterial Represents the COLLADA bind_material element, and provides access to its contents.ColladaBindVertexInput Represents the COLLADA bind_vertex_input element and provides access to its contents.ColladaColor Represents the COLLADA color element and provides access to its contents.ColladaContributor Represents the COLLADA contributor element and provides access to its contents.ColladaEffect Represents the COLLADA effect element and provides access to its contents.ColladaExtra Represents the COLLADA extra element, and provides access to its contents.ColladaFloatArray Represents the COLLADA float_array element and provides access to its contents.ColladaFloatOrParam Represents either a floating point number, or a param element.ColladaFormat Represents the COLLADA format element and provides access to its contents.ColladaGeometry Represents the COLLADA geometry element and provides access to its contents.ColladaImage Represents the COLLADA image element and provides access to its contents.ColladaInput Represents the COLLADA input element and provides access to its contents.ColladaInstanceEffect Represents the COLLADA instance_effect element and provides access to its contents.ColladaInstanceGeometry Represents the COLLADA instance_geometry element and provides access to its contents.ColladaInstanceMaterial Represents the COLLADA instance_material element and provides access to its contents.ColladaInstanceNode Represents the COLLADA instance_node element and provides access to its contents.ColladaInstanceVisualScene Represents the COLLADA instance_visual_scene element and provides access to its contents.ColladaLambert Represents the COLLADA Lambert shader element and provides access to its contents.ColladaLibrary<T> Represents the COLLADA Library element and provides access to its contents.ColladaLines Represents the COLLADA lines element and provides access to its contents.ColladaMaterial Represents the COLLADA material element and provides access to its contents.ColladaMatrix Represents the COLLADA matrix element and provides access to its contents.ColladaMesh Represents the COLLADA mesh element and provides access to its contents.ColladaNewParam Represents the COLLADA newparam element and provides access to its contents.ColladaNode Represents the COLLADA node element and provides access to its contents.ColladaP Represents the COLLADA p element and provides access to its contents.ColladaParam Represents the COLLADA param element and provides access to its contents.ColladaParserContext The parser context for Collada documents.ColladaPhong Represents the COLLADA phong shader element and provides access to its contents.ColladaProfileCommon Represents the COLLADA profile_COMMON element and provides access to its contents.ColladaRoot Parses a COLLADA document and provides access to its contents.ColladaSampler2D Represents the COLLADA sampler2D element and provides access to its contents.ColladaScene Represents the COLLADA scene element and provides access to its contents.ColladaSource Represents the COLLADA source element and provides access to its contents.ColladaSurface Represents the COLLADA surface element and provides access to its contents.ColladaTechnique Represents the COLLADA technique element and provides access to its contents.ColladaTechniqueCommon Represents the COLLADA technique_common element and provides access to its contents.ColladaTexture Represents the COLLADA texture element and provides access to its contents.ColladaTextureOrColor Represents a COLLADA texture or color element and provides access to its contents.ColladaTriangles Represents the COLLADA triangles element and provides access to its contents.ColladaUnit Represents the COLLADA Unit element and provides access to its contents.ColladaUnsupported Parser class for COLLADA elements that are not used by WorldWind.ColladaVertices Represents the COLLADA vertices element and provides access to its contents.ColladaVisualScene Represents the COLLADA visual_scene element and provides access to its contents.