vrml.eai.field
Class EventOutSFInt32
java.lang.Object
vrml.eai.field.BaseField
vrml.eai.field.EventOut
vrml.eai.field.EventOutSFInt32
public abstract class EventOutSFInt32
- extends EventOut
Reference to a SFInt32 event-out slot. Use this class to read
values from SFInt32 event-out slots.
The following example demonstrates how to get the currently
selected choice of a Switch node:
vrml.eai.Node switchNode = ...;
vrml.eai.field.EventOutSFInt32 whichChoice_changed = (vrml.eai.field.EventOutSFInt32)switchNode.getEventOut("whichChoice_changed");
System.out.println("choice = " + whichChoice_changed.getValue());
Fields inherited from class vrml.eai.field.BaseField |
MFColor, MFFloat, MFInt32, MFNode, MFRotation, MFString, MFTime, MFVec2f, MFVec3f, SFBool, SFColor, SFFloat, SFImage, SFInt32, SFNode, SFRotation, SFString, SFTime, SFVec2f, SFVec3f |
Method Summary |
abstract int |
getValue()
Returns the current value of the SFInt32 event-out slot. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventOutSFInt32
protected EventOutSFInt32()
- 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.getEventOut(java.lang.String)
method.
getValue
public abstract int getValue()
- Returns the current value of the SFInt32 event-out slot.
The following example demonstrates how to get the currently
selected choice of a Switch node:
vrml.eai.Node switchNode = ...;
vrml.eai.field.EventOutSFInt32 whichChoice_changed = (vrml.eai.field.EventOutSFInt32)switchNode.getEventOut("whichChoice_changed");
System.out.println("choice = " + whichChoice_changed.getValue());
- Returns:
- The integer value.