| 1 |
NAME SoBoolOperation SoBoolOper SO_BOOL_OPER_ { |
| 2 |
performs Boolean operations |
| 3 |
} |
| 4 |
|
| 5 |
DESC { |
| 6 |
This engine performs a Boolean operation on two inputs, |
| 7 |
and returns both the result of the operation and its inverse. |
| 8 |
\p |
| 9 |
The input fields can have multiple values, allowing the engine to |
| 10 |
perform several Boolean operations in parallel. |
| 11 |
One input may have more values than the other. In that case, |
| 12 |
the last value of the shorter input will be repeated as necessary. |
| 13 |
} |
| 14 |
|
| 15 |
INCLUDE engines/SoBoolOperation.h |
| 16 |
|
| 17 |
ENUM Operation { |
| 18 |
CLEAR "", |
| 19 |
SET "", |
| 20 |
A "", |
| 21 |
NOT_A "", |
| 22 |
B "", |
| 23 |
NOT_B "", |
| 24 |
A_OR_B "", |
| 25 |
NOT_A_OR_B "", |
| 26 |
A_OR_NOT_B "", |
| 27 |
NOT_A_OR_NOT_B "", |
| 28 |
A_AND_B "", |
| 29 |
NOT_A_AND_B "", |
| 30 |
A_AND_NOT_B "", |
| 31 |
NOT_A_AND_NOT_B "", |
| 32 |
A_EQUALS_B "", |
| 33 |
A_NOT_EQUALS_B "" |
| 34 |
} |
| 35 |
|
| 36 |
INPUT a { First argument to the Boolean operation.} |
| 37 |
INPUT b { Second argument to the Boolean operation. } |
| 38 |
INPUT operation { The Boolean operation. } |
| 39 |
|
| 40 |
OUTPUT output { Result of the Boolean operation applied to the inputs. } |
| 41 |
OUTPUT inverse { Inverse of \voutput\.. } |
| 42 |
|
| 43 |
METHOD Create SoBoolOperation() { Constructor. } |
| 44 |
|
| 45 |
ALSO { SoEngineOutput, SoCalculator } |