|
||||||||||
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.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
|
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.GL gl,
javax.media.opengl.glu.GLU glu,
Camera cam)
Call OpenGL 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)
|
java.lang.String |
toString(int depth)
|
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 |
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.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 xyz)
xyz
- point's coordinatespublic void setColor(Color color)
ISingleColorable
setColor
in interface ISingleColorable
color
- the colorpublic Color getColor()
ISingleColorable
getColor
in interface ISingleColorable
public void setWidth(float width)
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 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 |