MeVisLab Toolbox Reference
SoBlendMode Class Reference

Class SoBlendMode to manage the blending state in an Open Inventor node. More...

#include <SoBlendMode.h>

Inheritance diagram for SoBlendMode:

Public Types

enum  BlendMode {
  BLEND_OFF , BLEND_REPLACE , BLEND_ADD , BLEND_SCREEN ,
  BLEND_MIN , BLEND_MAX , BLEND_BLEND , BLEND_PREMULTIPLIED_BLEND ,
  BLEND_CUSTOM , BLEND_CUSTOM_SEPARATE
}
 
enum  Equation { ADD = GL_FUNC_ADD , SUBTRACT = GL_FUNC_SUBTRACT , REVERSE_SUBTRACT = GL_FUNC_REVERSE_SUBTRACT }
 
enum  Function {
  ZERO = GL_ZERO , ONE = GL_ONE , SRC_COLOR = GL_SRC_COLOR , ONE_MINUS_SRC_COLOR = GL_ONE_MINUS_SRC_COLOR ,
  DST_COLOR = GL_DST_COLOR , ONE_MINUS_DST_COLOR = GL_ONE_MINUS_DST_COLOR , SRC_ALPHA = GL_SRC_ALPHA , ONE_MINUS_SRC_ALPHA = GL_ONE_MINUS_SRC_ALPHA ,
  DST_ALPHA = GL_DST_ALPHA , ONE_MINUS_DST_ALPHA = GL_ONE_MINUS_DST_ALPHA , CONSTANT_COLOR = GL_CONSTANT_COLOR , ONE_MINUS_CONSTANT_COLOR = GL_ONE_MINUS_CONSTANT_COLOR ,
  CONSTANT_ALPHA = GL_CONSTANT_ALPHA , ONE_MINUS_CONSTANT_ALPHA = GL_ONE_MINUS_CONSTANT_ALPHA , SRC_ALPHA_SATURATE = GL_SRC_ALPHA_SATURATE
}
 

Public Member Functions

 SoBlendMode ()
 Constructor. More...
 
void GLRender (SoGLRenderAction *action) override
 Add this node to element in state. More...
 

Static Public Member Functions

static void initClass ()
 Initialize class with runtime type system. More...
 

Public Attributes

SoSFBool enabled
 
SoSFEnum blendMode
 
SoSFEnum blendEquation
 
SoSFEnum blendFunctionSrc
 
SoSFEnum blendFunctionDst
 
SoSFEnum alphaBlendFunctionSrc
 
SoSFEnum alphaBlendFunctionDst
 
SoSFColor constantBlendColor
 
SoSFFloat constantBlendAlpha
 

Detailed Description

Class SoBlendMode to manage the blending state in an Open Inventor node.

Definition at line 25 of file SoBlendMode.h.

Member Enumeration Documentation

◆ BlendMode

Enumerator
BLEND_OFF 
BLEND_REPLACE 
BLEND_ADD 
BLEND_SCREEN 
BLEND_MIN 
BLEND_MAX 
BLEND_BLEND 
BLEND_PREMULTIPLIED_BLEND 
BLEND_CUSTOM 
BLEND_CUSTOM_SEPARATE 

Definition at line 32 of file SoBlendMode.h.

◆ Equation

Enumerator
ADD 
SUBTRACT 
REVERSE_SUBTRACT 

Definition at line 45 of file SoBlendMode.h.

◆ Function

Enumerator
ZERO 
ONE 
SRC_COLOR 
ONE_MINUS_SRC_COLOR 
DST_COLOR 
ONE_MINUS_DST_COLOR 
SRC_ALPHA 
ONE_MINUS_SRC_ALPHA 
DST_ALPHA 
ONE_MINUS_DST_ALPHA 
CONSTANT_COLOR 
ONE_MINUS_CONSTANT_COLOR 
CONSTANT_ALPHA 
ONE_MINUS_CONSTANT_ALPHA 
SRC_ALPHA_SATURATE 

Definition at line 51 of file SoBlendMode.h.

Constructor & Destructor Documentation

◆ SoBlendMode()

SoBlendMode::SoBlendMode ( )

Constructor.

Member Function Documentation

◆ GLRender()

void SoBlendMode::GLRender ( SoGLRenderAction *  action)
override

Add this node to element in state.

◆ initClass()

static void SoBlendMode::initClass ( )
static

Initialize class with runtime type system.

Member Data Documentation

◆ alphaBlendFunctionDst

SoSFEnum SoBlendMode::alphaBlendFunctionDst

Definition at line 76 of file SoBlendMode.h.

◆ alphaBlendFunctionSrc

SoSFEnum SoBlendMode::alphaBlendFunctionSrc

Definition at line 75 of file SoBlendMode.h.

◆ blendEquation

SoSFEnum SoBlendMode::blendEquation

Definition at line 72 of file SoBlendMode.h.

◆ blendFunctionDst

SoSFEnum SoBlendMode::blendFunctionDst

Definition at line 74 of file SoBlendMode.h.

◆ blendFunctionSrc

SoSFEnum SoBlendMode::blendFunctionSrc

Definition at line 73 of file SoBlendMode.h.

◆ blendMode

SoSFEnum SoBlendMode::blendMode

Definition at line 70 of file SoBlendMode.h.

◆ constantBlendAlpha

SoSFFloat SoBlendMode::constantBlendAlpha

Definition at line 79 of file SoBlendMode.h.

◆ constantBlendColor

SoSFColor SoBlendMode::constantBlendColor

Definition at line 78 of file SoBlendMode.h.

◆ enabled

SoSFBool SoBlendMode::enabled

Definition at line 69 of file SoBlendMode.h.


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