|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.NodeComponent
org.xith3d.scenegraph.PolygonAttributes
public class PolygonAttributes
PolygonAttributes defines attributes that apply to .
| Field Summary | |
|---|---|
static org.jagatoo.opengl.enums.FaceCullMode |
CULL_BACK
|
static org.jagatoo.opengl.enums.FaceCullMode |
CULL_FRONT
|
static org.jagatoo.opengl.enums.FaceCullMode |
CULL_NONE
|
static org.jagatoo.opengl.enums.FaceCullMode |
CULL_SWITCH
|
static org.jagatoo.opengl.enums.DrawMode |
POLYGON_FILL
|
static org.jagatoo.opengl.enums.DrawMode |
POLYGON_LINE
|
static org.jagatoo.opengl.enums.DrawMode |
POLYGON_POINT
|
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
PolygonAttributes()
Constructs a new PolygonAttributes object. |
|
PolygonAttributes(org.jagatoo.opengl.enums.DrawMode drawMode)
Constructs a new PolygonAttributes object. |
|
PolygonAttributes(org.jagatoo.opengl.enums.DrawMode drawMode,
org.jagatoo.opengl.enums.FaceCullMode cullFace)
Constructs a new PolygonAttributes object. |
|
PolygonAttributes(org.jagatoo.opengl.enums.DrawMode drawMode,
org.jagatoo.opengl.enums.FaceCullMode cullFace,
float polygonOffset)
Constructs a new PolygonAttributes object. |
|
PolygonAttributes(org.jagatoo.opengl.enums.DrawMode drawMode,
org.jagatoo.opengl.enums.FaceCullMode cullFace,
float polygonOffset,
float polygonOffsetFactor)
Constructs a new PolygonAttributes object. |
|
PolygonAttributes(org.jagatoo.opengl.enums.DrawMode drawMode,
org.jagatoo.opengl.enums.FaceCullMode cullFace,
float polygonOffset,
float polygonOffsetFactor,
boolean backFaceNormalFlip,
boolean antialiasing,
boolean sortEnabled)
Constructs a new PolygonAttributes object. |
|
PolygonAttributes(org.jagatoo.opengl.enums.FaceCullMode cullFace)
Constructs a new PolygonAttributes object. |
|
| Method Summary | |
|---|---|
PolygonAttributes |
cloneNodeComponent(boolean forceDuplicate)
|
int |
compareTo(PolygonAttributes o)
|
protected void |
duplicateNodeComponent(NodeComponent original,
boolean forceDuplicate)
|
boolean |
equals(java.lang.Object o)
|
void |
freeOpenGLResources(CanvasPeer canvasPeer)
This method frees OpenGL resources (names) for all this NodeComponent and all child-components. |
boolean |
getBackFaceNormalFlip()
|
PolygonAttributes |
getCopy()
|
org.jagatoo.opengl.enums.DrawMode |
getDrawMode()
|
org.jagatoo.opengl.enums.FaceCullMode |
getFaceCullMode()
Gets the face culling mode. |
float |
getPolygonOffset()
Gets the polygon offset. |
float |
getPolygonOffsetFactor()
|
long |
getStateId()
|
StateNode |
getStateNode()
|
boolean |
isPolygonAntialiasingEnabled()
Get antialiasing. |
boolean |
isSortEnabled()
|
void |
setBackFaceNormalFlip(boolean backFaceNormalFlip)
|
void |
setDrawMode(org.jagatoo.opengl.enums.DrawMode drawMode)
Sets the polygon draw mode. |
void |
setFaceCullMode(org.jagatoo.opengl.enums.FaceCullMode mode)
Sets the face culling mode. |
void |
setPolygonAntialiasingEnabled(boolean state)
Set antialiasing . |
void |
setPolygonOffset(float polygonOffset)
Sets the polygon offset. |
void |
setPolygonOffsetFactor(float polygonOffsetFactor)
|
void |
setSortEnabled(boolean sortEnabled)
Enables or disables transaprency sorting for this shape. |
void |
setStateNode(StateNode node)
Used by the render engine to set the state id for the node. |
| Methods inherited from class org.xith3d.scenegraph.NodeComponent |
|---|
freeOpenGLResources, getDuplicateOnCloneTree, getModListener, isChanged, isChanged2, setChanged, setDuplicateOnCloneTree, setModListener |
| Methods inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final org.jagatoo.opengl.enums.FaceCullMode CULL_NONE
FaceCullMode.NONEpublic static final org.jagatoo.opengl.enums.FaceCullMode CULL_FRONT
FaceCullMode.FRONTpublic static final org.jagatoo.opengl.enums.FaceCullMode CULL_BACK
FaceCullMode.BACKpublic static final org.jagatoo.opengl.enums.FaceCullMode CULL_SWITCH
FaceCullMode.SWITCHpublic static final org.jagatoo.opengl.enums.DrawMode POLYGON_POINT
DrawMode.POINTpublic static final org.jagatoo.opengl.enums.DrawMode POLYGON_LINE
DrawMode.LINEpublic static final org.jagatoo.opengl.enums.DrawMode POLYGON_FILL
DrawMode.FILL| Constructor Detail |
|---|
public PolygonAttributes()
public PolygonAttributes(org.jagatoo.opengl.enums.DrawMode drawMode,
org.jagatoo.opengl.enums.FaceCullMode cullFace,
float polygonOffset)
public PolygonAttributes(org.jagatoo.opengl.enums.DrawMode drawMode,
org.jagatoo.opengl.enums.FaceCullMode cullFace)
public PolygonAttributes(org.jagatoo.opengl.enums.DrawMode drawMode)
public PolygonAttributes(org.jagatoo.opengl.enums.FaceCullMode cullFace)
public PolygonAttributes(org.jagatoo.opengl.enums.DrawMode drawMode,
org.jagatoo.opengl.enums.FaceCullMode cullFace,
float polygonOffset,
float polygonOffsetFactor)
public PolygonAttributes(org.jagatoo.opengl.enums.DrawMode drawMode,
org.jagatoo.opengl.enums.FaceCullMode cullFace,
float polygonOffset,
float polygonOffsetFactor,
boolean backFaceNormalFlip,
boolean antialiasing,
boolean sortEnabled)
| Method Detail |
|---|
public void setDrawMode(org.jagatoo.opengl.enums.DrawMode drawMode)
drawMode - public final org.jagatoo.opengl.enums.DrawMode getDrawMode()
public final void setFaceCullMode(org.jagatoo.opengl.enums.FaceCullMode mode)
public final org.jagatoo.opengl.enums.FaceCullMode getFaceCullMode()
public final void setPolygonOffset(float polygonOffset)
public final float getPolygonOffset()
public final void setPolygonAntialiasingEnabled(boolean state)
public final boolean isPolygonAntialiasingEnabled()
public void setSortEnabled(boolean sortEnabled)
Transparency attributes can be marked to disable sorting transparent shapes by calling of setSortEnabled(false). When this is done, transparent shape it will not be drawn during the transparent rendering pass, but will be drawn with the solids (in the opaque rendering pass), i.e. this transparent shape will be treated just like regular opaque shape.
By default, sorting is enabled.
OrderedGroup,
TransparencyAttributes.setSortEnabled(boolean)public final boolean isSortEnabled()
public void setBackFaceNormalFlip(boolean backFaceNormalFlip)
public final boolean getBackFaceNormalFlip()
public void setPolygonOffsetFactor(float polygonOffsetFactor)
public final float getPolygonOffsetFactor()
public final void setStateNode(StateNode node)
StateTrackable
setStateNode in interface StateTrackable<PolygonAttributes>public final StateNode getStateNode()
getStateNode in interface StateTrackable<PolygonAttributes>public final long getStateId()
public PolygonAttributes getCopy()
getCopy in interface StateTrackable<PolygonAttributes>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(PolygonAttributes o)
compareTo in interface java.lang.Comparable<PolygonAttributes>
protected void duplicateNodeComponent(NodeComponent original,
boolean forceDuplicate)
duplicateNodeComponent in class NodeComponentpublic PolygonAttributes cloneNodeComponent(boolean forceDuplicate)
cloneNodeComponent in class NodeComponentpublic void freeOpenGLResources(CanvasPeer canvasPeer)
freeOpenGLResources in class NodeComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||