|
||||||||||
| 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.Node
org.xith3d.scenegraph.Leaf
org.xith3d.scenegraph.Shape3D
org.xith3d.scenegraph.primitives.Line
public class Line
This primitive Shape represents a simple 3D-line.
| Field Summary |
|---|
| Fields inherited from class org.xith3d.scenegraph.Node |
|---|
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, transformGroup, untransformedBounds |
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
Line(org.openmali.vecmath2.Tuple3f end,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color)
Creates a new solid Line of 1 pixel width starting at the origin (0, 0, 0). |
|
Line(org.openmali.vecmath2.Tuple3f end,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
Creates a new Line of 1 pixel width starting at the origin (0, 0, 0). |
|
Line(org.openmali.vecmath2.Tuple3f end,
org.openmali.vecmath2.Colorf color)
Creates a new solid Line of 1 pixel width starting at the origin (0, 0, 0) without antialiasing. |
|
Line(org.openmali.vecmath2.Tuple3f end,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
Creates a new Line of 1 pixel width starting at the origin (0, 0, 0) without antialiasing. |
|
Line(org.openmali.vecmath2.Tuple3f end,
float width,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color)
Creates a new solid Line starting at the origin (0, 0, 0). |
|
Line(org.openmali.vecmath2.Tuple3f end,
float width,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
Creates a new Line starting at the origin (0, 0, 0). |
|
Line(org.openmali.vecmath2.Tuple3f end,
float width,
org.openmali.vecmath2.Colorf color)
Creates a new solid Line starting at the origin (0, 0, 0) without antialiasing. |
|
Line(org.openmali.vecmath2.Tuple3f end,
float width,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
Creates a new Line starting at the origin (0, 0, 0) without antialiasing. |
|
Line(org.openmali.vecmath2.Tuple3f start,
org.openmali.vecmath2.Tuple3f end,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color)
Creates a new solid Line of 1 pixel width. |
|
Line(org.openmali.vecmath2.Tuple3f start,
org.openmali.vecmath2.Tuple3f end,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
Creates a new Line of 1 pixel width. |
|
Line(org.openmali.vecmath2.Tuple3f start,
org.openmali.vecmath2.Tuple3f end,
org.openmali.vecmath2.Colorf color)
Creates a new solid Line of 1 pixel width without antialiasing. |
|
Line(org.openmali.vecmath2.Tuple3f start,
org.openmali.vecmath2.Tuple3f end,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
Creates a new Line of 1 pixel width without antialiasing. |
|
Line(org.openmali.vecmath2.Tuple3f start,
org.openmali.vecmath2.Tuple3f end,
float width,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color)
Creates a new solid Line. |
|
Line(org.openmali.vecmath2.Tuple3f start,
org.openmali.vecmath2.Tuple3f end,
float width,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
Creates a new Line. |
|
Line(org.openmali.vecmath2.Tuple3f start,
org.openmali.vecmath2.Tuple3f end,
float width,
org.openmali.vecmath2.Colorf color)
Creates a new solid Line without antialiasing. |
|
| Method Summary | |
|---|---|
org.openmali.vecmath2.Colorf |
getColor()
Returns the Line's color. |
float[] |
getCoordinates()
Returns this Line's coordinates. |
LineArray |
getGeometry()
|
org.jagatoo.opengl.enums.LinePattern |
getPattern()
Returns the Line's pattern. |
float |
getWidth()
Return the Line's width in pixels. |
boolean |
isAntialiasingEnabled()
Returns the current antialiasing flag for this line. |
void |
setAntialiasingEnabled(boolean enabled)
Sets the Line's antialiasing flag. |
void |
setColor(org.openmali.vecmath2.Colorf color)
Sets the Line's color. |
void |
setCoordinates(float[] coords)
Sets this Line's coordinates. |
void |
setCoordinates(float x1,
float y1,
float z1)
Sets this Line's coordinates. |
void |
setCoordinates(float x0,
float y0,
float z0,
float x1,
float y1,
float z1)
Sets this Line's coordinates. |
void |
setCoordinates(org.openmali.vecmath2.Tuple3f end)
Sets this Line's coordinates. |
void |
setCoordinates(org.openmali.vecmath2.Tuple3f start,
org.openmali.vecmath2.Tuple3f end)
Sets this Line's coordinates. |
void |
setPattern(org.jagatoo.opengl.enums.LinePattern pattern)
Sets the the pattern for how this line is to be rendered. |
void |
setWidth(float width)
Sets the Line's width in pixels. |
| Methods inherited from class org.xith3d.scenegraph.Shape3D |
|---|
absorbDetails, copy, freeOpenGLResources, getAppearance, getAppearance, getCustomComparable, isBumpMappingEnabled, isShadowReceiver, isVisible, newAppearance, newInstance, setAppearance, setBounds, setBumpMappingEnabled, setBumpMappingEnabled, setCustomComparable, setGeometry, setIsShadowReceiver, setModListener, setVisible, sharedCopy, sharedCopy, traverse, updateBounds, updateBoundsCheap, updateWorldTransform, verifyAppChange |
| Methods inherited from class org.xith3d.scenegraph.Leaf |
|---|
dump, getPickHost, setPickHost |
| 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Line(org.openmali.vecmath2.Tuple3f start,
org.openmali.vecmath2.Tuple3f end,
float width,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
Line.
start - starting point coordinatesend - ending point coordinateswidth - this Line's width in pixelsantiAliasing - flag to indicate whether to turn on antialiasing for this Linecolor - this Line's colorlinePattern - the pattern for how this line is to be renderedLinePattern
public Line(org.openmali.vecmath2.Tuple3f start,
org.openmali.vecmath2.Tuple3f end,
float width,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color)
Line.
start - starting point coordinatesend - ending point coordinateswidth - the Line's width in pixelsantiAliasing - flag to indicate whether to turn on antialiasing for this Linecolor - this Line's color
public Line(org.openmali.vecmath2.Tuple3f start,
org.openmali.vecmath2.Tuple3f end,
float width,
org.openmali.vecmath2.Colorf color)
Line without antialiasing.
start - starting point coordinatesend - ending point coordinateswidth - the Line's width in pixelscolor - this Line's color
public Line(org.openmali.vecmath2.Tuple3f start,
org.openmali.vecmath2.Tuple3f end,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
Line of 1 pixel width.
start - starting point coordinatesend - ending point coordinatesantiAliasing - flag to indicate whether to turn on antialiasing for this Linecolor - this Line's colorlinePattern - the pattern for how this line is to be renderedLinePattern
public Line(org.openmali.vecmath2.Tuple3f start,
org.openmali.vecmath2.Tuple3f end,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
Line of 1 pixel width without antialiasing.
start - starting point coordinatesend - ending point coordinatescolor - this Line's colorlinePattern - the pattern for how this line is to be renderedLinePattern
public Line(org.openmali.vecmath2.Tuple3f start,
org.openmali.vecmath2.Tuple3f end,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color)
Line of 1 pixel width.
start - starting point coordinatesend - ending point coordinatesantiAliasing - flag to indicate whether to turn on antialiasing for this Linecolor - this Line's color
public Line(org.openmali.vecmath2.Tuple3f start,
org.openmali.vecmath2.Tuple3f end,
org.openmali.vecmath2.Colorf color)
Line of 1 pixel width without antialiasing.
start - starting point coordinatesend - ending point coordinatescolor - this Line's color
public Line(org.openmali.vecmath2.Tuple3f end,
float width,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
Line starting at the origin (0, 0, 0).
end - ending point coordinateswidth - the Line's width in pixelsantiAliasing - flag to indicate whether to turn on antialiasing for this Linecolor - this Line's colorlinePattern - the pattern for how this line is to be renderedLinePattern
public Line(org.openmali.vecmath2.Tuple3f end,
float width,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
Line starting at the origin (0, 0, 0) without antialiasing.
end - ending point coordinateswidth - the Line's width in pixelscolor - this Line's colorlinePattern - the pattern for how this line is to be renderedLinePattern
public Line(org.openmali.vecmath2.Tuple3f end,
float width,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color)
Line starting at the origin (0, 0, 0).
end - ending point coordinateswidth - the Line's width in pixelsantiAliasing - flag to indicate whether to turn on antialiasing for this Linecolor - this Line's color
public Line(org.openmali.vecmath2.Tuple3f end,
float width,
org.openmali.vecmath2.Colorf color)
Line starting at the origin (0, 0, 0) without antialiasing.
end - ending point coordinateswidth - the Line's width in pixelscolor - this Line's color
public Line(org.openmali.vecmath2.Tuple3f end,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
Line of 1 pixel width starting at the origin (0, 0, 0).
end - ending point coordinatesantiAliasing - flag to indicate whether to turn on antialiasing for this Linecolor - this Line's colorlinePattern - the pattern for how this line is to be renderedLinePattern
public Line(org.openmali.vecmath2.Tuple3f end,
org.openmali.vecmath2.Colorf color,
org.jagatoo.opengl.enums.LinePattern linePattern)
Line of 1 pixel width starting at the origin (0, 0, 0) without antialiasing.
end - ending point coordinatescolor - this Line's colorlinePattern - the pattern for how this line is to be renderedLinePattern
public Line(org.openmali.vecmath2.Tuple3f end,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color)
Line of 1 pixel width starting at the origin (0, 0, 0).
end - ending point coordinatesantiAliasing - flag to indicate whether to turn on antialiasing for this Linecolor - this Line's color
public Line(org.openmali.vecmath2.Tuple3f end,
org.openmali.vecmath2.Colorf color)
Line of 1 pixel width starting at the origin (0, 0, 0) without antialiasing.
end - ending point coordinatescolor - this Line's color| Method Detail |
|---|
public LineArray getGeometry()
getGeometry in class Shape3Dpublic void setCoordinates(float[] coords)
Line's coordinates.
coords - a 6-element array with starting and ending point coordinates with this format {x0,y0,z0,x1,y1,z1}
public void setCoordinates(float x0,
float y0,
float z0,
float x1,
float y1,
float z1)
Line's coordinates.
x0 - start and end point coordinatesy0 - start and end point coordinatesz0 - start and end point coordinatesx1 - start and end point coordinatesy1 - start and end point coordinatesz1 - start and end point coordinates
public void setCoordinates(float x1,
float y1,
float z1)
Line's coordinates.
x1 - start and end point coordinatesy1 - start and end point coordinatesz1 - start and end point coordinates
public void setCoordinates(org.openmali.vecmath2.Tuple3f start,
org.openmali.vecmath2.Tuple3f end)
Line's coordinates.
start - starting point coordinatesend - ending point coordinatespublic void setCoordinates(org.openmali.vecmath2.Tuple3f end)
Line's coordinates.
end - ending point coordinatespublic float[] getCoordinates()
Line's coordinates.
Line's coordinatespublic void setColor(org.openmali.vecmath2.Colorf color)
Line's color.
color - the new color to setpublic org.openmali.vecmath2.Colorf getColor()
Line's color.
Line's colorpublic void setPattern(org.jagatoo.opengl.enums.LinePattern pattern)
pattern - the new pattern to setLinePatternpublic org.jagatoo.opengl.enums.LinePattern getPattern()
Line's pattern.
Line's patternLinePatternpublic void setWidth(float width)
Line's width in pixels.
width - the new line width in pixelspublic float getWidth()
Line's width in pixels.
Line's width in pixelspublic void setAntialiasingEnabled(boolean enabled)
Line's antialiasing flag.
enabled - true to turn on antialiasing for this line; false otherwisepublic boolean isAntialiasingEnabled()
true if antialiasing is on for this line; false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||