![]() |
http://www.sim.no/ http://www.coin3d.org/ |
The SoBoolOperation engine evaluates expressions of boolean logic.The multivalue fields SoBoolOperation::a and SoBoolOperation::b are combined according to the operations set in SoBoolOperation::operation, with the resulting TRUE
or FALSE
value set on SoBoolOperation::output.
More...
#include <Inventor/engines/SoBoolOperation.h>
Public Types | |
enum | Operation { CLEAR, SET, A, NOT_A, B, NOT_B, A_OR_B, NOT_A_OR_B, A_OR_NOT_B, NOT_A_OR_NOT_B, A_AND_B, NOT_A_AND_B, A_AND_NOT_B, NOT_A_AND_NOT_B, A_EQUALS_B, A_NOT_EQUALS_B } |
Public Member Functions | |
SoBoolOperation () | |
Static Public Member Functions | |
static void | initClass () |
Public Attributes | |
SoMFBool | a |
SoMFBool | b |
SoMFEnum | operation |
SoEngineOutput | output |
SoEngineOutput | inverse |
Protected Member Functions | |
virtual | ~SoBoolOperation (void) |
The SoBoolOperation engine evaluates expressions of boolean logic.
The multivalue fields SoBoolOperation::a and SoBoolOperation::b are combined according to the operations set in SoBoolOperation::operation, with the resulting TRUE
or FALSE
value set on SoBoolOperation::output.
Enumeration of available boolean logic operators.
CLEAR |
Always set SoBoolOperation::output to |
SET |
Always set SoBoolOperation::output to |
A |
Output result = SoBoolOperation::a |
NOT_A |
Output result = ! SoBoolOperation::a |
B |
Output result = SoBoolOperation::b |
NOT_B |
Output result = ! SoBoolOperation::b |
A_OR_B |
r = a || b |
NOT_A_OR_B |
r = !a || b |
A_OR_NOT_B |
r = a || !b |
NOT_A_OR_NOT_B |
r = !a || !b |
A_AND_B |
r = a && b |
NOT_A_AND_B |
r = !a && b |
A_AND_NOT_B |
r = a && !b |
NOT_A_AND_NOT_B |
r = !a && !b |
A_EQUALS_B |
r = a==b |
A_NOT_EQUALS_B |
r = ! a==b |
SoBoolOperation::SoBoolOperation | ( | void | ) |
Default constructor.
SoBoolOperation::~SoBoolOperation | ( | void | ) | [protected, virtual] |
Destructor.
void SoBoolOperation::initClass | ( | void | ) | [static] |
Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system.
Reimplemented from SoEngine.
First set of boolean input "signal" values.
Second set of boolean input "signal" values.
Set of boolean logic expressions. Each of these are used to combine SoBoolOperation::a with SoBoolOperation::b (for each index value from 0 to the last value) to produce the results on the SoBoolOperation::output field.
(SoMFBool) The result of each (a[i] operation[i] b[i]) expression.
(SoMFBool) The set of inverse results.
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Mon May 10 00:35:01 2010 for Coin by Doxygen 1.6.3.