Difference between revisions of "BooleanToggle"

From Web3D.org
Jump to: navigation, search
 
Line 1: Line 1:
 
*[[Node Reference]]
 
*[[Node Reference]]
 
==BooleanToggle==
 
==BooleanToggle==
 +
 +
Specification Link: [http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/utils.html#BooleanToggle BooleanToggle]
 +
 
<pre>
 
<pre>
 
BooleanToggle : X3DChildNode {
 
BooleanToggle : X3DChildNode {
Line 8: Line 11:
 
}
 
}
 
</pre>
 
</pre>
BooleanToggle stores a boolean value for toggling on/off.
 
  
 +
==DTD Validation==
 +
 +
===Children===
 +
 +
Children must appear as follows:
 +
 +
# A single, optional IS.
 +
# A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field.
 +
 +
===Attributes===
 +
 +
None of the fields require any additional value validation.
 +
 +
==Schema Validation==
 +
 +
===Children===
 +
 +
Children must appear as follows:
 +
 +
# A single, optional IS.
 +
# A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field.
 +
 +
===Attributes===
 +
 +
None of the fields require any additional value validation.
  
When a set_boolean TRUE event is received, the BooleanToggle negates the value of the toggle field and generates the corresponding toggle field output event. set_boolean FALSE events are ignored.
+
==Schematron validation==
  
 +
TBD
  
The BooleanToggle can be reset to a specific state by directly setting the value of the inputOutput toggle field.
 
 
*[[Node Reference]]
 
*[[Node Reference]]

Latest revision as of 12:27, 26 April 2015

BooleanToggle

Specification Link: BooleanToggle

BooleanToggle : X3DChildNode {
  SFBool [in]     set_boolean
  SFNode [in,out] metadata    NULL  [X3DMetadataObject]
  SFBool [in,out] toggle      FALSE 
}

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

None of the fields require any additional value validation.

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

None of the fields require any additional value validation.

Schematron validation

TBD