vrml.eai.field
Class EventOutSFBool

java.lang.Object
  extended by vrml.eai.field.BaseField
      extended by vrml.eai.field.EventOut
          extended by vrml.eai.field.EventOutSFBool

public abstract class EventOutSFBool
extends EventOut

Reference to a SFBool event-out slot. Use this class to read values from SFBool event-out slots.

The following example demonstrates how to check if a Viewpoint is currently bound:

 vrml.eai.Node viewpoint = ...;
 vrml.eai.field.EventOutSFBool isBound = (vrml.eai.field.EventOutSFBool)viewpoint.getEventOut("isBound");
 if (isBound.getValue() == true)
     System.out.println("Viewpoint is bound");
 else
     System.out.println("Viewpoint is not bound");
 


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 EventOutSFBool()
          Default Constructor.
 
Method Summary
abstract  boolean getValue()
          Returns the current value of the SFBool 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

EventOutSFBool

protected EventOutSFBool()
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 boolean getValue()
Returns the current value of the SFBool event-out slot.

The following example demonstrates how to check if a Viewpoint is currently bound:

 vrml.eai.Node viewpoint = ...;
 vrml.eai.field.EventOutSFBool isBound = (vrml.eai.field.EventOutSFBool)viewpoint.getEventOut("isBound");
 if (isBound.getValue() == true)
     System.out.println("Viewpoint is bound");
 else
     System.out.println("Viewpoint is not bound");
 

Returns:
The boolean value.