vrml.eai.field
Class EventInSFFloat

java.lang.Object
  extended by vrml.eai.field.BaseField
      extended by vrml.eai.field.EventIn
          extended by vrml.eai.field.EventInSFFloat

public abstract class EventInSFFloat
extends EventIn

Reference to a SFFloat event-in slot. Use this class to write values into SFFloat event-in slots.

The following example demonstrates how to send a new fraction value to a PositionInterpolator node:

 vrml.eai.Node positionInterpolator = ...;
 vrml.eai.field.EventInSFFloat set_fraction = (vrml.eai.field.EventInSFFloat)positionInterpolator.getEventIn("set_fraction");
 set_fraction.setValue(0.5f);
 


Field Summary
 
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
 
Constructor Summary
protected EventInSFFloat()
          Default constructor.
 
Method Summary
abstract  void setValue(float value)
          Sets the value of the SFFloat event-in slot.
 
Methods inherited from class vrml.eai.field.EventIn
getUserData, 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

EventInSFFloat

protected EventInSFFloat()
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.getEventIn(java.lang.String) method.

Method Detail

setValue

public abstract void setValue(float value)
Sets the value of the SFFloat event-in slot.

The following example demonstrates how to send a new fraction value to a PositionInterpolator node:

 vrml.eai.Node positionInterpolator = ...;
 vrml.eai.field.EventInSFFloat set_fraction = (vrml.eai.field.EventInSFFloat)positionInterpolator.getEventIn("set_fraction");
 set_fraction.setValue(0.5f);
 

Parameters:
value - The new float value.