|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeComponentRetained
javax.media.j3d.TransparencyAttributesRetained
class TransparencyAttributesRetained
The TransparencyAttributes object defines all attributes affecting transparency of the object.
Field Summary | |
---|---|
(package private) static int |
DST_BLEND_FUNCTION_CHANGED
|
(package private) int |
dstBlendFunction
|
(package private) int |
isDirty
|
(package private) static int |
MODE_CHANGED
|
(package private) static int |
SRC_BLEND_FUNCTION_CHANGED
|
(package private) int |
srcBlendFunction
|
(package private) float |
transparency
|
(package private) int |
transparencyMode
|
(package private) static int |
VALUE_CHANGED
|
Fields inherited from class javax.media.j3d.NodeComponentRetained |
---|
changedFrequent, compChanged, duplicateOnCloneTree, mirror, refCnt, refCount, users |
Fields inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
DONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, source |
Fields inherited from class javax.media.j3d.IndexedObject |
---|
listIdx |
Constructor Summary | |
---|---|
TransparencyAttributesRetained()
|
Method Summary | |
---|---|
(package private) void |
createMirrorObject()
Creates and initializes a mirror object, point the mirror object to the retained object if the object is not editable |
(package private) boolean |
equivalent(TransparencyAttributesRetained tr)
|
(package private) int |
getDstBlendFunction()
Retrieves this appearance's destination blend function. |
(package private) int |
getSrcBlendFunction()
Retrieves this appearance's source blend function. |
(package private) float |
getTransparency()
Retrieves this appearance's transparency. |
(package private) int |
getTransparencyMode()
Gets the transparency mode for this appearance component object. |
(package private) void |
handleFrequencyChange(int bit)
|
(package private) void |
initDstBlendFunction(int blendFunction)
Sets the destination blend function used in blended transparency and antialiasing operations. |
(package private) void |
initMirrorObject()
Initializes a mirror object, point the mirror object to the retained object if the object is not editable |
(package private) void |
initSrcBlendFunction(int blendFunction)
Sets the source blend function used in blended transparency and antialiasing operations. |
(package private) void |
initTransparency(float transparency)
Sets this appearance's transparency. |
(package private) void |
initTransparencyMode(int transparencyMode)
Sets the transparency mode for this appearance component object. |
(package private) void |
sendMessage(int attrMask,
java.lang.Object attr)
|
protected void |
set(TransparencyAttributesRetained transp)
|
(package private) void |
setDstBlendFunction(int blendFunction)
Sets the destination blend function used in blended transparency and antialiasing operations and sends a message notifying the interested structures of the change. |
(package private) void |
setSrcBlendFunction(int blendFunction)
Sets the source blend function used in blended transparency and antialiasing operations and sends a message notifying the interested structures of the change. |
(package private) void |
setTransparency(float transparency)
Sets this appearance's transparency and sends a message notifying the interested structures of the change. |
(package private) void |
setTransparencyMode(int transparencyMode)
Sets the transparency mode for this appearance component object and sends a message notifying the interested structures of the change. |
(package private) void |
updateMirrorObject(int component,
java.lang.Object value)
Update the "component" field of the mirror object with the given "value" |
(package private) void |
updateNative(Context ctx,
float alpha,
int geometryType,
int polygonMode,
boolean lineAA,
boolean pointAA)
|
Methods inherited from class javax.media.j3d.NodeComponentRetained |
---|
addAMirrorUser, addUser, clearLive, clone, copyMirrorUsers, decRefCnt, doSetLive, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtx, setLive |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
clearLive, clearLive, compile, doSetLive, doSetLive, getSource, getVirtualUniverse, isInSetLive, isStatic, markAsLive, merge, mergeTransform, setCompiled, setLive, setLive, setSource, traverse |
Methods inherited from class javax.media.j3d.IndexedObject |
---|
getIdxUsed, incIdxUsed |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int MODE_CHANGED
static final int VALUE_CHANGED
static final int SRC_BLEND_FUNCTION_CHANGED
static final int DST_BLEND_FUNCTION_CHANGED
int isDirty
int transparencyMode
float transparency
int srcBlendFunction
int dstBlendFunction
Constructor Detail |
---|
TransparencyAttributesRetained()
Method Detail |
---|
final void initTransparencyMode(int transparencyMode)
transparencyMode
- the transparency mode to be used, one of
NONE
, FASTEST
, NICEST
,
SCREEN_DOOR
, or BLENDED
final void setTransparencyMode(int transparencyMode)
transparencyMode
- the transparency mode to be used, one of
FASTEST
, NICEST
,
SCREEN_DOOR
, or BLENDED
final int getTransparencyMode()
final void initTransparency(float transparency)
transparency
- the appearance's transparency
in the range [0.0, 1.0] with 0.0 being
fully opaque and 1.0 being fully transparentfinal void setTransparency(float transparency)
transparency
- the appearance's transparency
in the range [0.0, 1.0] with 0.0 being
fully opaque and 1.0 being fully transparentfinal float getTransparency()
final void initSrcBlendFunction(int blendFunction)
BLEND_SRC_ALPHA
.
blendFunction
- the blend function to be used for the source
color, one of BLEND_ZERO
, BLEND_ONE
,
BLEND_SRC_ALPHA
, or BLEND_ONE_MINUS_SRC_ALPHA
.final void setSrcBlendFunction(int blendFunction)
BLEND_SRC_ALPHA
.
blendFunction
- the blend function to be used for the source
color, one of BLEND_ZERO
, BLEND_ONE
,
BLEND_SRC_ALPHA
, or BLEND_ONE_MINUS_SRC_ALPHA
.final int getSrcBlendFunction()
final void initDstBlendFunction(int blendFunction)
BLEND_ONE_MINUS_SRC_ALPHA
.
blendFunction
- the blend function to be used for the destination
color, one of BLEND_ZERO
, BLEND_ONE
,
BLEND_SRC_ALPHA
, or BLEND_ONE_MINUS_SRC_ALPHA
.final void setDstBlendFunction(int blendFunction)
BLEND_ONE_MINUS_SRC_ALPHA
.
blendFunction
- the blend function to be used for the destination
color, one of BLEND_ZERO
, BLEND_ONE
,
BLEND_SRC_ALPHA
, or BLEND_ONE_MINUS_SRC_ALPHA
.final int getDstBlendFunction()
void createMirrorObject()
createMirrorObject
in class NodeComponentRetained
void updateNative(Context ctx, float alpha, int geometryType, int polygonMode, boolean lineAA, boolean pointAA)
void initMirrorObject()
initMirrorObject
in class NodeComponentRetained
void updateMirrorObject(int component, java.lang.Object value)
updateMirrorObject
in class NodeComponentRetained
boolean equivalent(TransparencyAttributesRetained tr)
protected void set(TransparencyAttributesRetained transp)
final void sendMessage(int attrMask, java.lang.Object attr)
void handleFrequencyChange(int bit)
handleFrequencyChange
in class SceneGraphObjectRetained
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |