vrml.eai.field
Class EventOutSFFloat

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


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 EventOutSFFloat()
          Default Constructor.
 
Method Summary
abstract  float getValue()
          Returns the current value of the SFFloat 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

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.

Method Detail

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.