H3D::ColorInterpolator Class Reference
[X3D node classes.]

This node interpolates among a list of MFColor key values to produce an SFColor (RGB) value_changed event. More...

#include <H3D/ColorInterpolator.h>

Inheritance diagram for H3D::ColorInterpolator:

Inheritance graph

List of all members.

Classes

struct  SFValue
 The SFValue field updates the interpolated value from the fields routed to it. More...

Public Member Functions

 ColorInterpolator (Inst< SFNode > _metadata=0, Inst< SFFloat > _set_fraction=0, Inst< MFFloat > _key=0, Inst< MFColor > _keyValue=0, Inst< SFValue > _value_changed=0)
 Constructor.

Public Attributes

auto_ptr< MFColorkeyValue
 The values to interpolate between.
auto_ptr< SFValuevalue_changed
 The interpolated result value.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.


Detailed Description

This node interpolates among a list of MFColor key values to produce an SFColor (RGB) value_changed event.

The number of colours in the keyValue field shall be equal to the number of key frames in the key field. The keyValue field and value_changed events are defined in RGB colour space. A linear interpolation using the value of set_fraction as input is performed in HSV space (see [FOLEY] for description of RGB and HSV colour spaces). The results are undefined when interpolating between two consecutive keys with complementary hues.

Internal routes:
ColorInterpolator.dot

Member Data Documentation

The values to interpolate between.

Access type: inputOutput

ColorInterpolator_keyValue.dot

Referenced by ColorInterpolator().

The interpolated result value.

Access type: outputOnly

ColorInterpolator_value_changed.dot

Referenced by ColorInterpolator().


The documentation for this class was generated from the following files:

Generated on Fri Nov 7 10:29:29 2008 for H3D API by  doxygen 1.5.7