|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jzy3d.plot3d.primitives.AbstractDrawable
org.jzy3d.plot3d.primitives.Point
public class Point
A Point3d is a storage for a Coord3d and a Color that represents
a drawable 3d point.
The Point3d is used for:
Graph.
Polygon)
a way to associate a coordinate and a color.
| Field Summary | |
|---|---|
Color |
rgb
|
float |
width
|
Coord3d |
xyz
|
| Fields inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable |
|---|
bbox, displayed, hasListeners, legend, legendDisplayed, listeners, transform |
| Constructor Summary | |
|---|---|
Point()
Intialize a point at the origin, with a white color and a width of 1. |
|
Point(Coord3d xyz)
Intialize a point with a white color and a width of 1. |
|
Point(Coord3d xyz,
Color rgb)
Intialize a point with a width of 1. |
|
Point(Coord3d xyz,
Color rgb,
float width)
|
|
| Method Summary | |
|---|---|
void |
draw(javax.media.opengl.GL2 gl,
javax.media.opengl.glu.GLU glu,
Camera cam)
Call OpenGL2 routines for rendering the object. |
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)
|
double |
getShortestDistance(Camera camera)
|
void |
setColor(Color color)
Set the color. |
void |
setData(Coord3d xyz)
Set the coordinates of the point. |
void |
setWidth(float width)
|
String |
toString(int depth)
|
void |
updateBounds()
|
| Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable |
|---|
addDrawableListener, call, call, callWithAlphaFactor, dispose, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBounds, getLegend, getTransform, hasLegend, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setDisplayed, setLegend, setLegendDisplayed, setTransform, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Coord3d xyz
public Color rgb
public float width
| Constructor Detail |
|---|
public Point()
public Point(Coord3d xyz)
public Point(Coord3d xyz,
Color rgb)
public Point(Coord3d xyz,
Color rgb,
float width)
| Method Detail |
|---|
public void draw(javax.media.opengl.GL2 gl,
javax.media.opengl.glu.GLU glu,
Camera cam)
AbstractDrawable
draw in interface IGLRendererdraw in class AbstractDrawablegl - GL2 contextglu - GLU contextcam - a reference to a shooting Camera.public void setData(Coord3d xyz)
xyz - point's coordinatespublic void updateBounds()
public void setColor(Color color)
ISingleColorable
setColor in interface ISingleColorablecolor - the colorpublic Color getColor()
ISingleColorable
getColor in interface ISingleColorablepublic void setWidth(float width)
public double getDistance(Camera camera)
AbstractDrawableCamera's eye.
getDistance in interface ISortableDrawgetDistance in class AbstractDrawablepublic double getShortestDistance(Camera camera)
getShortestDistance in interface ISortableDrawgetShortestDistance in class AbstractDrawablepublic double getLongestDistance(Camera camera)
getLongestDistance in interface ISortableDrawgetLongestDistance in class AbstractDrawablepublic String toString(int depth)
toString in class AbstractDrawable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||