|
||||||||||
| 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.LineAttributes
public class LineAttributes
LineAttributes defines attributes that apply to .
| Field Summary | |
|---|---|
static org.jagatoo.opengl.enums.LinePattern |
PATTERN_DASH
|
static org.jagatoo.opengl.enums.LinePattern |
PATTERN_DASH_DOT
|
static org.jagatoo.opengl.enums.LinePattern |
PATTERN_DOT
|
static org.jagatoo.opengl.enums.LinePattern |
PATTERN_SOLID
|
static org.jagatoo.opengl.enums.LinePattern |
PATTERN_USER_DEFINED
|
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
LineAttributes()
Constructs a new LineAttributes object. |
|
LineAttributes(float lineWidth,
org.jagatoo.opengl.enums.LinePattern linePattern,
boolean antialiasing)
Constructs a new LineAttributes object with the specified attributes. |
|
LineAttributes(float lineWidth,
org.jagatoo.opengl.enums.LinePattern linePattern,
int patternScaleFactor,
int patternMask,
boolean antialiasing)
Constructs a new LineAttributes object with the specified attributes. |
|
| Method Summary | |
|---|---|
LineAttributes |
cloneNodeComponent(boolean forceDuplicate)
|
int |
compareTo(LineAttributes 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. |
LineAttributes |
getCopy()
|
org.jagatoo.opengl.enums.LinePattern |
getLinePattern()
Get the line pattern. |
float |
getLineWidth()
Get the line width. |
int |
getPatternMask()
Get the line pattern mask. |
int |
getPatternScaleFactor()
Get the line pattern repeat factor. |
long |
getStateId()
|
StateNode |
getStateNode()
|
boolean |
isLineAntialiasingEnabled()
Get antialiasing. |
boolean |
isSortEnabled()
|
void |
setLineAntialiasingEnabled(boolean state)
Set antialiasing . |
void |
setLinePattern(org.jagatoo.opengl.enums.LinePattern linePattern)
Set the line pattern. |
void |
setLineWidth(float lineWidth)
Set the line width. |
void |
setPatternMask(int patternMask)
Set the line pattern mask. |
void |
setPatternScaleFactor(int factor)
Set the line pattern repeat (scale) factor. |
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.LinePattern PATTERN_SOLID
LineAttributes.Pattern#SOLIDpublic static final org.jagatoo.opengl.enums.LinePattern PATTERN_DASH
LineAttributes.LinePattern#DASHEDpublic static final org.jagatoo.opengl.enums.LinePattern PATTERN_DOT
LineAttributes.LinePattern#DOTTEDpublic static final org.jagatoo.opengl.enums.LinePattern PATTERN_DASH_DOT
LineAttributes.LinePattern#DASHED_DOTTEDpublic static final org.jagatoo.opengl.enums.LinePattern PATTERN_USER_DEFINED
LineAttributes.LinePattern#USER_DEFINED| Constructor Detail |
|---|
public LineAttributes()
public LineAttributes(float lineWidth,
org.jagatoo.opengl.enums.LinePattern linePattern,
boolean antialiasing)
public LineAttributes(float lineWidth,
org.jagatoo.opengl.enums.LinePattern linePattern,
int patternScaleFactor,
int patternMask,
boolean antialiasing)
| Method Detail |
|---|
public final void setLineWidth(float lineWidth)
public final float getLineWidth()
public final void setLineAntialiasingEnabled(boolean state)
public final boolean isLineAntialiasingEnabled()
public final void setLinePattern(org.jagatoo.opengl.enums.LinePattern linePattern)
public final org.jagatoo.opengl.enums.LinePattern getLinePattern()
public final void setPatternMask(int patternMask)
public final int getPatternMask()
public final void setPatternScaleFactor(int factor)
Repeat (scale) factor is a multiplier for each bit in the line stipple pattern. If factor is 3, for example, each bit in the pattern will be used three times before the next bit in the pattern is used. The factor parameter is clamped to the range [1, 256] and defaults to one.
public final int getPatternScaleFactor()
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 boolean isSortEnabled()
public final void setStateNode(StateNode node)
StateTrackable
setStateNode in interface StateTrackable<LineAttributes>public final StateNode getStateNode()
getStateNode in interface StateTrackable<LineAttributes>public final long getStateId()
public LineAttributes getCopy()
getCopy in interface StateTrackable<LineAttributes>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(LineAttributes o)
compareTo in interface java.lang.Comparable<LineAttributes>
protected void duplicateNodeComponent(NodeComponent original,
boolean forceDuplicate)
duplicateNodeComponent in class NodeComponentpublic LineAttributes 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 | |||||||||