|
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.scripting.sai.JavaSAIScriptWrapper
public class JavaSAIScriptWrapper
A wrapper class used to convert between the Xj3D implementation specific details and the X3D spec requirements for a script.
Note that as this class does not wrap VRML97 scripts, the class does not need to take an instance of VRMLScriptNodeType as we cannot change the field listing dynamically.
| Constructor Summary | |
|---|---|
JavaSAIScriptWrapper(X3DScriptImplementation sc)
Create a new script wrapper for the given script class |
|
| Method Summary | |
|---|---|
void |
childRequiresAccessStateChange(boolean state)
Notify that the child field now requires access to be valid or not valid as the case may be from the various flags. |
void |
eventsProcessed()
Notification that the eventsProcessed() functionality should be called on the script code now. |
void |
initialize(VRMLScriptNodeType node)
Initialise the underlying script, based on the surrounding node's details. |
boolean |
prepareEvents()
Call the prepareEvents() method on the script, if it has one. |
void |
queueEvent(int type,
java.lang.String name,
boolean value)
Queue a changed SFBool event value ready for processing by the script. |
void |
queueEvent(int type,
java.lang.String name,
boolean[] value,
int numValid)
Queue a changed MFBool event value ready for processing by the script. |
void |
queueEvent(int type,
java.lang.String name,
double value)
Queue a changed SFTime event value ready for processing by the script. |
void |
queueEvent(int type,
java.lang.String name,
double[] value,
int numValid)
Queue a changed MFTime or MFDouble event value ready for processing by the script. |
void |
queueEvent(int type,
java.lang.String name,
float value)
Queue a changed SFFloat event value ready for processing by the script. |
void |
queueEvent(int type,
java.lang.String name,
float[] value,
int numValid)
Queue a changed event value ready for processing by the script. |
void |
queueEvent(int type,
java.lang.String name,
int value)
Queue a changed SFInt32 event value ready for processing by the script. |
void |
queueEvent(int type,
java.lang.String name,
int[] value,
int numValid)
Queue a changed MFInt32 event value ready for processing by the script. |
void |
queueEvent(int type,
java.lang.String name,
long value)
Queue a changed SFLong event value ready for processing by the script. |
void |
queueEvent(int type,
java.lang.String name,
long[] value,
int numValid)
Queue a changed MFLong event value ready for processing by the script. |
void |
queueEvent(int type,
java.lang.String name,
java.lang.String value)
Queue a changed SFString event value ready for processing by the script. |
void |
queueEvent(int type,
java.lang.String name,
java.lang.String[] value,
int numValid)
Queue a changed MFString event value ready for processing by the script. |
void |
queueEvent(int type,
java.lang.String name,
VRMLNodeType value)
Queue a changed SFNode event value ready for processing by the script. |
void |
queueEvent(int type,
java.lang.String name,
VRMLNodeType[] value,
int numValid)
Queue a changed MFNode event value ready for processing by the script. |
boolean |
sendEvents()
Send the events to the real script now, and then call eventsProcessed. |
void |
setTimestamp(double time)
Set the timestamp that we shall start the next queue with. |
void |
shutdown()
Called when the Script node is deleted. |
void |
updateEventOuts()
Process the eventOuts of the script now. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaSAIScriptWrapper(X3DScriptImplementation sc)
sc - The script that this class is wrapping| Method Detail |
|---|
public void initialize(VRMLScriptNodeType node)
initialize in interface ScriptWrappernode - The working node from the live scene graphpublic void setTimestamp(double time)
setTimestamp in interface ScriptWrappertime - The timestamp to use (in seconds)public boolean prepareEvents()
prepareEvents in interface ScriptWrapper
public void queueEvent(int type,
java.lang.String name,
int value)
queueEvent in interface ScriptWrappertype - The type of field to processname - The field name to processvalue - The new value of the field
public void queueEvent(int type,
java.lang.String name,
int[] value,
int numValid)
queueEvent in interface ScriptWrappertype - The type of field to processname - The field name to processvalue - The new value of the fieldnumValid - The number of valid values to copy from the array
public void queueEvent(int type,
java.lang.String name,
long value)
queueEvent in interface ScriptWrappertype - The type of field to processname - The field name to processvalue - The new value of the field
public void queueEvent(int type,
java.lang.String name,
long[] value,
int numValid)
queueEvent in interface ScriptWrappertype - The type of field to processname - The field name to processvalue - The new value of the fieldnumValid - The number of valid values to copy from the array
public void queueEvent(int type,
java.lang.String name,
boolean value)
queueEvent in interface ScriptWrappertype - The type of field to processname - The field name to processvalue - The new value of the field
public void queueEvent(int type,
java.lang.String name,
boolean[] value,
int numValid)
queueEvent in interface ScriptWrappertype - The type of field to processname - The field name to processvalue - The new value of the fieldnumValid - The number of valid values to copy from the array
public void queueEvent(int type,
java.lang.String name,
float value)
queueEvent in interface ScriptWrappertype - The type of field to processname - The field name to processvalue - The new value of the field
public void queueEvent(int type,
java.lang.String name,
float[] value,
int numValid)
queueEvent in interface ScriptWrappertype - The type of field to processname - The field name to processvalue - The new value of the fieldnumValid - The number of valid values to copy from the array
public void queueEvent(int type,
java.lang.String name,
double value)
queueEvent in interface ScriptWrappertype - The type of field to processname - The field name to processvalue - The new value of the field
public void queueEvent(int type,
java.lang.String name,
double[] value,
int numValid)
queueEvent in interface ScriptWrappertype - The type of field to processname - The field name to processvalue - The new value of the fieldnumValid - The number of valid values to copy from the array
public void queueEvent(int type,
java.lang.String name,
java.lang.String value)
queueEvent in interface ScriptWrappertype - The type of field to processname - The field name to processvalue - The new value of the field
public void queueEvent(int type,
java.lang.String name,
java.lang.String[] value,
int numValid)
queueEvent in interface ScriptWrappertype - The type of field to processname - The field name to processvalue - The new value of the fieldnumValid - The number of valid values to copy from the array
public void queueEvent(int type,
java.lang.String name,
VRMLNodeType value)
queueEvent in interface ScriptWrappertype - The type of field to processname - The field name to processvalue - The new value of the field
public void queueEvent(int type,
java.lang.String name,
VRMLNodeType[] value,
int numValid)
queueEvent in interface ScriptWrappertype - The type of field to processname - The field name to processvalue - The new value of the fieldnumValid - The number of valid values to copy from the arraypublic boolean sendEvents()
sendEvents in interface ScriptWrapperpublic void updateEventOuts()
updateEventOuts in interface ScriptWrapperpublic void eventsProcessed()
eventsProcessed in interface ScriptWrapperpublic void shutdown()
shutdown in interface ScriptWrapperpublic void childRequiresAccessStateChange(boolean state)
childRequiresAccessStateChange in interface FieldAccessListenerstate - true if access should be currently valid.
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||