BooleanToggle

From Web3D.org
Revision as of 08:35, 28 January 2006 by Abergstrom (Talk | contribs)

Jump to: navigation, search

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.