Package com.openinventor.inventor.nodes
Class SoAlphaPolicy
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.nodes.SoNode
-
- com.openinventor.inventor.nodes.SoAlphaPolicy
-
- All Implemented Interfaces:
SafeDisposable
public class SoAlphaPolicy extends SoNode
Alpha (transparency) policy node. This node sets the current alpha (transparency) comparison policy for the renderer. It affects the blending operation to control how (and if) a transparent object should be rendered.Current available policies include :
- As is : Use the alpha value of the fragment to control color blending
- Opaque : If the fragment to render has an alpha value greater than 0.0, the object is rendered as opaque (no transparency). If the alpha value is 0.0 the object is considered fully transparent.
- Discard : If the fragment alpha value is different from 1.0, the object is considered fully transparent. Otherwise it's rendered opaque.
- See Also:
SoBlendElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoAlphaPolicy.Policies
Policy to use.-
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModes
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoSFEnum<SoAlphaPolicy.Policies>
policy
Policy used Please refer to enum Policy.-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoAlphaPolicy()
Default Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SoAlphaPolicy.Policies
getDefaultPolicy()
Get default alpha policy.-
Methods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
policy
public final SoSFEnum<SoAlphaPolicy.Policies> policy
Policy used Please refer to enum Policy. Default value is POLICY_AS_IS
-
-
Method Detail
-
getDefaultPolicy
public static SoAlphaPolicy.Policies getDefaultPolicy()
Get default alpha policy.
-
-