Difference between revisions of "ColorInterpolator"

From Web3D.org
Jump to: navigation, search
 
 
(3 intermediate revisions by 2 users not shown)
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>
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.
 
  
 +
==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 ''children'' field can contain X3DProductStructureChildNode types. Each child will be either a sub-assembly or a part.
+
* 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==
  
The ''name'' field documents the name of this CADAssembly.
+
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