Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoLogicOperationElement Class Reference

VSG extension Stores the current logical pixel operation for rendering. More...

#include <Inventor/elements/SoLogicOperationElement.h>

+ Inheritance diagram for SoLogicOperationElement:

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.
 

Detailed Description

VSG extension 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.

Member Enumeration Documentation

◆ LogicOperation

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.

Member Function Documentation

◆ get()

static void SoLogicOperationElement::get ( SoState state,
bool &  enabled,
LogicOperation operation 
)
static

get the current logic operation, and wether logic operations are enabled.

Parameters
statethe state from which to retrieve the element instance.
enabledWhether logic operations are enabled
operationwhich operation is applied

◆ getClassStackIndex()

static int SoLogicOperationElement::getClassStackIndex ( )
static

Returns the stack id for this element.


◆ getClassTypeId()

static SoType SoLogicOperationElement::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ pop()

virtual void SoLogicOperationElement::pop ( SoState state,
const SoElement prevTopElement 
)
virtual

Override pop() method to keep GL up to date.

Reimplemented from SoElement.

◆ print()

virtual void SoLogicOperationElement::print ( FILE *  fp) const
virtual

Prints element (for debugging).

Reimplemented from SoElement.

◆ push()

virtual void SoLogicOperationElement::push ( SoState state)
virtual

Override push() method to keep GL up to date.

Reimplemented from SoElement.

◆ set()

static void SoLogicOperationElement::set ( SoState state,
bool  enable,
LogicOperation  operation 
)
static

set the current logic operation

Parameters
statethe state from which to retrieve the element instance.
enableWhether to enable or not logic operations
operationwhich operation to apply

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