|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.bom.annotations.PointJ3D
public class PointJ3D
Meant to encapsulate information representing a Point which is going to be rendered on a VisAD display without being subject to the usual VisAD transformations. Thus the label should stick in Screen Coordinates.
Constructor Summary | |
---|---|
PointJ3D()
Simple constructor which makes a point at (0, 0) coloured white. |
|
PointJ3D(int[][] points,
float[] colour,
double zValue,
double thickness)
Constructs a PointJ3D from specified values in screen coordinates. |
|
PointJ3D(int x1,
int y1,
float[] colour,
double zValue,
double thickness)
Constructs a PointJ3D from specified values in screen coordinates. |
Method Summary | |
---|---|
void |
setColour(float[] colour)
Set colour for the PointJ3D. |
void |
setPointJ3Ds(int[][] points)
Set coordinates for the PointJ3D. |
void |
setPointJ3Ds(int x1,
int y1)
Set coordinates for the PointJ3D. |
void |
setZValue(double zValue)
Set Z position for the PointJ3D. |
Object |
toDrawable(DisplayImpl display)
Make the PointJ3D into a Shape3D . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PointJ3D()
public PointJ3D(int x1, int y1, float[] colour, double zValue, double thickness)
x1
- x screen coordinate of the point.y1
- y screen coordinate of the point.colour
- red green blue triple; each value in [0.0, 1.0].zValue
- Virtual world value; larger z is in front.thickness
- used for the size of the point.public PointJ3D(int[][] points, float[] colour, double zValue, double thickness)
points
- 2 rows with each column containing a point
in screen coordinates; requires 1 point (column).colour
- red green blue triple; each value in [0.0, 1.0].zValue
- Virtual world value; larger z is in front.thickness
- used for the size of the point.Method Detail |
---|
public void setPointJ3Ds(int x1, int y1)
x1
- x screen coordinate of the point.y1
- y screen coordinate of the point.public void setPointJ3Ds(int[][] points)
points
- 2 rows with each column containing a point
in screen coordinates; requires 1 point (column).public void setColour(float[] colour)
colour
- red green blue triple; each value in [0.0, 1.0].public void setZValue(double zValue)
zValue
- Virtual world value; larger z is in front.public Object toDrawable(DisplayImpl display)
Shape3D
.
toDrawable
in interface ScreenAnnotation
display
- the VisAD display for this Point.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |