Difference between revisions of "BooleanToggle"

From Web3D.org
Jump to: navigation, search
 
Line 9: Line 9:
 
</pre>
 
</pre>
 
BooleanToggle stores a boolean value for toggling on/off.
 
BooleanToggle stores a boolean value for toggling on/off.
 +
  
 
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.
 
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.
 +
  
 
The BooleanToggle can be reset to a specific state by directly setting the value of the inputOutput toggle field.
 
The BooleanToggle can be reset to a specific state by directly setting the value of the inputOutput toggle field.
 
*[[Node Reference]]
 
*[[Node Reference]]

Revision as of 01:35, 28 January 2006

BooleanToggle

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

BooleanToggle stores a boolean value for toggling on/off.


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.


The BooleanToggle can be reset to a specific state by directly setting the value of the inputOutput toggle field.