instantreality 1.0

Component:
Interpolation
Status:
fully implemented
Structure type:
concrete
Standard:
X3D2.0

ScalarInterpolator

ScalarInterpolator generates piecewise-linear values that can be ROUTEd to other Float attributes. Typical input: ROUTE someTimeSensor.fraction_changed TO someInterpolator.set_fraction Typical output: ROUTE someInterpolator.value_changed TO destinationNode.set_attribute.

Inheritance

Code

XML encoding
<ScalarInterpolator keyValue=''
key=''
enabled='TRUE'
logFeature=''
 />
Classic encoding
ScalarInterpolator {
	keyValue []
	key []
	enabled TRUE
	logFeature [""]
}

Interface

Filter: X3D only | Avalon only | All
id Name DataType PartType Default ValueType Description
SFBool enabled SFBool inputOutput TRUE Flag to enable/disable the node behaviour
MFFloat key MFFloat inputOutput Definition parameters for linear-interpolation function time intervals, in increasing order and corresponding to keyValues. Hint: number of keys must match number of keyValues!
MFFloat keyValue MFFloat inputOutput Output values for linear interpolation, each corresponding to time-fraction keys. Hint: number of keys must match number of keyValues!
MFString logFeature MFString inputOutput state, child, parent, route, eventIn, eventOut controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything
SFNode metadata SFNode inputOutput MetadataObject container for payload metadata inside MetadataSet element
SFFloat set_fraction SFFloat inputOnly set_fraction selects input key for corresponding keyValue output.
SFFloat value_changed SFFloat outputOnly Linearly interpolated output value determined by current key time and corresponding "keyValue" pair.