29 #ifndef __BOOLEANTOGGLE_H__
30 #define __BOOLEANTOGGLE_H__
60 virtual void setValue(
const bool &b,
int _id = 0 ) {
78 friend class SetBoolean;
83 Inst< SetBoolean > _set_boolean = 0,
84 Inst< SFBool > _toggle = 0 );
Contains the SFBool field class.
Header file for X3DChildNode, X3D scene-graph node.
The SetBoolean class is specialize to negate the value of the toggle field if a true event is given.
Definition: BooleanToggle.h:57
virtual void update()
Make the field up to date given that an event has occured.
Definition: BooleanToggle.h:69
BooleanToggle stores a boolean value for toggling on/off.
Definition: BooleanToggle.h:52
static H3DNodeDatabase database
The H3DNodedatabase for this node.
Definition: BooleanToggle.h:102
H3DUniquePtr< SFBool > toggle
The boolean field to toggle.
Definition: BooleanToggle.h:99
H3DUniquePtr< SetBoolean > set_boolean
Negates the value of the toggle field.
Definition: BooleanToggle.h:91
virtual void setValue(const bool &v, int id=0)
Set the value of the field.
Definition: SField.h:215
virtual void update()
Make the field up to date given that an event has occured.
Definition: SField.h:181
This abstract node type indicates that the concrete nodes which are instantiated based on it may be u...
Definition: X3DChildNode.h:42
H3D API namespace.
Definition: Anchor.h:38
The AutoUpdate field is a template to force the BaseField to update itself as soon as an event is rec...
Definition: FieldTemplates.h:130
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194