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 <ColorInterpolator.h>

Inheritance diagram for H3D::ColorInterpolator:

Inheritance graph
List of all members.

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.

Classes

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

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

auto_ptr< MFColor > H3D::ColorInterpolator::keyValue
 

The values to interpolate between.

Access type: inputOutput

ColorInterpolator_keyValue.dot

auto_ptr< SFValue > H3D::ColorInterpolator::value_changed
 

The interpolated result value.

Access type: outputOnly

ColorInterpolator_value_changed.dot


Generated on Thu Aug 24 12:38:53 2006 for H3D API by  doxygen 1.4.5