|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jzy3d.plot3d.primitives.AbstractDrawable org.jzy3d.plot3d.primitives.AbstractWireframeable org.jzy3d.plot3d.primitives.LineStrip
public class LineStrip
Constructor Summary | |
---|---|
LineStrip()
|
|
LineStrip(int n)
|
|
LineStrip(java.util.List<Coord3d> coords)
|
Method Summary | |
---|---|
void |
add(Point point)
|
void |
addAll(LineStrip strip)
|
void |
addAll(java.util.List<Point> points)
|
void |
draw(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
Camera cam)
Call OpenGL routines for rendering the object. |
Point |
get(int p)
|
Color |
getColor()
Get the color. |
double |
getDistance(Camera camera)
Return the distance of the object center to the Camera 's eye. |
double |
getLongestDistance(Camera camera)
|
java.util.List<Point> |
getPoints()
|
double |
getShortestDistance(Camera camera)
|
float |
getWidth()
|
static LineStrip |
merge(LineStrip strip1,
LineStrip strip2)
Merge lines by selecting the most relevant connection point: A-B to C-D if distance BC is shorter than distance DA C-D to A-B |
void |
setColor(Color color)
Apply the given color to the line strip, or make an interpolated color between each point according to the point color if the input color is null. |
void |
setWidth(float width)
|
int |
size()
|
java.lang.String |
toString(int depth)
|
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractWireframeable |
---|
getFaceDisplayed, getWireframeColor, getWireframeDisplayed, getWireframeWidth, setFaceDisplayed, setWireframeColor, setWireframeDisplayed, setWireframeWidth |
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable |
---|
addDrawableListener, dispose, getBarycentre, getBounds, getFace, getTransform, hasFace, isDisplayed, isFace2dDisplayed, removeDrawableListener, setDisplayed, setLegend, setLegendDisplayed, setTransform, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LineStrip()
public LineStrip(int n)
public LineStrip(java.util.List<Coord3d> coords)
Method Detail |
---|
public void draw(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, Camera cam)
AbstractDrawable
draw
in interface IGLRenderer
draw
in class AbstractDrawable
gl
- GL contextglu
- GLU contextcam
- a reference to a shooting Camera.public void add(Point point)
public void addAll(java.util.List<Point> points)
public void addAll(LineStrip strip)
public Point get(int p)
public java.util.List<Point> getPoints()
public int size()
public float getWidth()
public void setWidth(float width)
public void setColor(Color color)
setColor
in interface ISingleColorable
color
- the colorpublic Color getColor()
ISingleColorable
getColor
in interface ISingleColorable
public double getDistance(Camera camera)
AbstractDrawable
Camera
's eye.
getDistance
in interface ISortableDraw
getDistance
in class AbstractDrawable
public double getShortestDistance(Camera camera)
getShortestDistance
in interface ISortableDraw
getShortestDistance
in class AbstractDrawable
public double getLongestDistance(Camera camera)
getLongestDistance
in interface ISortableDraw
getLongestDistance
in class AbstractDrawable
public static LineStrip merge(LineStrip strip1, LineStrip strip2)
public java.lang.String toString(int depth)
toString
in class AbstractDrawable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |