28#define FIRST_VOL_ID 81721
47 if (
gvl->gvol_id ==
id) {
70 for (pv = Vol_top; pv; pv = pv->
next) {
113 G_debug(5,
"gvl_num_vols(): num=%d", i);
128 G_debug(5,
"gvl_get_last_vol");
152 G_debug(5,
"gvl_get_new_vol()");
161 nvl->gvol_id =
lvl->gvol_id + 1;
188 int cols,
int depths,
double xres,
double yres,
double zres)
190 G_debug(5,
"gvl_init_vol() id=%d",
gvl->gvol_id);
201 gvl->depths = depths;
207 gvl->xmax = ox + (cols - 1) * xres;
210 gvl->ymax = oy + (rows - 1) * yres;
213 gvl->zmax = oz + (depths - 1) * zres;
216 gvl->x_trans =
gvl->y_trans =
gvl->z_trans = 0.0;
221 gvl->isosurf_x_mod = 1;
222 gvl->isosurf_y_mod = 1;
223 gvl->isosurf_z_mod = 1;
228 gvl->slice_x_mod = 1;
229 gvl->slice_y_mod = 1;
230 gvl->slice_z_mod = 1;
275 if (
fvl == Vol_top) {
332 G_debug(5,
"cols: %d rows: %d depths: %d",
gvl->cols,
gvl->rows,
335 G_debug(5,
"xres: %lf yres: %lf zres: %lf",
gvl->xres,
gvl->yres,
339 G_debug(5,
"x_trans: %f y_trans: %f z_trans: %f",
gvl->x_trans,
340 gvl->y_trans,
gvl->z_trans);
524 G_debug(5,
"gvl_isosurf_init");
557 G_debug(5,
"gvl_isosurf_freemem");
609 G_debug(5,
"isosurf_get_att_src");
634 G_debug(5,
"gvl_isosurf_set_att_src");
667 G_debug(5,
"gvl_isosurf_set_att_const(): att=%d, const=%f", desc, constant);
691 const char *filename)
695 G_debug(5,
"gvl_isosurf_set_att_map(): att=%d map=%s", desc, filename);
727 G_debug(5,
"gvl_isosurf_set_att_changed");
784 G_debug(5,
"gvl_slice_freemem");
void G_zero(void *, int)
Zero out a buffer, buf, of length i.
void G_free(void *)
Free allocated memory.
int G_debug(int, const char *,...) __attribute__((format(printf
int gvl_file_newh(const char *, IFLAG)
int Gvl_load_colors_data(void **, const char *)
Load color table.
int Gvl_unload_colors_data(void *)
Unload color table.
int gvl_file_free_datah(int)
Free geovol_file structure for given handle.
void gvl_free_volmem(geovol *fvl)
Free geovol struct memory.
geovol * gvl_get_new_vol(void)
Allocate new volume set and add it to the list.
int gvl_get_yrange(float *min, float *max)
Get volume y-range value.
int gvl_get_xextents(geovol *gvl, float *min, float *max)
Get volume x-extent value.
int gvl_isosurf_init(geovol_isosurf *isosurf)
Initialize geovol_isosurf struct.
int gvl_init_vol(geovol *gvl, double ox, double oy, double oz, int rows, int cols, int depths, double xres, double yres, double zres)
Initialize geovol structure.
geovol * gvl_get_prev_vol(int id)
Get previous volume.
int gvl_getall_vols(geovol **gvols)
Get all volumes.
void print_vol_fields(geovol *gvl)
Debug volume fields.
int gvl_isosurf_set_att_map(geovol_isosurf *isosurf, int desc, const char *filename)
Set attribute map.
int gvl_slice_freemem(geovol_slice *slice)
Free geovol_slice struct.
geovol * gvl_get_vol(int id)
Get volume set structure.
int gvl_isosurf_get_att_src(geovol_isosurf *isosurf, int desc)
Get attribute source.
int gvl_isosurf_freemem(geovol_isosurf *isosurf)
Free geovol_isosurf struct.
geovol_slice * gvl_slice_get_slice(int id, int slice_id)
Get geovol_slice struct.
geovol_isosurf * gvl_isosurf_get_isosurf(int id, int isosurf_id)
Get isosurface of given volume set.
int gvl_get_zrange(float *min, float *max)
Get volume z-range value.
int gvl_isosurf_set_att_src(geovol_isosurf *isosurf, int desc, int src)
Set attribute source.
int gvl_get_xrange(float *min, float *max)
Get volume x-range value.
int gvl_isosurf_set_att_changed(geovol_isosurf *isosurf, int desc)
Set attribute changed.
int gvl_get_zextents(geovol *gvl, float *min, float *max)
Get volume z-extent value.
int gvl_isosurf_set_att_const(geovol_isosurf *isosurf, int desc, float constant)
Set isosurface attribute constant.
geovol * gvl_get_last_vol(void)
Get last volume set from the list.
int gvl_get_yextents(geovol *gvl, float *min, float *max)
Get volume y-extent value.
int gvl_slice_init(geovol_slice *slice)
Initialize geovol_slice struct.
void gvl_delete_vol(int id)
Remove volume set from list.
int gvl_num_vols(void)
Get number of loaded volume sets.
int gvl_free_vol(geovol *fvl)
Free geovol struct.
OGSF header file (structures)
#define VOL_FTYPE_RASTER3D
geovol_isosurf_att att[7]