ParallelGraphics  
Home  »  Developer Zone  »  Products  »  Cortona VRML Client  »  VRML Extensions  »  Interpolator Nodes in Cortona  »  ScalarInterpolatorEx Node
ScalarInterpolatorEx Node
The ScalarInterpolatorEx node interpolates among a list of SFFloat values using a specified interpolation method. This node extends the standard ScalarInterpolator VRML node.

EXTERNPROTO ScalarInterpolatorEx [ 
  eventIn         SFFloat   set_fraction               # (-inf,inf)
  exposedField    MFFloat   key             []         # (-inf,inf)
  exposedField    MFFloat   keyValue        []         # (-inf,inf)
  exposedField    MFFloat   params          [0, 0, 0]  # (-inf,inf)  
  exposedField    SFString  type            "LINEAR"  
  eventOut        SFFloat   value_changed
]
[
  "urn:inet:parallelgraphics.com:cortona:ScalarInterpolatorEx"
  "http://www.parallelgraphics.com/vrml/proto/Cortona/extensions.wrl
  #ScalarInterpolatorEx"
]

The type field defines the interpolation method. The possible values of this field are "CONSTANT", "LINEAR", "COSINE", "CUBIC" and "HERMITE". In the case of the Hermite interpolation, the params field specifies three interpolation parameters: Tension, Continuity and Bias.

Definitions of the other fields and events of the ScalarInterpolatorEx node are similar to the corresponding definitions for the ScalarInterpolator VRML node.

ScalarInterpolatorEx node example
[view]





Last updated: Wed, 07 Jan 2009
© 2000-2008 ParallelGraphics. All rights reserved.