Stores the current logical pixel operation for rendering. More...
#include <Inventor/elements/SoLogicOperationElement.h>
Public Types | |
enum | LogicOperation { NOOP = SbEnums::LOGIC_OP_NOOP, CLEAR = SbEnums::LOGIC_OP_CLEAR, SET = SbEnums::LOGIC_OP_SET, COPY = SbEnums::LOGIC_OP_COPY, COPY_INVERTED = SbEnums::LOGIC_OP_COPY_INVERTED, INVERT = SbEnums::LOGIC_OP_INVERT, AND = SbEnums::LOGIC_OP_AND, NAND = SbEnums::LOGIC_OP_NAND, AND_REVERSE = SbEnums::LOGIC_OP_AND_REVERSE, AND_INVERTED = SbEnums::LOGIC_OP_AND_INVERTED, OR = SbEnums::LOGIC_OP_OR, NOR = SbEnums::LOGIC_OP_NOR, XOR = SbEnums::LOGIC_OP_XOR, OR_REVERSE = SbEnums::LOGIC_OP_OR_REVERSE, OR_INVERTED = SbEnums::LOGIC_OP_OR_INVERTED, EQUIV = SbEnums::LOGIC_OP_EQUIV } |
Public Member Functions | |
virtual void | print (FILE *fp) const |
virtual void | push (SoState *state) |
virtual void | pop (SoState *state, const SoElement *prevTopElement) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
static void | set (SoState *state, bool enable, LogicOperation operation) |
static void | get (SoState *state, bool &enabled, LogicOperation &operation) |
This element stores the current logical pixel operation for rendering.
A Logical Operation is a Per-Sample Processing operation applied between the Fragment's color values and color values in the Framebuffer being rendered to that correspond to that particular fragment color. Logical operations are boolean operations performed on the bit pattern that represents the colors.
static void SoLogicOperationElement::get | ( | SoState * | state, | |
bool & | enabled, | |||
LogicOperation & | operation | |||
) | [static] |
get the current logic operation, and wether logic operations are enabled.
state | the state from which to retrieve the element instance. | |
enabled | Whether logic operations are enabled | |
operation | which operation is applied |
static int SoLogicOperationElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoElement.
static SoType SoLogicOperationElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoElement.
virtual void SoLogicOperationElement::pop | ( | SoState * | state, | |
const SoElement * | prevTopElement | |||
) | [virtual] |
Override pop() method to keep GL up to date.
virtual void SoLogicOperationElement::print | ( | FILE * | fp | ) | const [virtual] |
Prints element (for debugging).
Reimplemented from SoElement.
virtual void SoLogicOperationElement::push | ( | SoState * | state | ) | [virtual] |
static void SoLogicOperationElement::set | ( | SoState * | state, | |
bool | enable, | |||
LogicOperation | operation | |||
) | [static] |
set the current logic operation
state | the state from which to retrieve the element instance. | |
enable | Whether to enable or not logic operations | |
operation | which operation to apply |