GRASS GIS 8 Programmer's Manual
8.5.0dev(2025)-97d1178de3
|
OGSF header file (structures) More...
#include <grass/config.h>
#include <grass/bitmap.h>
#include <GL/gl.h>
#include <grass/gis.h>
#include <grass/defs/ogsf.h>
Go to the source code of this file.
Data Structures | |
struct | typbuff |
struct | table256 |
struct | transform |
struct | dataset |
struct | gsurf_att |
struct | g_surf |
struct | g_vect_style |
struct | g_vect_style_thematic |
struct | g_line |
struct | g_vect |
struct | g_point |
struct | g_site |
struct | geovol_file |
struct | geovol_isosurf_att |
struct | geovol_isosurf |
struct | geovol_slice |
struct | g_vol |
struct | lightdefs |
struct | georot |
struct | geoview |
struct | geodisplay |
struct | view_node |
struct | key_node |
Macros | |
#define | GS_UNIT_SIZE 1000. |
#define | BETWEEN(x, a, b) (((x) > (a) && (x) < (b)) || ((x) > (b) && (x) < (a))) |
#define | GS_NEAR_EQUAL(x, y, ratio) |
#define | MAX_SURFS 12 |
#define | MAX_VECTS 50 |
#define | MAX_SITES 50 |
#define | MAX_VOLS 12 /* should match MAX_VOL_FILES below ? */ |
#define | MAX_DSP 12 |
#define | MAX_ATTS 7 |
#define | MAX_LIGHTS 3 |
#define | MAX_CPLANES 6 |
#define | MAX_ISOSURFS 12 |
#define | MAX_SLICES 12 |
#define | MAX_VOL_SLICES 4 |
#define | MAX_VOL_FILES 100 |
#define | DM_GOURAUD 0x00000100 |
#define | DM_FLAT 0x00000200 /* defined for symmetry */ |
#define | DM_FRINGE 0x00000010 |
#define | DM_WIRE 0x00000001 |
#define | DM_COL_WIRE 0x00000002 |
#define | DM_POLY 0x00000004 |
#define | DM_WIRE_POLY 0x00000008 |
#define | DM_GRID_WIRE 0x00000400 |
#define | DM_GRID_SURF 0x00000800 |
#define | WC_COLOR_ATT 0xFF000000 |
#define | IFLAG unsigned int |
#define | ATT_NORM 0 /* library use only */ |
#define | ATT_TOPO 1 |
#define | ATT_COLOR 2 |
#define | ATT_MASK 3 |
#define | ATT_TRANSP 4 |
#define | ATT_SHINE 5 |
#define | ATT_EMIT 6 |
#define | LEGAL_ATT(a) (a >= 0 && a < MAX_ATTS) |
#define | NOTSET_ATT 0 |
#define | MAP_ATT 1 |
#define | CONST_ATT 2 |
#define | FUNC_ATT 3 |
#define | LEGAL_SRC(s) (s == NOTSET_ATT || s == MAP_ATT || s == CONST_ATT || s == FUNC_ATT) |
#define | ST_X 1 |
#define | ST_BOX 2 |
#define | ST_SPHERE 3 |
#define | ST_CUBE 4 |
#define | ST_DIAMOND 5 |
#define | ST_DEC_TREE 6 |
#define | ST_CON_TREE 7 |
#define | ST_ASTER 8 |
#define | ST_GYRO 9 |
#define | ST_HISTOGRAM 10 |
#define | GSD_FRONT 1 |
#define | GSD_BACK 2 |
#define | GSD_BOTH 3 |
#define | FC_OFF 0 |
#define | FC_ABOVE 1 |
#define | FC_BELOW 2 |
#define | FC_BLEND 3 |
#define | FC_GREY 4 |
#define | LT_DISCRETE 0x00000100 |
#define | LT_CONTINUOUS 0x00000200 |
#define | LT_LIST 0x00000010 |
#define | LT_RANGE_LOWSET 0x00000001 |
#define | LT_RANGE_HISET 0x00000002 |
#define | LT_RANGE_LOW_HI 0x00000003 |
#define | LT_INVERTED 0x00000008 |
#define | LT_SHOW_VALS 0x00001000 |
#define | LT_SHOW_LABELS 0x00002000 |
#define | VOL_FTYPE_RASTER3D 0 |
#define | VOL_DTYPE_FLOAT 0 |
#define | VOL_DTYPE_DOUBLE 1 |
#define | X 0 |
#define | Y 1 |
#define | Z 2 |
#define | W 3 |
#define | FROM 0 |
#define | TO 1 |
#define | CM_COLOR 0 |
#define | CM_EMISSION 1 |
#define | CM_AMBIENT 2 |
#define | CM_DIFFUSE 3 |
#define | CM_SPECULAR 4 |
#define | CM_AD 5 |
#define | CM_NULL 6 |
#define | CM_WIRE CM_COLOR |
#define | NULL_COLOR 0xFFFFFF |
#define | GS_CHAR8 char |
#define | GS_SHORT16 short |
#define | GS_INT32 int |
#define | ATTY_NULL 32 /* internal use only */ |
#define | ATTY_MASK 16 /* can't use this one for numbytes */ |
#define | ATTY_FLOAT 8 /* can't use this one for numbytes */ |
#define | ATTY_INT 4 |
#define | ATTY_SHORT 2 |
#define | ATTY_CHAR 1 |
#define | ATTY_ANY 63 /* internal use only */ |
#define | LEGAL_TYPE(t) |
#define | MAXDIMS 4 |
#define | FUDGE(gs) ((gs->zmax_nz - gs->zmin_nz) / 500.) |
#define | DOT3(a, b) ((a)[X] * (b)[X] + (a)[Y] * (b)[Y] + (a)[Z] * (b)[Z]) |
#define | CF_NOT_CHANGED 0x000000 |
#define | CF_COLOR_PACKED 0x000001 |
#define | CF_USR_CHANGED 0x000010 |
#define | CF_CHARSCALED 0x000100 |
#define | MAX_TF 6 |
#define | MASK_TL 0x10000000 |
#define | MASK_TR 0x01000000 |
#define | MASK_BR 0x00100000 |
#define | MASK_BL 0x00010000 |
#define | MASK_NPTS 0x00000007 |
#define | OGSF_POINT 1 |
#define | OGSF_LINE 2 |
#define | OGSF_POLYGON 3 |
#define | RED_MASK 0x000000FF |
#define | GRN_MASK 0x0000FF00 |
#define | BLU_MASK 0x00FF0000 |
#define | KF_FROMX_MASK 0x00000001 |
#define | KF_FROMY_MASK 0x00000002 |
#define | KF_FROMZ_MASK 0x00000004 |
#define | KF_FROM_MASK 0x00000007 |
#define | KF_DIRX_MASK 0x00000008 |
#define | KF_DIRY_MASK 0x00000010 |
#define | KF_DIRZ_MASK 0x00000020 |
#define | KF_DIR_MASK 0x00000038 |
#define | KF_FOV_MASK 0x00000040 |
#define | KF_TWIST_MASK 0x00000080 |
#define | KF_ALL_MASK 0x000000FF |
#define | KF_NUMFIELDS 8 |
#define | KF_LINEAR 111 |
#define | KF_SPLINE 222 |
#define | KF_LEGAL_MODE(m) (m == KF_LINEAR || m == KF_SPLINE) |
#define | KF_FROMX 0 |
#define | KF_FROMY 1 |
#define | KF_FROMZ 2 |
#define | KF_DIRX 3 |
#define | KF_DIRY 4 |
#define | KF_DIRZ 5 |
#define | KF_FOV 6 |
#define | KF_TWIST 7 |
#define | FM_VECT 0x00000001 |
#define | FM_SITE 0x00000002 |
#define | FM_PATH 0x00000004 |
#define | FM_VOL 0x00000008 |
#define | FM_LABEL 0x00000010 |
Typedefs | |
typedef float | Point4[4] |
typedef float | Point3[3] |
typedef float | Point2[2] |
typedef struct g_surf | geosurf |
typedef struct g_vect_style | gvstyle |
typedef struct g_vect_style_thematic | gvstyle_thematic |
typedef struct g_line | geoline |
typedef struct g_vect | geovect |
typedef struct g_point | geopoint |
typedef struct g_site | geosite |
typedef struct g_vol | geovol |
typedef struct view_node | Viewnode |
typedef struct key_node | Keylist |
Variables | |
void(* | Cxl_func )(void) |
void(* | Swap_func )(void) |
OGSF header file (structures)
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
(C) 2011 by the GRASS Development Team
Definition in file ogsf.h.
#define GS_NEAR_EQUAL | ( | x, | |
y, | |||
ratio | |||
) |
#define LEGAL_SRC | ( | s | ) | (s == NOTSET_ATT || s == MAP_ATT || s == CONST_ATT || s == FUNC_ATT) |
#define MAX_VOLS 12 /* should match MAX_VOL_FILES below ? */ |
typedef struct g_vect_style gvstyle |
typedef struct g_vect_style_thematic gvstyle_thematic |
|
extern |
Definition at line 21 of file gsx.c.
Referenced by GS_check_cancel(), and GS_set_cxl_func().
|
extern |