
src.gov.nasa.worldwind.ogc.collada.package.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worldwindx Show documentation
Show all versions of worldwindx Show documentation
World Wind is a collection of components that interactively display 3D geographic information within Java applications or applets.
COLLADA Parser Package
Provides classes for parsing COLLADA files and streams.
How to Parse a COLLADA File or Stream
-
Create a {@link gov.nasa.worldwind.ogc.collada.ColladaRoot} via one of its constructors, such as {@link
gov.nasa.worldwind.ogc.collada.ColladaRoot#ColladaRoot(java.io.File)}, passing the COLLADA source to the
constructor. A
ColladaRoot
provides access to the COLLADA contents. The source can be either a
file, an input stream, or a URL.
-
Call {@link gov.nasa.worldwind.ogc.collada.ColladaRoot#parse(Object[])} to parse the document.
-
The
ColladaRoot
class provides accessor methods for the COLLADA
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 {@link
gov.nasa.worldwind.util.xml.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 {@link
gov.nasa.worldwind.ogc.collada.ColladaResourceResolver}.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy