GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
#include <stdio.h>
#include <math.h>
#include <sys/types.h>
Go to the source code of this file.
Data Structures | |
struct | cmndln_info |
struct | file_info |
struct | poly_info |
struct | cube_info |
struct | Cube_data |
struct | CELL_ENTRY |
Macros | |
#define | GRID_ID "grid003.02" |
#define | DSPF_ID "dspf003.02" |
#define | LINTERP(A, B, C) ((C-A)/(B-A))*255 |
#define | VOID_TYPE char |
#define | FLINTERP(A, B, C, D, E) (((C-A)*(E-D))/(B-A)) + D |
#define | NV(A, B, C) ((A*A) + (B*B) + (C*C)) |
#define | MAXLITS 3 |
#define | MAXTHRESH 127 |
#define | MAXPOLY 10 |
Functions | |
int | write_cube (Cube_data *, int, file_info *) |
int | write_cube_buffer (unsigned char *, int, int, file_info *) |
int | read_cube (Cube_data *, file_info *) |
int | my_fread (char *, int, int, FILE *) |
int | reset_reads (file_info *) |
int | new_dspf (file_info *) |
int | dfwrite_header (file_info *) |
int | dfread_header (file_info *) |
int | dfread_header_old (file_info *, FILE *) |
int | print_head_info (file_info *) |
int | struct_copy (char *, char *, int) |
Variables | |
CELL_ENTRY | cell_table [] |
#define DSPF_ID "dspf003.02" |
Definition at line 6 of file viz.h.
Referenced by dfread_header(), and dfwrite_header().
int dfread_header | ( | file_info * | ) |
Definition at line 91 of file dspf_header.c.
References file_info::Dataoff, dfread_header_old(), DSPF_ID, file_info::dspfinfp, G_fseek(), isize, file_info::linefax, cmndln_info::litmodel, file_info::Lookoff, file_info::max, file_info::min, cmndln_info::nthres, print_head_info(), cmndln_info::tvalue, file_info::xdim, file_info::ydim, and file_info::zdim.
int dfread_header_old | ( | file_info * | , |
FILE * | |||
) |
int dfwrite_header | ( | file_info * | ) |
Definition at line 8 of file dspf_header.c.
References file_info::Dataoff, DSPF_ID, file_info::dspfoutfp, G_fseek(), G_ftell(), isize, file_info::linefax, cmndln_info::litmodel, file_info::Lookoff, file_info::max, file_info::min, cmndln_info::nthres, cmndln_info::tvalue, file_info::xdim, file_info::ydim, and file_info::zdim.
int new_dspf | ( | file_info * | ) |
Definition at line 295 of file cube_io.c.
References file_info::Dataoff, file_info::dspfinfp, and G_fseek().
int print_head_info | ( | file_info * | ) |
Definition at line 3 of file print_info.c.
References file_info::bottom, file_info::east, file_info::ew_res, file_info::max, file_info::min, file_info::north, file_info::ns_res, file_info::south, file_info::tb_res, file_info::top, file_info::west, file_info::xdim, file_info::ydim, and file_info::zdim.
Referenced by dfread_header().
int struct_copy | ( | char * | , |
char * | , | ||
int | |||
) |
Definition at line 2 of file struct_copy.c.
Definition at line 25 of file cube_io.c.
References Cube_data::n_thresh.
int write_cube_buffer | ( | unsigned char * | , |
int | , | ||
int | , | ||
file_info * | |||
) |
CELL_ENTRY cell_table[] |
Definition at line 3 of file cell_table.c.