public class PolygonAttributes extends NodeComponent
Appearance| Modifier and Type | Field | Description |
|---|---|---|
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 | Description |
|---|---|
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.
|
PolygonAttributes(int polygonMode,
int cullFace,
float polygonOffset,
boolean backFaceNormalFlip,
float polygonOffsetFactor) |
Constructs PolygonAttributes object with specified values.
|
| Modifier and Type | Method | Description |
|---|---|---|
NodeComponent |
cloneNodeComponent() |
Deprecated.
replaced with cloneNodeComponent(boolean forceDuplicate)
|
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 constant polygon offset.
|
float |
getPolygonOffsetFactor() |
Gets the polygon offset factor.
|
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 constant polygon offset to the specified value.
|
void |
setPolygonOffsetFactor(float polygonOffsetFactor) |
Sets the polygon offset factor to the specified value.
|
cloneNodeComponent, duplicateNodeComponent, duplicateNodeComponent, getDuplicateOnCloneTree, setDuplicateOnCloneTreeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferencespublic 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
public PolygonAttributes()
public PolygonAttributes(int polygonMode,
int cullFace,
float polygonOffset)
polygonMode - polygon rasterization mode; one of POLYGON_POINT,
POLYGON_LINE, or POLYGON_FILLcullFace - polygon culling mode; one of CULL_NONE,
CULL_BACK, or CULL_FRONTpolygonOffset - constant polygon offsetpublic PolygonAttributes(int polygonMode,
int cullFace,
float polygonOffset,
boolean backFaceNormalFlip)
polygonMode - polygon rasterization mode; one of POLYGON_POINT,
POLYGON_LINE, or POLYGON_FILLcullFace - polygon culling mode; one of CULL_NONE,
CULL_BACK, or CULL_FRONTpolygonOffset - constant polygon offsetbackFaceNormalFlip - back face normal flip flag; true or falsepublic PolygonAttributes(int polygonMode,
int cullFace,
float polygonOffset,
boolean backFaceNormalFlip,
float polygonOffsetFactor)
polygonMode - polygon rasterization mode; one of POLYGON_POINT,
POLYGON_LINE, or POLYGON_FILLcullFace - polygon culling mode; one of CULL_NONE,
CULL_BACK, or CULL_FRONTpolygonOffset - constant polygon offsetbackFaceNormalFlip - back face normal flip flag; true or falsepolygonOffsetFactor - polygon offset factor for slope-based polygon
offsetpublic void setCullFace(int cullFace)
cullFace - the face to be culled, one of:
CULL_NONE, CULL_FRONT, or CULL_BACKCapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphpublic int getCullFace()
CapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphpublic void setBackFaceNormalFlip(boolean backFaceNormalFlip)
backFaceNormalFlip - the back face normal flip flagCapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphpublic boolean getBackFaceNormalFlip()
CapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphpublic void setPolygonMode(int polygonMode)
polygonMode - the polygon rasterization mode to be used; one of
POLYGON_FILL, POLYGON_LINE, or POLYGON_POINTCapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphpublic int getPolygonMode()
CapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphpublic void setPolygonOffset(float polygonOffset)
polygonOffset - the constant polygon offsetCapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphpublic float getPolygonOffset()
CapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphpublic void setPolygonOffsetFactor(float polygonOffsetFactor)
polygonOffsetFactor - the polygon offset factorCapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphpublic float getPolygonOffsetFactor()
CapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphpublic NodeComponent cloneNodeComponent()
cloneNodeComponent in class NodeComponentCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.