|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScriptWrapper
A wrapper abstract interface used to convert between the Xj3D implementation specific details and the spec requirements for a script.
| Method Summary | |
|---|---|
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 or SFDouble 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. |
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. |
| Method Detail |
|---|
void initialize(VRMLScriptNodeType node)
node - The implementation node describing the scriptvoid setTimestamp(double time)
time - The timestamp to use (in seconds)boolean prepareEvents()
void queueEvent(int type,
java.lang.String name,
int value)
type - The type of field to processname - The field name to processvalue - The new value of the field
void queueEvent(int type,
java.lang.String name,
int[] value,
int numValid)
type - 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
void queueEvent(int type,
java.lang.String name,
long value)
type - The type of field to processname - The field name to processvalue - The new value of the field
void queueEvent(int type,
java.lang.String name,
long[] value,
int numValid)
type - 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
void queueEvent(int type,
java.lang.String name,
boolean value)
type - The type of field to processname - The field name to processvalue - The new value of the field
void queueEvent(int type,
java.lang.String name,
boolean[] value,
int numValid)
type - 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
void queueEvent(int type,
java.lang.String name,
float value)
type - The type of field to processname - The field name to processvalue - The new value of the field
void queueEvent(int type,
java.lang.String name,
float[] value,
int numValid)
type - 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
void queueEvent(int type,
java.lang.String name,
double value)
type - The type of field to processname - The field name to processvalue - The new value of the field
void queueEvent(int type,
java.lang.String name,
double[] value,
int numValid)
type - 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
void queueEvent(int type,
java.lang.String name,
java.lang.String value)
type - The type of field to processname - The field name to processvalue - The new value of the field
void queueEvent(int type,
java.lang.String name,
java.lang.String[] value,
int numValid)
type - 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
void queueEvent(int type,
java.lang.String name,
VRMLNodeType value)
type - The type of field to processname - The field name to processvalue - The new value of the field
void queueEvent(int type,
java.lang.String name,
VRMLNodeType[] value,
int numValid)
type - 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 arrayboolean sendEvents()
void updateEventOuts()
void eventsProcessed()
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 | |||||||||