class PolygonAttributesRetained extends NodeComponentRetained
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
backFaceNormalFlip |
(package private) int |
cullFace |
(package private) static int |
POLYGON_BACKFACENORMALFLIP_CHANGED |
(package private) static int |
POLYGON_CULL_CHANGED |
(package private) static int |
POLYGON_MODE_CHANGED |
(package private) static int |
POLYGON_OFFSET_CHANGED |
(package private) static int |
POLYGON_OFFSETFACTOR_CHANGED |
(package private) int |
polygonMode |
(package private) float |
polygonOffset |
(package private) float |
polygonOffsetFactor |
changedFrequent, compChanged, duplicateOnCloneTree, mirror, refCnt, refCount, usersDONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, sourcelistIdx| Constructor and Description |
|---|
PolygonAttributesRetained() |
| Modifier and Type | Method and Description |
|---|---|
(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(PolygonAttributesRetained pr) |
(package private) boolean |
getBackFaceNormalFlip()
Gets the back face normal flip flag.
|
(package private) int |
getCullFace()
Gets the face culling for this
appearance component object.
|
(package private) int |
getPolygonMode()
Gets the polygon rasterization mode for this
appearance component object.
|
(package private) float |
getPolygonOffset()
Gets the polygon offset.
|
(package private) float |
getPolygonOffsetFactor()
Gets the polygon offset factor.
|
(package private) void |
handleFrequencyChange(int bit) |
(package private) void |
initBackFaceNormalFlip(boolean backFaceNormalFlip)
Sets the back face normal flip flag to the specified value
This flag indicates whether vertex normals of back facing polygons
should be flipped (negated) prior to lighting.
|
(package private) void |
initCullFace(int cullFace)
Sets the face culling for this
appearance 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 |
initPolygonMode(int polygonMode)
Sets the polygon rasterization mode for this
appearance component object.
|
(package private) void |
initPolygonOffset(float polygonOffset)
Sets the polygon offset to the specified value and sends a
message notifying the interested structures of the change.
|
(package private) void |
initPolygonOffsetFactor(float polygonOffsetFactor)
Sets the polygon offset factor to the specified value and sends a
message notifying the interested structures of the change.
|
(package private) void |
sendMessage(int attrMask,
java.lang.Object attr) |
protected void |
set(PolygonAttributesRetained pr) |
(package private) void |
setBackFaceNormalFlip(boolean backFaceNormalFlip)
Sets the back face normal flip flag to the specified value
and sends a message notifying
the interested structures of the change.
|
(package private) void |
setCullFace(int cullFace)
Sets the face culling for this
appearance component object and sends a message notifying
the interested structures of the change.
|
(package private) void |
setPolygonMode(int polygonMode)
Sets the polygon rasterization mode for this
appearance component object and sends a message notifying
the interested structures of the change.
|
(package private) void |
setPolygonOffset(float polygonOffset)
Sets the polygon offset to the specified value and sends a
message notifying the interested structures of the change.
|
(package private) void |
setPolygonOffsetFactor(float polygonOffsetFactor)
Sets the polygon offset factor to the specified value 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)
Updates the native context
|
addAMirrorUser, addUser, clearLive, clone, copyMirrorUsers, decRefCnt, doSetLive, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtx, setLiveclearLive, clearLive, compile, doSetLive, doSetLive, getSource, getVirtualUniverse, isInSetLive, isStatic, markAsLive, merge, mergeTransform, setCompiled, setLive, setLive, setSource, traversegetIdxUsed, incIdxUsedstatic final int POLYGON_MODE_CHANGED
static final int POLYGON_CULL_CHANGED
static final int POLYGON_OFFSET_CHANGED
static final int POLYGON_BACKFACENORMALFLIP_CHANGED
static final int POLYGON_OFFSETFACTOR_CHANGED
int polygonMode
int cullFace
boolean backFaceNormalFlip
float polygonOffset
float polygonOffsetFactor
final void initCullFace(int cullFace)
cullFace - the face to be culled, one of:
CULL_NONE, CULL_FRONT, or CULL_BACKfinal void setCullFace(int cullFace)
cullFace - the face to be culled, one of:
CULL_NONE, CULL_FRONT, or CULL_BACKfinal int getCullFace()
final void initBackFaceNormalFlip(boolean backFaceNormalFlip)
backFaceNormalFlip - the back face normal flip flagfinal void setBackFaceNormalFlip(boolean backFaceNormalFlip)
backFaceNormalFlip - the back face normal flip flagfinal boolean getBackFaceNormalFlip()
final void initPolygonMode(int polygonMode)
polygonMode - the polygon rasterization mode to be used; one of
POLYGON_FILL, POLYGON_LINE, or POLYGON_POINTfinal void setPolygonMode(int polygonMode)
polygonMode - the polygon rasterization mode to be used; one of
POLYGON_FILL, POLYGON_LINE, or POLYGON_POINTfinal int getPolygonMode()
final void initPolygonOffset(float polygonOffset)
polygonOffset - the polygon offsetfinal void setPolygonOffset(float polygonOffset)
polygonOffset - the polygon offsetfinal float getPolygonOffset()
final void initPolygonOffsetFactor(float polygonOffsetFactor)
polygonOffsetFactor - the polygon offset factorfinal void setPolygonOffsetFactor(float polygonOffsetFactor)
polygonOffsetFactor - the polygon offsetfinal float getPolygonOffsetFactor()
void createMirrorObject()
createMirrorObject in class NodeComponentRetainedvoid updateNative(Context ctx)
void initMirrorObject()
initMirrorObject in class NodeComponentRetainedvoid updateMirrorObject(int component,
java.lang.Object value)
updateMirrorObject in class NodeComponentRetainedboolean equivalent(PolygonAttributesRetained pr)
protected void set(PolygonAttributesRetained pr)
final void sendMessage(int attrMask,
java.lang.Object attr)
void handleFrequencyChange(int bit)
handleFrequencyChange in class SceneGraphObjectRetainedCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.