vrml.eai.field
Class EventInSFFloat
java.lang.Object
vrml.eai.field.BaseField
vrml.eai.field.EventIn
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);
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 void |
setValue(float value)
Sets the value of the SFFloat event-in slot. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.