Difference between revisions of "ColorInterpolator"

From Web3D.org
Jump to: navigation, search
(cleanup garbage)
 
Line 1: Line 1:
 
* [[Node Reference]]
 
* [[Node Reference]]
 
==ColorInterpolator==
 
==ColorInterpolator==
 +
 +
Specification Link: [http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/interp.html#ColorInterpolator ColorInterpolator]
  
 
<pre>
 
<pre>
Line 12: Line 14:
 
</pre>
 
</pre>
  
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.
+
==DTD Validation==
 +
 
 +
===Children===
 +
 
 +
Children must appear as follows:
 +
 
 +
# A single, optional IS.
 +
# A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field.
 +
 
 +
===Attributes===
 +
 
 +
* There is no check that the values of the ''keyValue'' field are acceptable.
 +
 
 +
==Schema Validation==
 +
 
 +
===Children===
 +
 
 +
Children must appear as follows:
 +
 
 +
# A single, optional IS.
 +
# A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field.
 +
 
 +
===Attributes===
 +
 
 +
* The Schema attempts to check that the values of the ''keyValue'' field are within the range [0,1]. It does this successfully for values in decimal format but can fail for values in exponent format.
 +
 
 +
==Schematron validation==
 +
 
 +
TBD
  
 
* [[Node Reference]]
 
* [[Node Reference]]

Latest revision as of 08:40, 31 July 2015

ColorInterpolator

Specification Link: ColorInterpolator

ColorInterpolator : X3DInterpolatorNode {
  SFFloat [in]     set_fraction       (-∞,∞)
  MFFloat [in,out] key           []   (-∞,∞)
  MFColor [in,out] keyValue      []   [0,1]
  SFNode  [in,out] metadata      NULL [X3DMetadataObject]
  SFColor [out]    value_changed
}

DTD Validation

Children

Children must appear as follows:

  1. A single, optional IS.
  2. A single, optional node derived from X3DMetadataObject for the metadata field.

Attributes

  • There is no check that the values of the keyValue field are acceptable.

Schema Validation

Children

Children must appear as follows:

  1. A single, optional IS.
  2. A single, optional node derived from X3DMetadataObject for the metadata field.

Attributes

  • The Schema attempts to check that the values of the keyValue field are within the range [0,1]. It does this successfully for values in decimal format but can fail for values in exponent format.

Schematron validation

TBD