Open Inventor Reference
SoBoolOperation Class Reference

Performs Boolean operations. More...

#include <Inventor/engines/SoBoolOperation.h>

Inheritance diagram for SoBoolOperation:
SoEngine SoFieldContainer SoBase

List of all members.

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 ()
 Constructor.

Static Public Member Functions

static void initClass ()
 Initializes base engine class.

Public Attributes

Inputs
SoMFBool a
 First argument to the Boolean operation.
SoMFBool b
 Second argument to the Boolean operation.
SoMFEnum operation
 The Boolean operation.
Outputs
SoEngineOutput output
 Result of the Boolean operation applied to the inputs.
SoEngineOutput inverse
 Inverse of output .

Detailed Description

This engine performs a Boolean operation on two inputs, and returns both the result of the operation and its inverse.

The input fields can have multiple values, allowing the engine to perform several Boolean operations in parallel. One input may have more values than the other. In that case, the last value of the shorter input will be repeated as necessary.

File Format/Default
BoolOperation {
  a FALSE
  b FALSE
  operation A
}
See Also
SoEngineOutput, SoCalculator

Definition at line 96 of file SoBoolOperation.h.


Member Enumeration Documentation

Enumerator:
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 

Definition at line 102 of file SoBoolOperation.h.


Constructor & Destructor Documentation

SoBoolOperation::SoBoolOperation ( )

Member Function Documentation

static void SoBoolOperation::initClass ( ) [static]

Reimplemented from SoEngine.


Member Data Documentation

Definition at line 125 of file SoBoolOperation.h.

Definition at line 128 of file SoBoolOperation.h.


The documentation for this class was generated from the following file: