|
|||||||||
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.RenderingAttributes
The RenderingAttributes object defines all rendering state that can be set as a component object of a Shape3D node.
Field Summary | |
static int |
ALLOW_ALPHA_TEST_FUNCTION_READ
Specifies that this RenderingAttributes object allows reading its alpha test function component information. |
static int |
ALLOW_ALPHA_TEST_FUNCTION_WRITE
Specifies that this RenderingAttributes object allows writing its alpha test function component information. |
static int |
ALLOW_ALPHA_TEST_VALUE_READ
Specifies that this RenderingAttributes object allows reading its alpha test value component information. |
static int |
ALLOW_ALPHA_TEST_VALUE_WRITE
Specifies that this RenderingAttributes object allows writing its alpha test value component information. |
static int |
ALLOW_DEPTH_ENABLE_READ
Specifies that this RenderingAttributes object allows reading its depth buffer enable and depth buffer write enable component information. |
static int |
ALWAYS
Indicates pixels are always drawn irrespective of alpha value. |
static int |
EQUAL
Indicates pixels are drawn if pixel alpha value is equal to alpha test value. |
static int |
GREATER
Indicates pixels are drawn if pixel alpha value is greater than alpha test value. |
static int |
GREATER_OR_EQUAL
Indicates pixels are drawn if pixel alpha value is greater than or equal to alpha test value. |
static int |
LESS
Indicates pixels are drawn if pixel alpha value is less than alpha test value. |
static int |
LESS_OR_EQUAL
Indicates pixels are drawn if pixel alpha value is less than or equal to alpha test value. |
static int |
NEVER
Indicates pixels are never drawn irrespective of alpha value. |
static int |
NOT_EQUAL
Indicates pixels are drawn if pixel alpha value is not equal to alpha test value. |
Constructor Summary | |
RenderingAttributes()
Constructs a RenderingAttributes object with default parameters. |
|
RenderingAttributes(boolean depthBufferEnable,
boolean depthBufferWriteEnable,
float alphaTestValue,
int alphaTestFunction)
Constructs a RenderingAttributes object with specified values. |
Method Summary | |
NodeComponent |
cloneNodeComponent()
Creates a new RenderingAttributes object. |
void |
duplicateNodeComponent(NodeComponent originalNodeComponent)
Copies the information found in originalNodeComponent to
the current node. |
int |
getAlphaTestFunction()
Retrieves current alpha test function. |
float |
getAlphaTestValue()
Retrieves the alpha test value. |
boolean |
getDepthBufferEnable()
Retrieves the state of zBuffer Enable flag |
boolean |
getDepthBufferWriteEnable()
Retrieves the state of Depth Buffer Write Enable flag |
void |
setAlphaTestFunction(int function)
Set alpha test function. |
void |
setAlphaTestValue(float value)
Set alpha test value used by alpha test function. |
void |
setDepthBufferEnable(boolean state)
Enables or disables depth buffer mode for this RenderAttributes component object. |
void |
setDepthBufferWriteEnable(boolean state)
Enables or disables writing the depth buffer for this 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_ALPHA_TEST_VALUE_READ
public static final int ALLOW_ALPHA_TEST_VALUE_WRITE
public static final int ALLOW_ALPHA_TEST_FUNCTION_READ
public static final int ALLOW_ALPHA_TEST_FUNCTION_WRITE
public static final int ALLOW_DEPTH_ENABLE_READ
public static final int ALWAYS
public static final int NEVER
public static final int EQUAL
public static final int NOT_EQUAL
public static final int LESS
public static final int LESS_OR_EQUAL
public static final int GREATER
public static final int GREATER_OR_EQUAL
Constructor Detail |
public RenderingAttributes()
public RenderingAttributes(boolean depthBufferEnable, boolean depthBufferWriteEnable, float alphaTestValue, int alphaTestFunction)
depthBufferEnable
- a flag to turn depth buffer on/off.depthBufferWriteEnable
- a flag to to make depth buffer
read/write or read only.alphaTestValue
- the alpha test reference value.alphaTestFunction
- the function for comparing alpha values.Method Detail |
public final void setDepthBufferEnable(boolean state)
state
- true or false to enable or disable depth buffer modepublic final boolean getDepthBufferEnable()
public final void setDepthBufferWriteEnable(boolean state)
state
- true or false to enable or disable depth buffer Write modeView.setDepthBufferFreezeTransparent(boolean)
public final boolean getDepthBufferWriteEnable()
public final void setAlphaTestValue(float value)
value
- the alpha valuepublic final float getAlphaTestValue()
public final void setAlphaTestFunction(int function)
function
- the new alpha test function. One of:
ALWAYS, NEVER, EQUAL, NOT_EQUAL, LESS, LESS_OR_EQUAL, GREATER,
GREATER_OR_EQUAL.public final int getAlphaTestFunction()
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 |