|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Abstract representation of the core requirements of a browser implementation regardless of the renderer used.
| Field Summary | |
static java.lang.String |
JAVA3D_ID
ID String of the Java3D renderer |
static int |
JAVA3D_RENDERER
Definition of the Java3D renderer |
static java.lang.String |
MOBILE_ID
ID String of the mobile renderer |
static int |
MOBILE_RENDERER
Definition of the OpenGL mobile device renderer |
static java.lang.String |
NULL_ID
ID String of the null renderer |
static int |
NULL_RENDERER
Definition of the null renderer |
static java.lang.String |
OPENGL_ID
ID String of the OpenGL renderer |
static int |
OPENGL_RENDERER
Definition of the OpenGL immersive renderer |
| Method Summary | |
void |
addCoreListener(BrowserCoreListener l)
Add a listener for browser core events. |
void |
addNavigationStateListener(NavigationStateListener l)
Add a listener for navigation state changes. |
void |
addSensorStatusListener(SensorStatusListener l)
Add a listener for sensor state changes. |
void |
addViewpointStatusListener(ViewpointStatusListener l)
Add a listener for viewpoint status changes. |
void |
dispose()
Notify the core that it can dispose all resources. |
void |
fitToWorld(boolean animated)
Move the user's location to see the entire world. |
float |
getCurrentFrameRate()
Get the current frame rate of the browser in frames per second. |
float |
getCurrentSpeed()
Get the current velocity of the bound viewpoint in meters per second. |
java.util.Map |
getDEFMappings()
Get the mapping of DEF names to the node instances that they represent. |
java.lang.String |
getDescription()
Get the description string currently used by the world. |
java.lang.String |
getIDString()
Get the ID string for this renderer. |
int |
getRendererType()
Get the type of renderer that implements the browser core. |
VRMLClock |
getVRMLClock()
Get the clock instance in use by the core. |
VRMLExecutionSpace |
getWorldExecutionSpace()
Convenience method to ask for the execution space that the world is currently operating in. |
java.lang.String |
getWorldURL()
Get the fully qualified URL of the currently loaded world. |
void |
removeCoreListener(BrowserCoreListener l)
Remove a browser core listener. |
void |
removeNavigationStateListener(NavigationStateListener l)
Remove a navigation state listener. |
void |
removeSensorStatusListener(SensorStatusListener l)
Remove a sensor state listener. |
void |
removeViewpointStatusListener(ViewpointStatusListener l)
Remove a viewpoint state listener. |
void |
sendURLFailEvent(java.lang.String msg)
Send to the core listeners the error message that a URL failed to load for some reason. |
void |
setDescription(java.lang.String desc)
Set the description of the current world. |
void |
setEventModelStatusListener(EventModelStatusListener l)
Set the eventModelStatus listener. |
void |
setLastRenderTime(long lastTime)
Set the last frame render time used for FPS calculations. |
void |
setNavigationMode(java.lang.String mode)
Set the navigation mode. |
void |
setScene(VRMLScene scene,
java.lang.String viewpoint)
Set the scene to use within this universe with the specifically named viewpoint. |
| Field Detail |
public static final int JAVA3D_RENDERER
public static final java.lang.String JAVA3D_ID
public static final int NULL_RENDERER
public static final java.lang.String NULL_ID
public static final int OPENGL_RENDERER
public static final java.lang.String OPENGL_ID
public static final int MOBILE_RENDERER
public static final java.lang.String MOBILE_ID
| Method Detail |
public int getRendererType()
public java.lang.String getIDString()
public VRMLClock getVRMLClock()
public void setScene(VRMLScene scene,
java.lang.String viewpoint)
scene - The new scene to load, or nullviewpoint - The viewpoint.description to bind to or null for defaultpublic java.util.Map getDEFMappings()
public VRMLExecutionSpace getWorldExecutionSpace()
public java.lang.String getDescription()
public void setDescription(java.lang.String desc)
desc - The description string to set.public float getCurrentSpeed()
public float getCurrentFrameRate()
public java.lang.String getWorldURL()
loadURL then the string will reflect the new URL. If
replaceWorld is called then the URL still represents the
original world.
public void addCoreListener(BrowserCoreListener l)
l - The listener to addpublic void removeCoreListener(BrowserCoreListener l)
l - The listener to removepublic void sendURLFailEvent(java.lang.String msg)
msg - The message to sendpublic void setNavigationMode(java.lang.String mode)
mode - The mode as defined in the NavigationInfo.type field.public void fitToWorld(boolean animated)
animated - Should the transistion be animated. Defaults to FALSE.public void setLastRenderTime(long lastTime)
lastTime - The time it took to render the last frame in milliseconds.public void setEventModelStatusListener(EventModelStatusListener l)
l - The listener. Null will clear it.public void addNavigationStateListener(NavigationStateListener l)
l - The listener to addpublic void removeNavigationStateListener(NavigationStateListener l)
l - The listener to removepublic void addSensorStatusListener(SensorStatusListener l)
l - The listener to addpublic void removeSensorStatusListener(SensorStatusListener l)
l - The listener to removepublic void addViewpointStatusListener(ViewpointStatusListener l)
l - The listener to addpublic void removeViewpointStatusListener(ViewpointStatusListener l)
l - The listener to removepublic void dispose()
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||