vrml.eai.field
Class EventOutSFBool
java.lang.Object
vrml.eai.field.BaseField
vrml.eai.field.EventOut
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");
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 boolean |
getValue()
Returns the current value of the SFBool event-out slot. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.