|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.web3d.vrml.renderer.ogl.browser.PerFrameManager
public abstract class PerFrameManager
The thread that looks after the update issues of every frame.
Even as this is a thread, it is not automatically started. The user is required to start it separately.
| Field Summary | |
|---|---|
protected BrowserCore |
browser
The BrowserCore holding this manager. |
protected long |
currentWallTime
The current wall clock time that we are sending to people |
protected ErrorReporter |
errorReporter
Reporter instance for handing out errors |
protected EventModelEvaluator |
eventModel
The event model handler |
protected long |
lastWallTime
The last clock tick. |
| Constructor Summary | |
|---|---|
PerFrameManager(EventModelEvaluator eme,
BrowserCore core,
long timeZero)
Construct a new manager for the given scene. |
|
| Method Summary | |
|---|---|
void |
clockTick(long time)
Notification that now is the time to evaluate the next time stamp. |
void |
setErrorReporter(ErrorReporter reporter)
Register an error reporter with the engine so that any errors generated by the loading of script code can be reported in a nice, pretty fashion. |
void |
setEventModelStatusListener(EventModelStatusListener l)
Set the eventModelStatus listener. |
void |
shutdown()
Shut down the frame thread so that the code may exit. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ErrorReporter errorReporter
protected EventModelEvaluator eventModel
protected long currentWallTime
protected long lastWallTime
protected BrowserCore browser
| Constructor Detail |
|---|
public PerFrameManager(EventModelEvaluator eme,
BrowserCore core,
long timeZero)
throws java.lang.IllegalArgumentException
core - The browser representation to send events toeme - The evaluator to usetimeZero - The time to set as the initial zero time
java.lang.IllegalArgumentException| Method Detail |
|---|
public void setEventModelStatusListener(EventModelStatusListener l)
l - The listener. Null will clear it.public void clockTick(long time)
time - The timestamp to use in millisecondspublic void setErrorReporter(ErrorReporter reporter)
reporter - The instance to use or nullpublic void shutdown()
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||