Difference between revisions of "ColorRGBA"

From Web3D.org
Jump to: navigation, search
 
(ColorRGBA)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
* [[Node Reference]]
 
* [[Node Reference]]
 
==ColorRGBA==
 
==ColorRGBA==
 +
 +
Specification Link: [http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/rendering.html#ColorRGBA ColorRGBA]
  
 
<pre>
 
<pre>
CADAssembly : X3DGroupingNode, X3DProductStructureChildNode {
+
ColorRGBA : X3DColorNode {  
   MFNode  [in]    addChildren
+
   MFColorRGBA [in,out] color    [NULL] [0,1]
  MFNode  [in]    removeChildren
+
   SFNode     [in,out] metadata NULL   [X3DMetadataObject]
  MFNode  [in,out] children      []       [X3DProductStructureChildNode]
+
   SFNode   [in,out] metadata       NULL     [X3DMetadataObject]
+
  SFString [in,out] name ""
+
  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 ''color'' 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 ''color'' 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 09:05, 31 July 2015

ColorRGBA

Specification Link: ColorRGBA

ColorRGBA : X3DColorNode { 
  MFColorRGBA [in,out] color    [NULL] [0,1]
  SFNode      [in,out] metadata NULL   [X3DMetadataObject]
}

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 color 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 color 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