Difference between revisions of "ColorInterpolator"

From Web3D.org
Jump to: navigation, search
 
Line 3: Line 3:
  
 
<pre>
 
<pre>
CADAssembly : X3DGroupingNode, X3DProductStructureChildNode {
+
ColorInterpolator : X3DInterpolatorNode {
   MFNode  [in]    addChildren
+
   SFFloat [in]    set_fraction      (-∞,∞)
  MFNode  [in]     removeChildren
+
�MFFloat [in,out] key          []  (-∞,∞)
  MFNode  [in,out] children      []       [X3DProductStructureChildNode]
+
�MFColor [in,out] keyValue      []   [0,1]
   SFNode   [in,out] metadata       NULL     [X3DMetadataObject]
+
   SFNode [in,out] metadata     NULL [X3DMetadataObject]
   SFString [in,out] name ""
+
   SFColor [out]    value_changed
  SFVec3f  []      bboxCenter    0 0 0   (-∞,∞)
+
  SFVec3f  []      bboxSize      -1 -1 -1 [0,∞) or −1 −1 −1
+
 
}
 
}
 
</pre>
 
</pre>
The CADAssembly node holds a set of assemblies or parts grouped together.
 
  
 
+
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.
The ''children'' field can contain X3DProductStructureChildNode types. Each child will be either a sub-assembly or a part.
+
 
+
 
+
The ''name'' field documents the name of this CADAssembly.
+
  
 
* [[Node Reference]]
 
* [[Node Reference]]

Revision as of 15:54, 1 February 2006

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
}

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.