|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--GRASS.linepnts
Wraps GRASS library struct line_pnts. line_pnts is not documented in the GRASS 4.2 Programmer's Manual, but see Section 13.5 Data Structures (Vector Library) to learn about routines that deal with struct line_pnts.
| Field Summary | |
static int |
AREA
linepnts type AREA. |
static int |
DOT
linepnts type DOT. |
static int |
LINE
linepnts type LINE. |
| Constructor Summary | |
linepnts()
Constructs an empty object and allocates memory for GRASS struct line_pnts |
|
| Method Summary | |
int |
getType()
Inquires for the type of this object (LINE, AREA or DOT). |
int |
n_points()
Inquires for the nukber of coordinate pairs in this object. |
void |
setType(int type)
Sets type of this object (LINE, AREA or DOT). |
java.lang.String |
toString()
Returns a string representation of the object. |
void |
Vect_copy_pnts_to_xy(double[] x,
double[] y)
Copies coordinate pairs associated with linepnts object into two arrays. |
void |
Vect_copy_xy_to_pnts(double[] x,
double[] y)
Copies coordinate pairs from the arrays of x and y coordinates into linepnts object. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final int LINE
public static final int AREA
public static final int DOT
| Constructor Detail |
public linepnts()
| Method Detail |
public int getType()
public void setType(int type)
type - type (LINE, AREA or DOT)public int n_points()
public void Vect_copy_xy_to_pnts(double[] x,
double[] y)
throws GRASSException
Vect_copy_xy_to_pnts (Points, x, y, n)
struct line_pnts *Points;
double *x, *y; int n;
See the GRASS 4.2 Programmer's Manual,
Section 13.6. Data Conversionx - array of X coordinates to copy values fromy - array of Y coordinates to copy values fro
public void Vect_copy_pnts_to_xy(double[] x,
double[] y)
throws GRASSException
linepnts lp = ....; double x = new double[ lp.n_points() ]; double y = new double[ lp.n_points() ];Wraps GRASS library routine:
Vect_copy_pnts_to_xy (Points, x, y, n)
struct line_pnts *Points;
double *x, *y; int *n;
See the GRASS 4.2 Programmer's Manual,
Section 13.6. Data Conversionx - array of X coordinates to copy values toy - array of Y coordinates to copy values topublic java.lang.String toString()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||