Difference between revisions of "CADLayer"

From Web3D.org
Jump to: navigation, search
 
 
Line 1: Line 1:
 
* [[Node Reference]]
 
* [[Node Reference]]
 
==CADLayer==
 
==CADLayer==
 +
 +
Specification Link: [http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/CADGeometry.html#CADLayer CADLayer]
  
 
<pre>
 
<pre>
Line 15: Line 17:
 
</pre>
 
</pre>
  
The CADLayer node defines a hierarchy of nodes used for showing layer structure for the CAD model.
+
==DTD Validation==
 +
 
 +
===Children===
 +
 
 +
Children must appear as follows:
 +
 
 +
# A single, optional IS.
 +
# A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field.
 +
# Any number, including none, of Prototype nodes or nodes derived from ''X3DChildNode'' in any order.
 +
 
 +
NOTE: There is some discrepancy between the list of specification defined ''X3DChildNodes'' and those permitted by the DTD. This has been raised and is awaiting resolution.
 +
 
 +
===Attributes===
 +
 
 +
There is no validation of the numerical values of the ''bboxCenter'' or ''bboxSize'' fields. Neither is there any validation of the number of values.
 +
 
 +
==Schema Validation==
 +
 
 +
===Children===
 +
 
 +
Children must appear as follows:
 +
 
 +
# A single, optional IS.
 +
# A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field.
 +
# Any number, including none, of Prototype nodes or nodes derived from ''X3DChildNode'' in any order.
 +
 
 +
NOTE: There is some discrepancy between the list of specification defined ''X3DChildNodes'' and those permitted by the Schema. This has been raised and is awaiting resolution.
 +
 
 +
===Attributes===
  
The ''name'' field describes the content of the layer.
+
* The ''bboxCenter'' field accepts a triplet of numerical values.
 +
* The ''bboxsize'' field accepts either three values, each one being greater than or equal to zero, or the triplet -1 -1 -1.
  
The ''children'' field contains all nodes defined for this layer.
+
==Schematron Validation==
  
The ''visible'' field specifies whether a particular child and its sub-children are visible. If the number of values is less than the number of children, the remaining children shall be visible. 
+
TBD
  
 
* [[Node Reference]]
 
* [[Node Reference]]

Latest revision as of 08:27, 2 May 2015

CADLayer

Specification Link: CADLayer

CADLayer : X3DGroupingNode {
  MFNode   [in]     addChildren
  MFNode   [in]     removeChildren
  MFNode   [in,out] children       []       [X3DChildNode]
  SFNode   [in,out] metadata       NULL     [X3DMetadataObject]
  SFString [in,out] name ""
  MFBool   [in,out] visible        []
  SFVec3f  []       bboxCenter     0 0 0    (-∞,∞)
  SFVec3f  []       bboxSize       -1 -1 -1 [0,∞) or −1 −1 −1
}

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.
  3. Any number, including none, of Prototype nodes or nodes derived from X3DChildNode in any order.

NOTE: There is some discrepancy between the list of specification defined X3DChildNodes and those permitted by the DTD. This has been raised and is awaiting resolution.

Attributes

There is no validation of the numerical values of the bboxCenter or bboxSize fields. Neither is there any validation of the number of values.

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.
  3. Any number, including none, of Prototype nodes or nodes derived from X3DChildNode in any order.

NOTE: There is some discrepancy between the list of specification defined X3DChildNodes and those permitted by the Schema. This has been raised and is awaiting resolution.

Attributes

  • The bboxCenter field accepts a triplet of numerical values.
  • The bboxsize field accepts either three values, each one being greater than or equal to zero, or the triplet -1 -1 -1.

Schematron Validation

TBD