public class PointJ3D extends Object implements ScreenAnnotation
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 . |
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.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.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.