29 #ifndef __BOOLEANFILTER_H__
30 #define __BOOLEANFILTER_H__
59 virtual void update() {
77 virtual void setValue(
const bool &b,
int _id = 0 ) {
100 friend class SetBoolean;
105 Inst< SetBoolean > _set_boolean = 0,
106 Inst< SFBool > _inputFalse = 0,
107 Inst< NegateSFBool > _inputNegate = 0,
108 Inst< SFBool > _inputTrue = 0 );
Contains the SFBool field class.
Header file for X3DChildNode, X3D scene-graph node.
This field class takes as input SFBool fields and sets its value to the negated value of the input fi...
Definition: BooleanFilter.h:58
The SetBoolean class is specialize to set the value of either the inputTrue or inputFalse field in th...
Definition: BooleanFilter.h:73
virtual void update()
Sets either the inputTrue or inputFalse field depending on the new value.
Definition: BooleanFilter.h:89
virtual void setValue(const bool &b, int _id=0)
Sets either the inputTrue or inputFalse field depending on the new value.
Definition: BooleanFilter.h:77
BooleanFilter filters boolean events, allowing for selective routing of TRUE or FALSE values and nega...
Definition: BooleanFilter.h:54
H3DUniquePtr< SFBool > inputFalse
Generates an FALSE event if the set_boolean value is set to FALSE.
Definition: BooleanFilter.h:123
static H3DNodeDatabase database
The H3DNodedatabase for this node.
Definition: BooleanFilter.h:141
H3DUniquePtr< SetBoolean > set_boolean
The boolean field to filter.
Definition: BooleanFilter.h:115
H3DUniquePtr< SFBool > inputTrue
Generates an TRUE event if the set_boolean value is set to TRUE.
Definition: BooleanFilter.h:138
H3DUniquePtr< NegateSFBool > inputNegate
This field contains the negation of the set_boolean field.
Definition: BooleanFilter.h:130
The SFBool field contains a single boolean value.
Definition: SFBool.h:41
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
Type getValue(const char *s, const char *&rest)
Function that reads characters from a char * and converts them to a given type.
Definition: X3DFieldConversion.h:134
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