Go to the source code of this file.
|
#define | GET_MAPATT1(buff, offset, att) |
|
#define | GET_MAPATT2(buff, offset, att) |
|
#define | SCALE_ATT(att, val, low, high) |
|
#define | GET_MAPATT(buff, offset, att) (get_mapatt(buff, offset, &(att))) |
|
#define | BM_GET_BYOFFSET(bm, off) (bm ? BM_get(bm, (off % bm->cols), (off / bm->cols)) : 0) |
|
#define | XYMAXPOS 0x3ff /* 1023 */ |
|
#define | ZMAXPOS 0x3ff /* 1023 */ |
|
#define | NXMASK 0xffe00000 /* top 11 bits */ |
|
#define | NYMASK 0x1ffc00 /* middle 11 bits of packed int */ |
|
#define | NZMASK 0x3ff /* lowest 10 bits */ |
|
#define | NZUP 0x000003ff |
|
#define | FNORM(i, nv) |
|
#define | PNORM(i, nv) |
|
◆ BM_GET_BYOFFSET
#define BM_GET_BYOFFSET |
( |
|
bm, |
|
|
|
off |
|
) |
| (bm ? BM_get(bm, (off % bm->cols), (off / bm->cols)) : 0) |
◆ FNORM
Value:
Definition at line 51 of file gsget.h.
◆ GET_MAPATT
#define GET_MAPATT |
( |
|
buff, |
|
|
|
offset, |
|
|
|
att |
|
) |
| (get_mapatt(buff, offset, &(att))) |
◆ GET_MAPATT1
#define GET_MAPATT1 |
( |
|
buff, |
|
|
|
offset, |
|
|
|
att |
|
) |
| |
Value: att = (buff->ib ? (float)buff->ib[offset] \
: buff->sb ? (float)buff->sb[offset] \
: buff->cb ? (float)buff->cb[offset] \
: buff->fb ? (float)buff->fb[offset] \
: 0.0)
Definition at line 6 of file gsget.h.
◆ GET_MAPATT2
#define GET_MAPATT2 |
( |
|
buff, |
|
|
|
offset, |
|
|
|
att |
|
) |
| |
Value: att = (buff->ib ? (float)buff->ib[offset] \
: buff->sb ? (float)buff->sb[offset] \
: buff->cb ? (float)buff->cb[offset] \
: buff->fb ? (float)buff->fb[offset] \
: buff->k); \
if (buff->tfunc) \
att = (buff->tfunc)(att, offset);
Definition at line 13 of file gsget.h.
◆ NXMASK
#define NXMASK 0xffe00000 /* top 11 bits */ |
◆ NYMASK
#define NYMASK 0x1ffc00 /* middle 11 bits of packed int */ |
◆ NZMASK
#define NZMASK 0x3ff /* lowest 10 bits */ |
◆ NZUP
◆ PNORM
Value:
Definition at line 57 of file gsget.h.
◆ SCALE_ATT
#define SCALE_ATT |
( |
|
att, |
|
|
|
val, |
|
|
|
low, |
|
|
|
high |
|
) |
| |
Value: ((val) <= att->max_nz && (val) >= att->min_nz && att->range_nz \
? (((val) - att->min_nz) / att->range_nz) * ((high) - (low)) + (low) \
: 0)
Definition at line 24 of file gsget.h.
◆ XYMAXPOS
#define XYMAXPOS 0x3ff /* 1023 */ |
◆ ZMAXPOS
#define ZMAXPOS 0x3ff /* 1023 */ |