|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.j3d.SceneGraphObject | +--javax.media.j3d.NodeComponent | +--javax.media.j3d.TransparencyAttributes
The TransparencyAttributes object defines all attributes affecting transparency of the object.
Field Summary | |
static int |
ALLOW_MODE_READ
Specifies that this TransparencyAttributes object allows reading its transparency mode component information. |
static int |
ALLOW_MODE_WRITE
Specifies that this TransparencyAttributes object allows writing its transparency mode component information. |
static int |
ALLOW_VALUE_READ
Specifies that this TransparencyAttributes object allows reading its transparency value. |
static int |
ALLOW_VALUE_WRITE
Specifies that this TransparencyAttributes object allows writing its transparency value. |
static int |
BLENDED
Use alpha blended transparency. |
static int |
FASTEST
Use the fastest available method for transparency. |
static int |
NICEST
Use the nicest available method for transparency. |
static int |
NONE
No transparency, opaque object. |
static int |
SCREEN_DOOR
Use screen-door transparency. |
Constructor Summary | |
TransparencyAttributes()
Constructs a TransparencyAttributes object with default parameters. |
|
TransparencyAttributes(int tMode,
float tVal)
Construct TransparencyAttributes object with specified values. |
Method Summary | |
NodeComponent |
cloneNodeComponent()
Creates a new TransparencyAttributes object. |
void |
duplicateNodeComponent(NodeComponent originalNodeComponent)
Copies the information found in originalNodeComponent to
the current node. |
float |
getTransparency()
Retrieves this appearance's transparency. |
int |
getTransparencyMode()
Gets the transparency mode for this appearance component object. |
void |
setTransparency(float transparency)
Sets this appearance's transparency. |
void |
setTransparencyMode(int transparencyMode)
Sets the transparency mode for this appearance component object. |
Methods inherited from class javax.media.j3d.NodeComponent |
getDuplicateOnCloneTree,
setDuplicateOnCloneTree |
Methods inherited from class javax.media.j3d.SceneGraphObject |
clearCapability,
duplicateSceneGraphObject,
getCapability,
getUserData,
isCompiled,
isLive,
setCapability,
setUserData |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int ALLOW_MODE_READ
public static final int ALLOW_MODE_WRITE
public static final int ALLOW_VALUE_READ
public static final int ALLOW_VALUE_WRITE
public static final int FASTEST
public static final int NICEST
public static final int BLENDED
public static final int SCREEN_DOOR
public static final int NONE
Constructor Detail |
public TransparencyAttributes()
public TransparencyAttributes(int tMode, float tVal)
tMode
- the transparency mode.tVal
- the transparency value.Method Detail |
public final void setTransparencyMode(int transparencyMode)
transparencyMode
- the transparency mode to be used, one of
NONE, FASTEST, NICEST, SCREEN_DOOR, or BLENDEDpublic final int getTransparencyMode()
public final 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 transparentpublic final float getTransparency()
public NodeComponent cloneNodeComponent()
duplicateNode
method.Node.duplicateNode(javax.media.j3d.Node, boolean)
,
Node.cloneTree()
,
NodeComponent.setDuplicateOnCloneTree(boolean)
public void duplicateNodeComponent(NodeComponent originalNodeComponent)
originalNodeComponent
to
the current node. This routine is called as part of the
cloneTree
operation.originalNodeComponent
- the node to duplicate.Node.cloneTree()
,
Node.duplicateNode(javax.media.j3d.Node, boolean)
,
NodeComponent.setDuplicateOnCloneTree(boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |