vrml.eai.field
Class EventInSFInt32
java.lang.Object
vrml.eai.field.BaseField
vrml.eai.field.EventIn
vrml.eai.field.EventInSFInt32
public abstract class EventInSFInt32
- extends EventIn
Reference to a SFInt32 event-in slot. Use this class to write
values into SFInt32 event-in slots.
The following example demonstrates how to switch between
different geometries under a Switch node:
vrml.eai.Node switchNode = ...;
vrml.eai.field.EventInSFInt32 set_whichChoice = (vrml.eai.field.EventInSFInt32)switchNode.getEventIn("set_whichChoice");
set_whichChoice.setValue(2);
Fields inherited from class vrml.eai.field.BaseField |
MFColor, MFFloat, MFInt32, MFNode, MFRotation, MFString, MFTime, MFVec2f, MFVec3f, SFBool, SFColor, SFFloat, SFImage, SFInt32, SFMatrix4f, SFNode, SFRotation, SFString, SFTime, SFVec2f, SFVec3f |
Method Summary |
abstract void |
setValue(int value)
Sets the value of a SFInt32 event-in slot. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventInSFInt32
protected EventInSFInt32()
- Default constructor. This method is protected, i.e. you cannot create
new instances of this class. The only way to get instances is via the
Node.getEventIn(java.lang.String)
method.
setValue
public abstract void setValue(int value)
- Sets the value of a SFInt32 event-in slot.
The following example demonstrates how to switch between
different geometries under a Switch node:
vrml.eai.Node switchNode = ...;
vrml.eai.field.EventInSFInt32 set_whichChoice = (vrml.eai.field.EventInSFInt32)switchNode.getEventIn("set_whichChoice");
set_whichChoice.setValue(2);
- Parameters:
value
- The new integer value.