vrml.eai.field
Class EventOutSFInt32

java.lang.Object
  extended by vrml.eai.field.BaseField
      extended by vrml.eai.field.EventOut
          extended by 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());
 


Field Summary
 
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
 
Constructor Summary
protected EventOutSFInt32()
          Default Constructor.
 
Method Summary
abstract  int getValue()
          Returns the current value of the SFInt32 event-out slot.
 
Methods inherited from class vrml.eai.field.EventOut
addVrmlEventListener, getUserData, removeVrmlEventListener, setUserData
 
Methods inherited from class vrml.eai.field.BaseField
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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.