|
|||||||||
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.RenderingAttributesRetained
class RenderingAttributesRetained
The RenderingAttributes object defines all rendering state that can be set as a component object of a Shape3D node.
Field Summary | |
---|---|
(package private) static int |
ALPHA_TEST_FUNC
|
(package private) static int |
ALPHA_TEST_VALUE
|
(package private) int |
alphaTestFunction
|
(package private) float |
alphaTestValue
|
(package private) static int |
DEPTH_ENABLE
|
(package private) static int |
DEPTH_TEST_FUNC
|
(package private) static int |
DEPTH_WRITE_ENABLE
|
(package private) boolean |
depthBufferEnable
|
(package private) boolean |
depthBufferWriteEnable
|
(package private) int |
depthTestFunction
|
(package private) static int |
IGNORE_VCOLOR
|
(package private) boolean |
ignoreVertexColors
|
(package private) static int |
LEQUAL
|
(package private) static int |
LESS
|
(package private) static int |
RASTER_OP_ENABLE
|
(package private) static int |
RASTER_OP_VALUE
|
(package private) int |
rasterOp
|
(package private) boolean |
rasterOpEnable
|
(package private) static int |
STENCIL_ENABLE
|
(package private) static int |
STENCIL_FUNC
|
(package private) static int |
STENCIL_OP_VALUES
|
(package private) static int |
STENCIL_WRITE_MASK
|
(package private) int |
stencilCompareMask
|
(package private) boolean |
stencilEnable
|
(package private) int |
stencilFailOp
|
(package private) int |
stencilFunction
|
(package private) int |
stencilReferenceValue
|
(package private) int |
stencilWriteMask
|
(package private) int |
stencilZFailOp
|
(package private) int |
stencilZPassOp
|
(package private) boolean |
visible
|
(package private) static int |
VISIBLE
|
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 | |
---|---|
RenderingAttributesRetained()
|
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(RenderingAttributesRetained rr)
|
(package private) int |
getAlphaTestFunction()
Retrieves current alpha test function. |
(package private) float |
getAlphaTestValue()
Retrieves the alpha test value. |
(package private) boolean |
getDepthBufferEnable()
Retrieves the state of zBuffer Enable flag |
(package private) boolean |
getDepthBufferWriteEnable()
Retrieves the state of Depth Buffer Write Enable flag |
(package private) int |
getDepthTestFunction()
Retrieves current depth test function. |
(package private) boolean |
getIgnoreVertexColors()
Retrieves the state of vertex color Enable flag |
(package private) int |
getRasterOp()
Retrieves the current raster op value. |
(package private) boolean |
getRasterOpEnable()
Retrieves the current raster op enable flag. |
(package private) boolean |
getStencilEnable()
Retrieves the current stencil enable state. |
(package private) void |
getStencilFunction(int[] params)
Retrieves the current stencil op. |
(package private) void |
getStencilOp(int[] stencilOps)
Retrieves the current stencil op. |
(package private) int |
getStencilWriteMask()
Retrieves the current stencil write mask |
(package private) boolean |
getVisible()
Retrieves the visibility flag for this RenderingAttributes object. |
(package private) void |
handleFrequencyChange(int bit)
|
(package private) void |
initAlphaTestFunction(int function)
Set alpha test function. |
(package private) void |
initAlphaTestValue(float value)
Set alpha test value used by alpha test function. |
(package private) void |
initDepthBufferEnable(boolean state)
Enables or disables depth buffer mode for this RenderAttributes component object. |
(package private) void |
initDepthBufferWriteEnable(boolean state)
Enables or disables writing the depth buffer for this object. |
(package private) void |
initDepthTestFunction(int function)
Set depth test function. |
(package private) void |
initIgnoreVertexColors(boolean state)
Enables or disables vertex colors for this RenderAttributes component object. |
(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 |
initRasterOp(int op)
Initialize the raster op value |
(package private) void |
initRasterOpEnable(boolean flag)
Initialize the raster op enable flag |
(package private) void |
initStencilEnable(boolean state)
Initialize the stencil enable state |
(package private) void |
initStencilFunction(int function,
int refValue,
int compareMask)
Initialize the stencil function value |
(package private) void |
initStencilOp(int failOp,
int zFailOp,
int zPassOp)
Initialize the stencil op. |
(package private) void |
initStencilWriteMask(int mask)
Initialize the stencil write mask |
(package private) void |
initVisible(boolean state)
Sets the visibility flag for this RenderingAttributes component object. |
(package private) void |
sendMessage(int attrMask,
java.lang.Object attr)
|
protected void |
set(RenderingAttributesRetained ra)
|
(package private) void |
setAlphaTestFunction(int function)
Set alpha test function and sends a message notifying the interested structures of the change. |
(package private) void |
setAlphaTestValue(float value)
Set alpha test value used by alpha test function and sends a message notifying the interested structures of the change. |
(package private) void |
setDepthBufferEnable(boolean state)
Enables or disables depth buffer mode for this RenderAttributes component object and sends a message notifying the interested structures of the change. |
(package private) void |
setDepthBufferWriteEnable(boolean state)
Enables or disables writing the depth buffer for this object and sends a message notifying the interested structures of the change. |
(package private) void |
setDepthTestFunction(int function)
Set depth test function. |
(package private) void |
setIgnoreVertexColors(boolean state)
Enables or disables vertex colors for this RenderAttributes component object and sends a message notifying the interested structures of the change. |
(package private) void |
setRasterOp(int op)
Set the raster op value |
(package private) void |
setRasterOpEnable(boolean flag)
Set the raster op enable flag |
(package private) void |
setStencilEnable(boolean state)
Set the stencil enable state |
(package private) void |
setStencilFunction(int function,
int refValue,
int compareMask)
Set the stencil function value |
(package private) void |
setStencilOp(int failOp,
int zFailOp,
int zPassOp)
Set the stencil op. |
(package private) void |
setStencilWriteMask(int mask)
Set the stencil write mask |
(package private) void |
setVisible(boolean state)
Sets the visibility flag for this RenderingAttributes component object. |
(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(Canvas3D c3d,
boolean depthBufferWriteEnableOverride,
boolean depthBufferEnableOverride)
Updates the native context. |
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 DEPTH_ENABLE
static final int DEPTH_WRITE_ENABLE
static final int ALPHA_TEST_VALUE
static final int ALPHA_TEST_FUNC
static final int VISIBLE
static final int IGNORE_VCOLOR
static final int RASTER_OP_ENABLE
static final int RASTER_OP_VALUE
static final int DEPTH_TEST_FUNC
static final int STENCIL_ENABLE
static final int STENCIL_OP_VALUES
static final int STENCIL_FUNC
static final int STENCIL_WRITE_MASK
boolean depthBufferEnable
boolean depthBufferWriteEnable
float alphaTestValue
int alphaTestFunction
int depthTestFunction
boolean visible
boolean ignoreVertexColors
boolean rasterOpEnable
int rasterOp
boolean stencilEnable
int stencilFailOp
int stencilZFailOp
int stencilZPassOp
int stencilFunction
int stencilReferenceValue
int stencilCompareMask
int stencilWriteMask
static final int LESS
static final int LEQUAL
Constructor Detail |
---|
RenderingAttributesRetained()
Method Detail |
---|
final void initVisible(boolean state)
visible
- true or false to enable or disable visibility
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphView.setVisibilityPolicy(int)
final void setVisible(boolean state)
visible
- true or false to enable or disable visibility
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphView.setVisibilityPolicy(int)
final boolean getVisible()
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphfinal void initIgnoreVertexColors(boolean state)
state
- true or false to enable or disable vertex colorsfinal void setIgnoreVertexColors(boolean state)
state
- true or false to enable or disable depth vertex colorsfinal boolean getIgnoreVertexColors()
final void initDepthBufferEnable(boolean state)
state
- true or false to enable or disable depth buffer modefinal void setDepthBufferEnable(boolean state)
state
- true or false to enable or disable depth buffer modefinal boolean getDepthBufferEnable()
final void initDepthBufferWriteEnable(boolean state)
state
- true or false to enable or disable depth buffer Write modeView.setDepthBufferFreezeTransparent(boolean)
final void setDepthBufferWriteEnable(boolean state)
state
- true or false to enable or disable depth buffer Write modeView.setDepthBufferFreezeTransparent(boolean)
final boolean getDepthBufferWriteEnable()
final void initAlphaTestValue(float value)
value
- the alpha valuefinal void setAlphaTestValue(float value)
value
- the alpha valuefinal float getAlphaTestValue()
final void initAlphaTestFunction(int function)
function
- the new alpha test function. One of:
ALWAYS, NEVER, EQUAL, NOT_EQUAL, LESS, LESS_OR_EQUAL, GREATER,
GREATER_OR_EQUAL.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.final int getAlphaTestFunction()
final void initDepthTestFunction(int function)
function
- the new depth test function. One of:
ALWAYS, NEVER, EQUAL, NOT_EQUAL, LESS, LESS_OR_EQUAL, GREATER,
GREATER_OR_EQUAL.
Default value is LESS_OR_EQUALfinal void setDepthTestFunction(int function)
function
- the new depth test function. One of
ALWAYS, NEVER, EQUAL, NOT_EQUAL, LESS, LESS_OR_EQUAL, GREATER,
GREATER_OR_EQUAL
Default value is LESS_OR_EQUALfinal int getDepthTestFunction()
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphfinal void initRasterOpEnable(boolean flag)
final void setRasterOpEnable(boolean flag)
final boolean getRasterOpEnable()
final void initRasterOp(int op)
final void setRasterOp(int op)
final int getRasterOp()
final void initStencilEnable(boolean state)
final void setStencilEnable(boolean state)
final boolean getStencilEnable()
final void initStencilOp(int failOp, int zFailOp, int zPassOp)
final void setStencilOp(int failOp, int zFailOp, int zPassOp)
final void getStencilOp(int[] stencilOps)
final void initStencilFunction(int function, int refValue, int compareMask)
final void setStencilFunction(int function, int refValue, int compareMask)
final void getStencilFunction(int[] params)
final void initStencilWriteMask(int mask)
final void setStencilWriteMask(int mask)
final int getStencilWriteMask()
void updateNative(Canvas3D c3d, boolean depthBufferWriteEnableOverride, boolean depthBufferEnableOverride)
void createMirrorObject()
createMirrorObject
in class NodeComponentRetained
void initMirrorObject()
initMirrorObject
in class NodeComponentRetained
void updateMirrorObject(int component, java.lang.Object value)
updateMirrorObject
in class NodeComponentRetained
boolean equivalent(RenderingAttributesRetained rr)
protected void set(RenderingAttributesRetained ra)
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 |