Class SoBlendElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoBlendElement
-
public class SoBlendElement extends SoElement
Stores the current blending mode and parameters. This element stores the current blending mode, including source and target factors for RGB and Alpha values, equation and color.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoBlendElement.BlendElementParameters
BlendElementParameters
packages all the different blending parameters.static class
SoBlendElement.BlendEquations
Blend Equation as defined by OpenGL's glBlendEquation.static class
SoBlendElement.BlendFactors
BlendFactor as defined by OpenGL's glBlendFunc.-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SoBlendElement.BlendElementParameters
get(SoState state)
Retrieves the current blending parameters.static int
getClassStackIndex()
Deprecated.As of Open Inventor 9300.void
pop(SoState state, SoElement prevTopElement)
Overridepop()
method to keep GL up to date.void
push(SoState state)
Overridepush()
method to keep GL up to date.static void
set(SoState state, SoBlendElement.BlendElementParameters parameters)
Sets the blending parameters.static void
setBlending(SoState state, boolean enabled)
Enable or disable blending.static void
setFunction(SoState state, SoBlendElement.BlendFactors source, SoBlendElement.BlendFactors destination)
Sets the blending function.-
Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
setFunction
public static void setFunction(SoState state, SoBlendElement.BlendFactors source, SoBlendElement.BlendFactors destination)
Sets the blending function. Convenience function to shorten code only setting the blending function withput separating components.
-
get
public static SoBlendElement.BlendElementParameters get(SoState state)
Retrieves the current blending parameters.
-
setBlending
public static void setBlending(SoState state, boolean enabled)
Enable or disable blending.
-
set
public static void set(SoState state, SoBlendElement.BlendElementParameters parameters)
Sets the blending parameters.
-
getClassStackIndex
@Deprecated public static int getClassStackIndex()
Deprecated.As of Open Inventor 9300. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] *
-
-