|
|||||||||
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.PolygonAttributesRetained
class PolygonAttributesRetained
The PolygonAttributes object defines all rendering state that can be set as a component object of a Shape3D node.
Field Summary | |
---|---|
(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
|
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 | |
---|---|
PolygonAttributesRetained()
|
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(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 |
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 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
Constructor Detail |
---|
PolygonAttributesRetained()
Method Detail |
---|
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 NodeComponentRetained
void updateNative(Context ctx)
void initMirrorObject()
initMirrorObject
in class NodeComponentRetained
void updateMirrorObject(int component, java.lang.Object value)
updateMirrorObject
in class NodeComponentRetained
boolean equivalent(PolygonAttributesRetained pr)
protected void set(PolygonAttributesRetained pr)
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 |