|
|||||||||
| 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.PolygonAttributes
The PolygonAttributes object defines all rendering state that can be set as a component object of a Shape3D node.
| Field Summary | |
static int |
ALLOW_CULL_FACE_READ
Specifies that this PolygonAttributes object allows reading its cull face information. |
static int |
ALLOW_CULL_FACE_WRITE
Specifies that this PolygonAttributes object allows writing its cull face information. |
static int |
ALLOW_MODE_READ
Specifies that this PolygonAttributes object allows reading its polygon mode information. |
static int |
ALLOW_MODE_WRITE
Specifies that this PolygonAttributes object allows writing its polygon mode information. |
static int |
ALLOW_NORMAL_FLIP_READ
Specifies that this PolygonAttributes object allows reading its back face normal flip flag. |
static int |
ALLOW_NORMAL_FLIP_WRITE
Specifies that this PolygonAttributes object allows writing its back face normal flip flag. |
static int |
ALLOW_OFFSET_READ
Specifies that this PolygonAttributes object allows reading its polygon offset information. |
static int |
ALLOW_OFFSET_WRITE
Specifies that this PolygonAttributes object allows writing its polygon offset information. |
static int |
CULL_BACK
Cull all back-facing polygons. |
static int |
CULL_FRONT
Cull all front-facing polygons. |
static int |
CULL_NONE
Don't perform any face culling. |
static int |
POLYGON_FILL
Render polygonal primitives by filling the interior of the polygon. |
static int |
POLYGON_LINE
Render polygonal primitives as lines drawn between consecutive vertices of the polygon. |
static int |
POLYGON_POINT
Render polygonal primitives as points drawn at the vertices of the polygon. |
| Constructor Summary | |
PolygonAttributes()
Constructs a PolygonAttributes object with default parameters. |
|
PolygonAttributes(int polygonMode,
int cullFace,
float polygonOffset)
Constructs a PolygonAttributes object with specified values. |
|
PolygonAttributes(int polygonMode,
int cullFace,
float polygonOffset,
boolean backFaceNormalFlip)
Constructs PolygonAttributes object with specified values. |
|
| Method Summary | |
NodeComponent |
cloneNodeComponent()
Creates a new PolygonAttributes object. |
void |
duplicateNodeComponent(NodeComponent originalNodeComponent)
Copies the information found in originalNodeComponent to
the current node. |
boolean |
getBackFaceNormalFlip()
Gets the back face normal flip flag. |
int |
getCullFace()
Gets the face culling for this appearance component object. |
int |
getPolygonMode()
Gets the polygon rasterization mode for this appearance component object. |
float |
getPolygonOffset()
Gets the polygon offset. |
void |
setBackFaceNormalFlip(boolean backFaceNormalFlip)
Sets the back face normal flip flag to the specified value. |
void |
setCullFace(int cullFace)
Sets the face culling for this appearance component object. |
void |
setPolygonMode(int polygonMode)
Sets the polygon rasterization mode for this appearance component object. |
void |
setPolygonOffset(float polygonOffset)
Sets the polygon offset to the specified value. |
| 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_CULL_FACE_READ
public static final int ALLOW_CULL_FACE_WRITE
public static final int ALLOW_NORMAL_FLIP_READ
public static final int ALLOW_NORMAL_FLIP_WRITE
public static final int ALLOW_MODE_READ
public static final int ALLOW_MODE_WRITE
public static final int ALLOW_OFFSET_READ
public static final int ALLOW_OFFSET_WRITE
public static final int POLYGON_POINT
public static final int POLYGON_LINE
public static final int POLYGON_FILL
public static final int CULL_NONE
public static final int CULL_BACK
public static final int CULL_FRONT
| Constructor Detail |
public PolygonAttributes()
public PolygonAttributes(int polygonMode,
int cullFace,
float polygonOffset)
polygonMode - polygon rasterization mode.cullFace - polygon culling mode.polygonOffset - polygon offset.
public PolygonAttributes(int polygonMode,
int cullFace,
float polygonOffset,
boolean backFaceNormalFlip)
polygonMode - polygon rasterization mode.cullFace - polygon culling mode.polygonOffset - polygon offset.backFaceNormalFlip - back face normal flip flag| Method Detail |
public final void setCullFace(int cullFace)
cullFace - the face to be culled, one of:
CULL_NONE, CULL_FRONT, or CULL_BACKpublic final int getCullFace()
public final void setBackFaceNormalFlip(boolean backFaceNormalFlip)
backFaceNormalFlip - the back face normal flip flagpublic final boolean getBackFaceNormalFlip()
public final void setPolygonMode(int polygonMode)
polygonMode - the polygon rasterization mode to be used; one of
POLYGON_FILL, POLYGON_LINE, or POLYGON_POINTpublic final int getPolygonMode()
public final void setPolygonOffset(float polygonOffset)
polygonOffset - the polygon offsetpublic final float getPolygonOffset()
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 | ||||||||