Package org.xj3d.ui.construct
Class Construct
java.lang.Object
org.xj3d.ui.construct.Construct
- All Implemented Interfaces:
ConstructBuilder
- Direct Known Subclasses:
OGLConstruct
The Construct is an abstract class that provides a flexible container
and builder for instantiating and configuring the objects that provide
the infrastructure of an X3D browser.
The Construct provides access to the management and rendering objects, but does not define a user interface. It is left to application specific sub-classes to provide a user interface.
The Construct provides access to the management and rendering objects, but does not define a user interface. It is left to application specific sub-classes to provide a user interface.
- Version:
- $Revision: 1.6 $
- Author:
- Rex Melton
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
Value indicating the anisotropic degree setting to be configured.protected int
Value indicating the antialias samples setting to be configured.protected String
Toolkit specific content handler factory classprotected String
The external file loader classprotected BrowserCore
The browser coreprotected String
The DIS native protocol handler classprotected DeviceFactory
The device factory for pointing and keysensor devices associated with the rendering surfaceprotected boolean
Flag indicating that double buffering should be used.protected org.j3d.util.ErrorReporter
The error reporting mechanismprotected String
The event model manager classprotected EventModelEvaluator
THE event model managerprotected ExternalBrowser
The ExternalBrowser instanceprotected String
The hanim manager classprotected NodeManager
The manager for HAnim handlingprotected boolean
Flag indicating that hardware acceleration should be used.protected String
The layer manager factory classprotected boolean
Flag indicating that the renderer component should be lightweight.protected ClassLoadUtilities
Utilities for loading classesprotected ContentLoadManager
The manager for loading external contentprotected String
The network manager classprotected NetworkManager
The manager for network handlingprotected OriginManager
The origin managerprotected String
The particle manager classprotected NodeManager
The manager for particle handlingprotected String
The physics manager classprotected NodeManager
The manager for physics handlingprotected String
The picking manager classprotected PickingManager
The manager for picking sensorsprotected int
Constant identifying the rendererprotected String
String identifying the rendererprotected RouteManager
The manager for route propagationprotected String
The router factory classprotected String
The route manager classprotected SceneBuilderFactory
The scene builder factoryprotected String
The script loader classprotected String
The script manager classprotected ScriptLoader
The script loaderprotected ScriptManager
The script managerprotected String
The sensor manager classprotected SensorManager
The manager for input and sensor handlingprotected String
The frame state manager classprotected FrameStateManager
The frame state managerprotected boolean
Flag indicating that the browser instance should support VRML97.protected boolean
Flag indicating that the browser instance should support X3D.protected String
The time sensor manager classprotected TimeSensorManager
The manager for time sensor handlingprotected boolean
Flag indicating that MipMaps should be generated.protected ViewpointManager
The viewpoint managerprotected String
The VRML97 Java scripting engine classprotected String
The VRML97 Javascript scripting engine classprotected WorldLoaderManager
The manager of the world loadersprotected String
The X3D Javascript scripting engine classprotected String
The X3D Java scripting engine class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildAll()
Build a 'default' configuration.protected abstract void
Create the audio rendering devicevoid
buildAuthoring
(CursorManager cursorManager) Create the external authoring interface.protected abstract void
Create the browser coreprotected abstract void
Create the graphics rendering devicevoid
Create the xj3d managersvoid
Create the networking properties and objects needed to load content.void
Create the rendering capabilitiesvoid
Create the rendering devicesprotected abstract void
Create the scene builder factoryvoid
Create the xj3d scripting enginesReturn the content load manager.org.j3d.util.ErrorReporter
Return the error reporter.Return the event model evaluator.Return the frame state manager.abstract Object
Return the rendering surfaceReturn the origin manager.Return the route manager.Return the script loader.Return the script manager.Return the sensor manager.Return the time sensor manager.Return the viewpoint manager.Return the world loader manager.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xj3d.ui.construct.ConstructBuilder
buildInterfaceDevices, buildRenderer
-
Field Details
-
DEFAULT_DIS_PROTOCOL_HANDLER
The DIS native protocol handler class -
NETWORK_MANAGER
The network manager class -
HANIM_MANAGER
The hanim manager class -
PHYSICS_MANAGER
The physics manager class -
PARTICLE_MANAGER
The particle manager class -
SCRIPT_LOADER
The script loader class -
SCRIPT_MANAGER
The script manager class -
CONTENT_LOADER
The external file loader class -
ROUTER_FACTORY
The router factory class -
ROUTER_MANAGER
The route manager class -
STATE_MANAGER
The frame state manager class -
PICKING_MANAGER
The picking manager class -
SENSOR_MANAGER
The sensor manager class -
EVENT_MODEL
The event model manager class -
TIME_SENSOR_MANAGER
The time sensor manager class -
VRML_JAVA_SCRIPT_ENGINE
The VRML97 Java scripting engine class -
VRML_JAVASCRIPT_SCRIPT_ENGINE
The VRML97 Javascript scripting engine class -
X3D_JAVA_SCRIPT_ENGINE
The X3D Java scripting engine class -
X3D_ECMASCRIPT_SCRIPT_ENGINE
The X3D Javascript scripting engine class -
LAYER_MANAGER_FACTORY
The layer manager factory class -
CONTENT_HANDLER_FACTORY
Toolkit specific content handler factory class -
renderer
protected int rendererConstant identifying the renderer -
renderer_id
String identifying the renderer -
supportVRML
protected boolean supportVRMLFlag indicating that the browser instance should support VRML97. Default value is true. -
supportX3D
protected boolean supportX3DFlag indicating that the browser instance should support X3D. Default value is true. -
lightweightRenderer
protected boolean lightweightRendererFlag indicating that the renderer component should be lightweight. Default value is false. -
useMipMaps
protected boolean useMipMapsFlag indicating that MipMaps should be generated. Default value is true. -
doubleBuffered
protected boolean doubleBufferedFlag indicating that double buffering should be used. Default value is true. -
hardwareAccelerated
protected boolean hardwareAcceleratedFlag indicating that hardware acceleration should be used. Default value is true. -
anisotropicDegree
protected int anisotropicDegreeValue indicating the anisotropic degree setting to be configured. Default value is 0, which disables anisotropic filtering. -
antialiasSamples
protected int antialiasSamplesValue indicating the antialias samples setting to be configured. Default value is 0, which disables antialiasing. -
deviceFactory
The device factory for pointing and keysensor devices associated with the rendering surface -
core
The browser core -
scriptManager
The script manager -
scriptLoader
The script loader -
stateManager
The frame state manager -
loadManager
The manager for loading external content -
networkManager
The manager for network handling -
hanimManager
The manager for HAnim handling -
physicsManager
The manager for physics handling -
particleManager
The manager for particle handling -
routeManager
The manager for route propagation -
sensorManager
The manager for input and sensor handling -
timeSensorManager
The manager for time sensor handling -
pickingManager
The manager for picking sensors -
eventModel
THE event model manager -
worldLoader
The manager of the world loaders -
viewpointManager
The viewpoint manager -
sceneBuilderFactory
The scene builder factory -
originManager
The origin manager -
externalBrowser
The ExternalBrowser instance -
errorReporter
protected org.j3d.util.ErrorReporter errorReporterThe error reporting mechanism -
loader
Utilities for loading classes
-
-
Constructor Details
-
Construct
protected Construct()Restricted Constructor -
Construct
protected Construct(org.j3d.util.ErrorReporter reporter) Restricted Constructor- Parameters:
reporter
- The error reporter
-
-
Method Details
-
getGraphicsObject
Return the rendering surface- Returns:
- The rendering surface
-
buildAll
public void buildAll()Description copied from interface:ConstructBuilder
Build a 'default' configuration.- Specified by:
buildAll
in interfaceConstructBuilder
-
buildRenderingCapabilities
public void buildRenderingCapabilities()Description copied from interface:ConstructBuilder
Create the rendering capabilities- Specified by:
buildRenderingCapabilities
in interfaceConstructBuilder
-
buildRenderingDevices
public void buildRenderingDevices()Description copied from interface:ConstructBuilder
Create the rendering devices- Specified by:
buildRenderingDevices
in interfaceConstructBuilder
-
buildGraphicsRenderingDevice
protected abstract void buildGraphicsRenderingDevice()Create the graphics rendering device -
buildAudioRenderingDevice
protected abstract void buildAudioRenderingDevice()Create the audio rendering device -
buildManagers
public void buildManagers()Description copied from interface:ConstructBuilder
Create the xj3d managers- Specified by:
buildManagers
in interfaceConstructBuilder
-
buildBrowserCore
protected abstract void buildBrowserCore()Create the browser core -
buildSceneBuilderFactory
protected abstract void buildSceneBuilderFactory()Create the scene builder factory -
buildScriptEngines
public void buildScriptEngines()Description copied from interface:ConstructBuilder
Create the xj3d scripting engines- Specified by:
buildScriptEngines
in interfaceConstructBuilder
-
buildNetworkCapabilities
public void buildNetworkCapabilities()Description copied from interface:ConstructBuilder
Create the networking properties and objects needed to load content.- Specified by:
buildNetworkCapabilities
in interfaceConstructBuilder
-
buildAuthoring
Create the external authoring interface. Only X3D SAI is configurable.- Parameters:
cursorManager
- The CursorManager instance
-
getErrorReporter
public org.j3d.util.ErrorReporter getErrorReporter()Return the error reporter.- Returns:
- The error reporter.
-
getScriptManager
-
getScriptLoader
-
getViewpointManager
Return the viewpoint manager.- Returns:
- The viewpoint manager.
-
getContentLoadManager
Return the content load manager.- Returns:
- The content load manager.
-
getRouteManager
-
getSensorManager
-
getOriginManager
-
getTimeSensorManager
Return the time sensor manager.- Returns:
- The time sensor manager.
-
getWorldLoaderManager
Return the world loader manager.- Returns:
- The world loader manager.
-
getFrameStateManager
Return the frame state manager.- Returns:
- The frame state manager.
-
getEventModelEvaluator
Return the event model evaluator.- Returns:
- The event model evaluator.
-
getBrowserCore
-