|
||||||||||
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.Scatter
public class Scatter
Experimental 3d object.
Field Summary | |
---|---|
Color[] |
colors
|
Coord3d[] |
coordinates
|
Color |
rgb
|
float |
width
|
Constructor Summary | |
---|---|
Scatter()
|
|
Scatter(Coord3d[] coordinates)
|
|
Scatter(Coord3d[] coordinates,
Color rgb)
|
|
Scatter(Coord3d[] coordinates,
Color[] colors)
|
|
Scatter(Coord3d[] coordinates,
Color[] colors,
float width)
|
|
Scatter(Coord3d[] coordinates,
Color rgb,
float width)
|
Method Summary | |
---|---|
void |
clear()
|
void |
draw(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
Camera cam)
Call OpenGL routines for rendering the object. |
Color |
getColor()
Get the color. |
Coord3d[] |
getData()
|
void |
setColor(Color color)
Set the color. |
void |
setColors(Color[] colors)
|
void |
setData(Coord3d[] coordinates)
Set the coordinates of the point. |
void |
setWidth(float width)
Set the width of the point. |
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable |
---|
addDrawableListener, dispose, getBarycentre, getBounds, getDistance, getFace, getLongestDistance, getShortestDistance, getTransform, hasFace, isDisplayed, isFace2dDisplayed, removeDrawableListener, setDisplayed, setLegend, setLegendDisplayed, setTransform, toString, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Color[] colors
public Coord3d[] coordinates
public Color rgb
public float width
Constructor Detail |
---|
public Scatter()
public Scatter(Coord3d[] coordinates)
public Scatter(Coord3d[] coordinates, Color rgb)
public Scatter(Coord3d[] coordinates, Color rgb, float width)
public Scatter(Coord3d[] coordinates, Color[] colors)
public Scatter(Coord3d[] coordinates, Color[] colors, float width)
Method Detail |
---|
public void clear()
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 setData(Coord3d[] coordinates)
xyz
- point's coordinatespublic Coord3d[] getData()
public void setColors(Color[] colors)
public void setColor(Color color)
ISingleColorable
setColor
in interface ISingleColorable
color
- the colorpublic Color getColor()
ISingleColorable
getColor
in interface ISingleColorable
public void setWidth(float width)
width
- point's width
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |