vrml.eai.field
Class EventOutSFFloat
java.lang.Object
vrml.eai.field.BaseField
vrml.eai.field.EventOut
vrml.eai.field.EventOutSFFloat
public abstract class EventOutSFFloat
- extends EventOut
Reference to a SFFloat event-out slot. Use this class to read
values from SFFloat event-out slots.
The following example demonstrates how to get the transparency of
an object:
vrml.eai.Node material = ...;
vrml.eai.field.EventOutSFFloat transparency_changed = (vrml.eai.field.EventOutSFFloat)material.getEventOut("transparency_changed");
System.out.println("transparency = " + transparency_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 float |
getValue()
Returns the current value of the SFFloat event-out slot. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventOutSFFloat
protected EventOutSFFloat()
- 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 float getValue()
- Returns the current value of the SFFloat event-out slot.
The following example demonstrates how to get the transparency of
an object:
vrml.eai.Node material = ...;
vrml.eai.field.EventOutSFFloat transparency_changed = (vrml.eai.field.EventOutSFFloat)material.getEventOut("transparency_changed");
System.out.println("transparency = " + transparency_changed.getValue());
- Returns:
- The float value.