|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.NodeComponent
org.xith3d.scenegraph.TransparencyAttributes
public class TransparencyAttributes
TransparencyAttributes defines attributes that apply to .
| Field Summary | |
|---|---|
static org.jagatoo.opengl.enums.BlendFunction |
BLEND_ONE
|
static org.jagatoo.opengl.enums.BlendFunction |
BLEND_ONE_MINUS_SRC_ALPHA
|
static org.jagatoo.opengl.enums.BlendFunction |
BLEND_SRC_ALPHA
|
static org.jagatoo.opengl.enums.BlendFunction |
BLEND_ZERO
|
static org.jagatoo.opengl.enums.BlendMode |
BLENDED
|
static org.jagatoo.opengl.enums.BlendMode |
FASTEST
|
static org.jagatoo.opengl.enums.BlendMode |
NICEST
|
static org.jagatoo.opengl.enums.BlendMode |
NONE
|
static org.jagatoo.opengl.enums.BlendMode |
SCREEN_DOOR
|
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
TransparencyAttributes()
Constructs a new TransparencyAttributes object. |
|
TransparencyAttributes(org.jagatoo.opengl.enums.BlendMode mode,
float tval)
Constructs a new TransparencyAttributes object. |
|
TransparencyAttributes(org.jagatoo.opengl.enums.BlendMode mode,
float tval,
org.jagatoo.opengl.enums.BlendFunction srcBlendFunction,
org.jagatoo.opengl.enums.BlendFunction dstBlendFunction)
|
|
TransparencyAttributes(org.jagatoo.opengl.enums.BlendMode mode,
float tval,
org.jagatoo.opengl.enums.BlendFunction srcBlendFunction,
org.jagatoo.opengl.enums.BlendFunction dstBlendFunction,
boolean sortEnabled,
boolean enabled)
|
|
TransparencyAttributes(float tval)
Constructs a new TransparencyAttributes object. |
|
| Method Summary | |
|---|---|
TransparencyAttributes |
cloneNodeComponent(boolean forceDuplicate)
|
int |
compareTo(TransparencyAttributes o)
|
protected void |
duplicateNodeComponent(NodeComponent original,
boolean forceDuplicate)
|
boolean |
equals(java.lang.Object o)
|
void |
freeOpenGLResources(CanvasPeer canvasPeer)
This method frees OpenGL resources (names) for all this NodeComponent and all child-components. |
TransparencyAttributes |
getCopy()
|
org.jagatoo.opengl.enums.BlendFunction |
getDstBlendFunction()
|
org.jagatoo.opengl.enums.BlendMode |
getMode()
|
org.jagatoo.opengl.enums.BlendFunction |
getSrcBlendFunction()
|
long |
getStateId()
|
StateNode |
getStateNode()
|
float |
getTransparency()
Gets the transparency level. |
boolean |
isEnabled()
|
boolean |
isSortEnabled()
|
void |
setDstBlendFunction(org.jagatoo.opengl.enums.BlendFunction dstBlendFunction)
|
void |
setEnabled(boolean enabled)
Enables/disables actual transparency rendering on renderer level. |
void |
setMode(org.jagatoo.opengl.enums.BlendMode mode)
|
void |
setSortEnabled(boolean sortEnabled)
Enables or disables transparency sorting for this shape. |
void |
setSrcBlendFunction(org.jagatoo.opengl.enums.BlendFunction srcBlendFunction)
|
void |
setStateNode(StateNode node)
Used by the render engine to set the state id for the node. |
void |
setTransparency(float tval)
Sets the tranparency level 0=opaque, 1=fully transparent. |
java.lang.String |
toString()
|
| Methods inherited from class org.xith3d.scenegraph.NodeComponent |
|---|
freeOpenGLResources, getDuplicateOnCloneTree, getModListener, isChanged, isChanged2, setChanged, setDuplicateOnCloneTree, setModListener |
| Methods inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final org.jagatoo.opengl.enums.BlendMode NONE
BlendMode.NONEpublic static final org.jagatoo.opengl.enums.BlendMode BLENDED
BlendMode.BLENDEDpublic static final org.jagatoo.opengl.enums.BlendMode NICEST
BlendMode.NICESTpublic static final org.jagatoo.opengl.enums.BlendMode FASTEST
BlendMode.FASTESTpublic static final org.jagatoo.opengl.enums.BlendMode SCREEN_DOOR
BlendMode.SCREEN_DOORpublic static final org.jagatoo.opengl.enums.BlendFunction BLEND_ZERO
BlendFunction#BLEND_ZEROpublic static final org.jagatoo.opengl.enums.BlendFunction BLEND_ONE
BlendFunction#BLEND_ONEpublic static final org.jagatoo.opengl.enums.BlendFunction BLEND_SRC_ALPHA
BlendFunction#BLEND_SRC_ALPHApublic static final org.jagatoo.opengl.enums.BlendFunction BLEND_ONE_MINUS_SRC_ALPHA
BlendFunction#BLEND_ONE_MINUS_SRC_ALPHA| Constructor Detail |
|---|
public TransparencyAttributes()
public TransparencyAttributes(org.jagatoo.opengl.enums.BlendMode mode,
float tval)
public TransparencyAttributes(float tval)
public TransparencyAttributes(org.jagatoo.opengl.enums.BlendMode mode,
float tval,
org.jagatoo.opengl.enums.BlendFunction srcBlendFunction,
org.jagatoo.opengl.enums.BlendFunction dstBlendFunction)
public TransparencyAttributes(org.jagatoo.opengl.enums.BlendMode mode,
float tval,
org.jagatoo.opengl.enums.BlendFunction srcBlendFunction,
org.jagatoo.opengl.enums.BlendFunction dstBlendFunction,
boolean sortEnabled,
boolean enabled)
| Method Detail |
|---|
public void setEnabled(boolean enabled)
setEnabled in interface org.jagatoo.datatypes.EnableableOrderedGroup,
setSortEnabled(boolean)public final boolean isEnabled()
isEnabled in interface org.jagatoo.datatypes.Enableablepublic void setSortEnabled(boolean sortEnabled)
Transparency attributes can be marked to disable sorting transparent shapes by calling of setSortEnabled(false). When this is done, transparent shape it will not be drawn during the transparent rendering pass, but will be drawn with the solids (in the opaque rendering pass), i.e. this transparent shape will be treated just like regular opaque shape.
By default, sorting is enabled.
OrderedGroup,
setEnabled(boolean)public final boolean isSortEnabled()
public final void setTransparency(float tval)
public final float getTransparency()
public void setMode(org.jagatoo.opengl.enums.BlendMode mode)
public final org.jagatoo.opengl.enums.BlendMode getMode()
public void setSrcBlendFunction(org.jagatoo.opengl.enums.BlendFunction srcBlendFunction)
public final org.jagatoo.opengl.enums.BlendFunction getSrcBlendFunction()
public void setDstBlendFunction(org.jagatoo.opengl.enums.BlendFunction dstBlendFunction)
public final org.jagatoo.opengl.enums.BlendFunction getDstBlendFunction()
public final void setStateNode(StateNode node)
StateTrackable
setStateNode in interface StateTrackable<TransparencyAttributes>public final StateNode getStateNode()
getStateNode in interface StateTrackable<TransparencyAttributes>public final long getStateId()
public TransparencyAttributes getCopy()
getCopy in interface StateTrackable<TransparencyAttributes>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(TransparencyAttributes o)
compareTo in interface java.lang.Comparable<TransparencyAttributes>public java.lang.String toString()
toString in class SceneGraphObject
protected void duplicateNodeComponent(NodeComponent original,
boolean forceDuplicate)
duplicateNodeComponent in class NodeComponentpublic TransparencyAttributes cloneNodeComponent(boolean forceDuplicate)
cloneNodeComponent in class NodeComponentpublic void freeOpenGLResources(CanvasPeer canvasPeer)
freeOpenGLResources in class NodeComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||