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 } |
Logic Operation as defined by OpenGL's logicOp enum. More... | |
Public Member Functions | |
virtual void | print (FILE *fp) const |
Prints element (for debugging). | |
virtual void | push (SoState *state) |
Override push() method to keep GL up to date. | |
virtual void | pop (SoState *state, const SoElement *prevTopElement) |
Override pop() method to keep GL up to date. | |
Public Member Functions inherited from SoElement | |
virtual SoType | getTypeId () const |
Returns type identifier for element instance. | |
Public Member Functions inherited from SoTypedObject | |
SbBool | isOfType (const SoType &type) const |
Returns TRUE if this object is of the type specified in type or is derived from that type. | |
template<typename TypedObjectClass > | |
SbBool | isOfType () const |
Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class. | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
static int | getClassStackIndex () |
Returns the stack id for this element. | |
static void | set (SoState *state, bool enable, LogicOperation operation) |
set the current logic operation | |
static void | get (SoState *state, bool &enabled, LogicOperation &operation) |
get the current logic operation, and wether logic operations are enabled. | |
Static Public Member Functions inherited from SoElement | |
static SoType | getClassTypeId () |
Returns type identifier for SoElement class. | |
Static Public Member Functions inherited from SoTypedObject | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
Stores the current logical pixel operation for rendering.
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.
Definition at line 46 of file SoLogicOperationElement.h.
Logic Operation as defined by OpenGL's logicOp enum.
Enumerator | |
---|---|
NOOP | |
CLEAR | |
SET | |
COPY | |
COPY_INVERTED | |
INVERT | |
AND | |
NAND | |
AND_REVERSE | |
AND_INVERTED | |
OR | |
NOR | |
XOR | |
OR_REVERSE | |
OR_INVERTED | |
EQUIV |
Definition at line 54 of file SoLogicOperationElement.h.
|
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 |
Returns the stack id for this element.
|
static |
Returns the type identifier for this class.
|
virtual |
Prints element (for debugging).
Reimplemented from SoElement.
|
virtual |
|
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 |