FLDget_points, FLDset_points
Synopsis
get/set the points (extents) array in a Grid_Struct Grid
int FLDget_points (
OMobj_id field,
float *points,
xp_long *size,
int mode);
int FLDget_points_n (
OMobj_id field,
float **points,
int *size,
int mode);
int FLDset_points (
OMobj_id field,
float *points,
int size,
int mode);
int FLDset_points_n (
OMobj_id field,
float *points,
int size,
int mode);Description
These routines get/set the points array (extents) in a Grid_Struct Grid. The points array is defined as: float points = [npoints][nspace].
Grid_Structs include Grid_Unif and Grid_Rect grids.
Parameters
In FLDget_points, points is a pointer to a pointer to floats; upon return, *points is filled in with the address of the points array. You must call ARRfree() on this pointer when you are done with it.
In FLDset_points, points is an array of type float from which the points array is copied to the field.
xp_long *size
xp_long size
int *size
int sizeIn FLDget_points, size is a pointer to an integer variable in which the size of the points array is returned.
In FLdset_points, size is an integer variable from which the size of the points array is copied to the field.
An integer constant that establishes the access mode for the array subobject. Constants for the possible values are defined in avs/om.h as follows.
For FLDset_points:
The program intends to write to the array, completely replacing it, but not read it.
The program requires a copy of the array for its own, private use (reading or writing).
Returned value
A pointer to the array, or NULL if ARRalloc failed.
Examples
modules/crop.c
modules/exc_brk3.c
modules/gen_fld.c
modules/pln_crop.c
modules/sct2unif.c
modules/slice.c (and others)Files
See Also