|
Xj3D VRML/X3D Code API | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
See:
Description
| Packages | |
| org.web3d.browser | Renderer independent interfaces and classes that represent a VRML/X3D browser. |
| org.web3d.j3d.browser | Classes that are used to create or be a full browser. |
| org.web3d.j3d.device.mouse | Generic mouse input device. |
| org.web3d.j3d.loaders | Implementations of Java 3D file loaders for Web3D file formats. |
| org.web3d.net.content | Content handler implementation code to allow the Xj3D code to load inline data or run as a standalone system without needing to use other loader interfaces. |
| org.web3d.net.protocol | Protocol handler implementation code to allow the Xj3D code to load inline javascript and ecmascript scripts. |
| org.web3d.net.resolve | URN resolver implementation code to allow the Xj3D code to load any item that defines a URN in it's URL field (eg EXTERNPROTO and ImageTexture). |
| org.web3d.ogl.browser | Classes that are used to create or be a full browser panel embedded within an application. |
| org.web3d.ogl.device.mouse | Generic mouse input device. |
| org.web3d.ogl.loaders | Implementations of Aviatrix3D file loaders for Web3D file formats. |
| org.web3d.parser | Parser bootstrapping implementations for all available file formats from the Web3d consortium. |
| org.web3d.util | Utility classes that may be useful across a number of the packages. |
| org.web3d.vrml.device | Input devices. |
| org.web3d.vrml.export | Writes VRML and X3D worlds out to other encodings or formats. |
| org.web3d.vrml.export.compressors | Tools for compressing 3D content. |
| org.web3d.vrml.io | IO classes that are specifically useful for the internals of a VRML node implementation. |
| org.web3d.vrml.lang | Classes and interfaces to represent core components of the language structure. |
| org.web3d.vrml.nodes | Contains the interface definitions for the VRML standard These are seperated into directories based on the proposed X3D profiles mechanism. |
| org.web3d.vrml.nodes.content | Generic data representations used for describing data sources that will be used by the node implementations and runtime system. |
| org.web3d.vrml.nodes.loader | Implementation of a load manager and cache for externally referenced file within a scene. |
| org.web3d.vrml.nodes.proto | Utility classes to load and represent PROTO and EXTERNPROTO nodes. |
| org.web3d.vrml.nodes.runtime | Optional Utility classes to do runtime processing of the scenegraph (The event model). |
| org.web3d.vrml.parser | Abstract representations of parsers for both the file format and individual field values, regardless of encoding. |
| org.web3d.vrml.renderer | Common code between all renderers in the system. |
| org.web3d.vrml.renderer.common.browser | Classes for augmenting a full VRML browser implementation without being renderer-specific. |
| org.web3d.vrml.renderer.common.geospatial | Common classes for handling geospatial issues. |
| org.web3d.vrml.renderer.common.input | Classes that handle the VRML user interaction with a scenegraph but are independent of the renderer in use. |
| org.web3d.vrml.renderer.common.input.dis | DIS networking implementation. |
| org.web3d.vrml.renderer.common.input.movie | |
| org.web3d.vrml.renderer.common.nodes | Generic classes for describing common renderer-independent extensions to the base
interfaces in the org.web3d.vrml.nodes package. |
| org.web3d.vrml.renderer.j3d | General classes to allow the construction of a VRML scene graph that uses Java3D as the rendering mechanism. |
| org.web3d.vrml.renderer.j3d.browser | Classes needed to create a full VRML browser implementation based on the nodes and other structures available in the API. |
| org.web3d.vrml.renderer.j3d.input | Classes that handle the VRML user interaction with a scenegraph. |
| org.web3d.vrml.renderer.j3d.nodes | Generic classes for describing Java3D-specific extensions to the base
interfaces in the org.web3d.vrml.nodes package. |
| org.web3d.vrml.renderer.norender | Generic classes for null renderer implementation of the interfaces speced
in the org.web3d.vrml.nodes package. |
| org.web3d.vrml.renderer.norender.browser | Classes needed to create a full VRML browser implementation based on the nodes and other structures available in the API. |
| org.web3d.vrml.renderer.norender.input | Classes that handle the VRML user interaction with a scenegraph rendered using the null renderer. |
| org.web3d.vrml.renderer.norender.nodes | Generic classes for describing null renderer-specific extensions to the base
interfaces in the org.web3d.vrml.nodes package. |
| org.web3d.vrml.renderer.ogl | General classes to allow the construction of a VRML scene graph that uses OpenGL as the rendering mechanism. |
| org.web3d.vrml.renderer.ogl.browser | Classes needed to create a full VRML browser implementation based on the nodes and other structures available in the API. |
| org.web3d.vrml.renderer.ogl.input | Classes that handle the VRML user interaction with a scenegraph. |
| org.web3d.vrml.renderer.ogl.nodes | Generic classes for describing OpenGL renderer-specific extensions to the base
interfaces in the org.web3d.vrml.nodes package. |
| org.web3d.vrml.sav | Simple API for VRML Parsing Similar in design to SAX. |
| org.web3d.vrml.scripting | Abstract representations of information needed to implement scripting. |
| org.web3d.vrml.scripting.browser | Common representation of the functionality needed to implement the Browser class in its various incarnations for the different specifications and language bindings. |
| org.web3d.vrml.scripting.ecmascript | Implementation of glue code for scripts written in ECMAScript and Javascript. |
| org.web3d.vrml.scripting.external.buffer | This package serves the common needs of the EAI and external SAI classes. |
| org.web3d.vrml.scripting.external.eai | The classes in this package provide the implementations for the EAI 2.0 classes. |
| org.web3d.vrml.scripting.external.sai | The classes in this package provide the implementations for the external version of the SAI interfaces. |
| org.web3d.vrml.scripting.jsai | Implementation of glue code for scripts written in Java. |
| org.web3d.vrml.scripting.sai | Implementation of glue code for X3D SAI internal scripts written in Java. |
| org.web3d.vrml.util | Utility classes that are specifically useful for the internals of a VRML node implementation. |
| org.web3d.x3d.dom.swing | Classes to represent the X3D DOM information with Swing components. |
| org.web3d.x3d.jaxp | Classes used to build parsers of the XML-encoding to be used with the JAXP optional package. |
| org.web3d.x3d.sai | The core classes for defining access through both external and internal means to an X3D browser and its contents through the X3D SAI (ISO/IEC 17775-2) interface. |
| vrml | Classes defined by the VRML97 specification Annex C that provide integration of Java-based scripts into the VRML runtime environment. |
| vrml.eai | The core classes for defining access to a VRML browser and its contents through the EAI2 (ISO VRML97 Part 2) interface. |
| vrml.eai.event | The classes and interfaces for events that can be generated by and EAI2 capable browser. |
| vrml.eai.field | The classes for defining field interfaces to nodes. |
| vrml.field | Classes defined by the VRML97 specification Annex C that define the types of field access that can be given to a node. |
| vrml.node | Classes defined by the VRML97 specification Annex C that define the types of nodes that can be available in the scripting. |
Xj3D is a series of libraries that form a toolkit that can be used to load and render VRML97 and X3D files.
The aim of the codebase is to provide a series of easily separable components to enable VRML and X3D content either as a full browser, static geometry or even as a component of a bigger application. The major goal of the code is to provide a highly flexible set of libraries that you may take and use to generate renderable content. If you combine them all together you could create a complete browser that we intend to be spec-conformant. The codebase itself is not a VRML/X3D browser, although you can create one from this code (see some of the example and apps directories along with this distribution for an idea how).
The code is broken into 5 major sections:
When you start to use the code in an application, it will not automatically allow you to do everything. For example, standard Java 3D loaders do not support the idea of scripting or of Inline content. To deal with this, you must also perform some auxillary support work so that everything works as expected.
Note: In general, we recommend that you only use the SAI classes to interact with Xj3D. By far the majority of the applications do not need anything more complex than that interface.
To make life easier for our implementation, we have made use of quite a number of 3RD party libraries to build a fully capable browser. The major reason for this is that the inbuilt Java libraries are pretty terrible for the requirements of a VRML browser. Firstly we need full URI support - Java does not handle URNs that are used by the Universal Media libraries. Next, the image loading of standard Java is very bloated, consuming way too much memory. Then, to transport them across to the texture mapping used we have to make several copies of the image each time, so we bring in a library for more efficient image handling.
The next step is to use local libraries for specific areas such as Java 3D support. These libraries make a lot of things simpler by allowing us to not have to code them again. There are many similarities between VRML and the 3D graphics scenegraph APIs and these libraries act as the translator between the two systems.
Internally the code does not connect a lot of the parts together. For example,
Inlines are not automatically loaded as there are cases where you don't want
the code to handle them. You may also want to specifically handle different
content. Therefore, the Inlines are only loaded once you register the
appropriate handlers with the URI system. We won't detail that here, but
refer you to the applicable packages - org.web3d.net.content and
org.web3d.vrml.nodes.loader. There are a collection of properties
and factories that need to be set if you want loading of external files
like textures, scripts and Inlines to work correctly.
There are two ways of controlling the runtime configuration of Xj3D. Apart from providing your own implementation of the various toolkits, the standard Java mechanisms of properties files and system properties also apply.
Property files are used to control large collections of properties. The following properties files are used by the system (path information is relative to the CLASSPATH as per System.getProperty()):
config/2.0/spec/vrml.propertiesBrowserFactory
config/3.x/spec/x3d.propertiesBrowserFactory
config/3.x/XMLcontainerfields.propsConfiguration files are all kept in a directory
config/spec_version with separate sub directories. These can
be overridden by the user as needed by providing their own replica directory
structure that is locatable within the CLASSPATH.
The codebase makes reasonable use of system properties to allow the modification of its behaviour. These properties are sprinkled liberally about the code, making them sometimes hard to find. This is a summary of all those properties. Please be aware that these will need to be set before you run any code from this library because most of them will be used during the construction phase of any class.
org.web3d.vrml.nodes.loader.threadsorg.web3d.vrml.parser.field.factoryFieldParserFactory
interface, which is used for parsing individual field values.
org.web3d.vrml.parser.file.factoryVRMLParserFactory
interface, which is used for parsing files.
org.web3d.xj3d.script.loader.classScriptLoader
interface, which is used for loading scripts.
org.web3d.xj3d.script.manager.classScriptManager
interface, which is used for managing scripts.
org.web3d.xj3d.file.loader.classExternalLoadManager interface,
which is used for loading content other than scripts.
org.web3d.xj3d.router.manager.classRouteManager
interface, which is used for managing routes.
org.web3d.xj3d.router.factory.classRouterFactory
interface, which is used for creating routers.
org.web3d.xj3d.frame.state.classFrameStateManager
interface, which is used for managing per-frame state.
org.web3d.xj3d.sensor.manager.classJ3DSensorManager interface, which
is used for managing sensors. There are renderer-specific sub-interfaces
of this interface which the implementing class must also adhere to.
org.web3d.xj3d.eventmodel.evaluator.classEventModelEvaluator interface,
which is used for runing the event model.
org.web3d.vrml.nodes.staticgroup.disposeorg.web3d.vrml.nodes.staticgroup.compactorg.web3d.vrml.nodes.fontstyle.font.sizeorg.web3d.vrml.renderer.common.nodes.shape.rescaleorg.web3d.vrml.renderer.common.nodes.shape.useTextureCacheorg.web3d.vrml.renderer.common.nodes.shape.maxTextureSizeorg.web3d.vrml.renderer.common.nodes.shape.useMipMapsorg.web3d.vrml.renderer.common.nodes.shape.anisotropicDegreeorg.web3d.vrml.renderer.ogl.nodes.hanim.allowHardwareHumanoidXj3D is a huge project that is a collborative effort in more ways than one. Where possible, we like to build on top of the work of others. These are the projects and libraries that we make use of in order to build this toolkit.
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||