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
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:
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier and TypeFieldDescriptionfinal SoSFEnum
<SoAlphaPolicy.Policies> Policy used Please refer to enum Policy.Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
Constructors -
Method Summary
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 Details
-
policy
Policy used Please refer to enum Policy. Default value is POLICY_AS_IS
-
-
Constructor Details
-
SoAlphaPolicy
public SoAlphaPolicy()Default Constructor.
-
-
Method Details
-
getDefaultPolicy
Get default alpha policy.
-