SoLogicOperationElement Class Reference
[Elements]

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

#include <Inventor/elements/SoLogicOperationElement.h>

Inheritance diagram for SoLogicOperationElement:
SoElement SoTypedObject

List of all members.

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)

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.


Member Enumeration Documentation

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 

Member Function Documentation

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

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

Parameters:
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]

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

Reimplemented from SoElement.

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

set the current logic operation

Parameters:
state the state from which to retrieve the element instance.
enable Whether to enable or not logic operations
operation which operation to apply

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

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/