#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.
◆ ATT_COLOR
◆ ATT_EMIT
◆ ATT_MASK
◆ ATT_NORM
#define ATT_NORM 0 /* library use only */ |
◆ ATT_SHINE
◆ ATT_TOPO
◆ ATT_TRANSP
◆ ATTY_ANY
#define ATTY_ANY 63 /* internal use only */ |
◆ ATTY_CHAR
◆ ATTY_FLOAT
#define ATTY_FLOAT 8 /* can't use this one for numbytes */ |
◆ ATTY_INT
◆ ATTY_MASK
#define ATTY_MASK 16 /* can't use this one for numbytes */ |
◆ ATTY_NULL
#define ATTY_NULL 32 /* internal use only */ |
◆ ATTY_SHORT
◆ BETWEEN
#define BETWEEN |
( |
|
x, |
|
|
|
a, |
|
|
|
b |
|
) |
| (((x) > (a) && (x) < (b)) || ((x) > (b) && (x) < (a))) |
◆ BLU_MASK
#define BLU_MASK 0x00FF0000 |
◆ CF_CHARSCALED
#define CF_CHARSCALED 0x000100 |
◆ CF_COLOR_PACKED
#define CF_COLOR_PACKED 0x000001 |
◆ CF_NOT_CHANGED
#define CF_NOT_CHANGED 0x000000 |
◆ CF_USR_CHANGED
#define CF_USR_CHANGED 0x000010 |
◆ CM_AD
◆ CM_AMBIENT
◆ CM_COLOR
◆ CM_DIFFUSE
◆ CM_EMISSION
◆ CM_NULL
◆ CM_SPECULAR
◆ CM_WIRE
◆ CONST_ATT
◆ DM_COL_WIRE
#define DM_COL_WIRE 0x00000002 |
◆ DM_FLAT
#define DM_FLAT 0x00000200 /* defined for symmetry */ |
◆ DM_FRINGE
#define DM_FRINGE 0x00000010 |
◆ DM_GOURAUD
#define DM_GOURAUD 0x00000100 |
◆ DM_GRID_SURF
#define DM_GRID_SURF 0x00000800 |
◆ DM_GRID_WIRE
#define DM_GRID_WIRE 0x00000400 |
◆ DM_POLY
#define DM_POLY 0x00000004 |
◆ DM_WIRE
#define DM_WIRE 0x00000001 |
◆ DM_WIRE_POLY
#define DM_WIRE_POLY 0x00000008 |
◆ DOT3
#define DOT3 |
( |
|
a, |
|
|
|
b |
|
) |
| ((a)[X] * (b)[X] + (a)[Y] * (b)[Y] + (a)[Z] * (b)[Z]) |
◆ FC_ABOVE
◆ FC_BELOW
◆ FC_BLEND
◆ FC_GREY
◆ FC_OFF
◆ FM_LABEL
#define FM_LABEL 0x00000010 |
◆ FM_PATH
#define FM_PATH 0x00000004 |
◆ FM_SITE
#define FM_SITE 0x00000002 |
◆ FM_VECT
#define FM_VECT 0x00000001 |
◆ FM_VOL
#define FM_VOL 0x00000008 |
◆ FROM
◆ FUDGE
#define FUDGE |
( |
|
gs | ) |
((gs->zmax_nz - gs->zmin_nz) / 500.) |
◆ FUNC_ATT
◆ GRN_MASK
#define GRN_MASK 0x0000FF00 |
◆ GS_CHAR8
◆ GS_INT32
◆ GS_NEAR_EQUAL
#define GS_NEAR_EQUAL |
( |
|
x, |
|
|
|
y, |
|
|
|
ratio |
|
) |
| |
Value:
((
x) == 0.0 ? GS_BETWEEN((
x), (y) + (y) * (ratio), (y) - (y) * (ratio)) \
: GS_BETWEEN((y), (
x) + (
x) * (ratio), (
x) - (
x) * (ratio))))
Definition at line 34 of file ogsf.h.
◆ GS_SHORT16
◆ GS_UNIT_SIZE
#define GS_UNIT_SIZE 1000. |
◆ GSD_BACK
◆ GSD_BOTH
◆ GSD_FRONT
◆ IFLAG
#define IFLAG unsigned int |
◆ KF_ALL_MASK
#define KF_ALL_MASK 0x000000FF |
◆ KF_DIR_MASK
#define KF_DIR_MASK 0x00000038 |
◆ KF_DIRX
◆ KF_DIRX_MASK
#define KF_DIRX_MASK 0x00000008 |
◆ KF_DIRY
◆ KF_DIRY_MASK
#define KF_DIRY_MASK 0x00000010 |
◆ KF_DIRZ
◆ KF_DIRZ_MASK
#define KF_DIRZ_MASK 0x00000020 |
◆ KF_FOV
◆ KF_FOV_MASK
#define KF_FOV_MASK 0x00000040 |
◆ KF_FROM_MASK
#define KF_FROM_MASK 0x00000007 |
◆ KF_FROMX
◆ KF_FROMX_MASK
#define KF_FROMX_MASK 0x00000001 |
◆ KF_FROMY
◆ KF_FROMY_MASK
#define KF_FROMY_MASK 0x00000002 |
◆ KF_FROMZ
◆ KF_FROMZ_MASK
#define KF_FROMZ_MASK 0x00000004 |
◆ KF_LEGAL_MODE
◆ KF_LINEAR
◆ KF_NUMFIELDS
◆ KF_SPLINE
◆ KF_TWIST
◆ KF_TWIST_MASK
#define KF_TWIST_MASK 0x00000080 |
◆ LEGAL_ATT
#define LEGAL_ATT |
( |
|
a | ) |
(a >= 0 && a < MAX_ATTS) |
◆ LEGAL_SRC
◆ LEGAL_TYPE
Value:
Definition at line 173 of file ogsf.h.
◆ LT_CONTINUOUS
#define LT_CONTINUOUS 0x00000200 |
◆ LT_DISCRETE
#define LT_DISCRETE 0x00000100 |
◆ LT_INVERTED
#define LT_INVERTED 0x00000008 |
◆ LT_LIST
#define LT_LIST 0x00000010 |
◆ LT_RANGE_HISET
#define LT_RANGE_HISET 0x00000002 |
◆ LT_RANGE_LOW_HI
#define LT_RANGE_LOW_HI 0x00000003 |
◆ LT_RANGE_LOWSET
#define LT_RANGE_LOWSET 0x00000001 |
◆ LT_SHOW_LABELS
#define LT_SHOW_LABELS 0x00002000 |
◆ LT_SHOW_VALS
#define LT_SHOW_VALS 0x00001000 |
◆ MAP_ATT
◆ MASK_BL
#define MASK_BL 0x00010000 |
◆ MASK_BR
#define MASK_BR 0x00100000 |
◆ MASK_NPTS
#define MASK_NPTS 0x00000007 |
◆ MASK_TL
#define MASK_TL 0x10000000 |
◆ MASK_TR
#define MASK_TR 0x01000000 |
◆ MAX_ATTS
◆ MAX_CPLANES
◆ MAX_DSP
◆ MAX_ISOSURFS
◆ MAX_LIGHTS
◆ MAX_SITES
◆ MAX_SLICES
◆ MAX_SURFS
◆ MAX_TF
◆ MAX_VECTS
◆ MAX_VOL_FILES
#define MAX_VOL_FILES 100 |
◆ MAX_VOL_SLICES
◆ MAX_VOLS
◆ MAXDIMS
◆ NOTSET_ATT
◆ NULL_COLOR
#define NULL_COLOR 0xFFFFFF |
◆ OGSF_LINE
◆ OGSF_POINT
◆ OGSF_POLYGON
◆ RED_MASK
#define RED_MASK 0x000000FF |
◆ ST_ASTER
◆ ST_BOX
◆ ST_CON_TREE
◆ ST_CUBE
◆ ST_DEC_TREE
◆ ST_DIAMOND
◆ ST_GYRO
◆ ST_HISTOGRAM
◆ ST_SPHERE
◆ ST_X
◆ TO
◆ VOL_DTYPE_DOUBLE
#define VOL_DTYPE_DOUBLE 1 |
◆ VOL_DTYPE_FLOAT
#define VOL_DTYPE_FLOAT 0 |
◆ VOL_FTYPE_RASTER3D
#define VOL_FTYPE_RASTER3D 0 |
◆ WC_COLOR_ATT
#define WC_COLOR_ATT 0xFF000000 |
◆ geoline
◆ geopoint
◆ geosite
◆ geosurf
◆ geovect
◆ geovol
◆ gvstyle
◆ gvstyle_thematic
◆ Keylist
◆ Point2
◆ Point3
◆ Point4
◆ Viewnode
◆ Cxl_func
void(* Cxl_func) (void) |
( |
void |
| ) |
|
|
extern |
◆ Swap_func
void(* Swap_func) (void) |
( |
void |
| ) |
|
|
extern |