#include <bu.h>
Include dependency graph for dm.h:
Go to the source code of this file.
Data Structures | |
struct | dm_vars |
struct | dm |
struct | dm_obj |
A display manager object is used for interacting with a display manager. More... | |
Defines | |
#define | DM_EXPORT |
#define | DM_NULL (struct dm *)NULL |
#define | DM_MIN (-2048) |
#define | DM_MAX (2047) |
#define | X 0 |
#define | Y 1 |
#define | Z 2 |
#define | DM_O(_m) offsetof(struct dm, _m) |
#define | GED_MAX 2047.0 |
#define | GED_MIN -2048.0 |
#define | GED_RANGE 4095.0 |
#define | INV_GED 0.00048828125 |
#define | INV_4096 0.000244140625 |
#define | DIVBY4096(x) (((double)(x))*INV_4096) |
#define | GED_TO_Xx(_dmp, x) ((int)((DIVBY4096(x)+0.5)*_dmp->dm_width)) |
#define | GED_TO_Xy(_dmp, x) ((int)((0.5-DIVBY4096(x))*_dmp->dm_height)) |
#define | Xx_TO_GED(_dmp, x) ((int)(((x)/(double)_dmp->dm_width - 0.5) * GED_RANGE)) |
#define | Xy_TO_GED(_dmp, x) ((int)((0.5 - (x)/(double)_dmp->dm_height) * GED_RANGE)) |
#define | FONTBACK "-adobe-courier-medium-r-normal--10-100-75-75-m-60-iso8859-1" |
#define | FONT5 "5x7" |
#define | FONT6 "6x10" |
#define | FONT7 "7x13" |
#define | FONT8 "8x13" |
#define | FONT9 "9x15" |
#define | DM_TYPE_BAD -1 |
#define | DM_TYPE_NULL 0 |
#define | DM_TYPE_PLOT 1 |
#define | DM_TYPE_PS 2 |
#define | DM_TYPE_X 3 |
#define | DM_TYPE_OGL 4 |
#define | DM_TYPE_GLX 5 |
#define | DM_TYPE_PEX 6 |
#define | DM_TYPE_WGL 7 |
#define | DM_SOLID_LINE 0 |
#define | DM_DASHED_LINE 1 |
#define | IS_DM_TYPE_NULL(_t) ((_t) == DM_TYPE_NULL) |
#define | IS_DM_TYPE_PLOT(_t) ((_t) == DM_TYPE_PLOT) |
#define | IS_DM_TYPE_PS(_t) ((_t) == DM_TYPE_PS) |
#define | IS_DM_TYPE_X(_t) ((_t) == DM_TYPE_X) |
#define | IS_DM_TYPE_OGL(_t) ((_t) == DM_TYPE_OGL) |
#define | IS_DM_TYPE_GLX(_t) ((_t) == DM_TYPE_GLX) |
#define | IS_DM_TYPE_PEX(_t) ((_t) == DM_TYPE_PEX) |
#define | IS_DM_TYPE_WGL(_t) ((_t) == DM_TYPE_WGL) |
#define | GET_DM(p, structure, w, hp) |
#define | DM_COLOR_HI ((short)230) |
#define | DM_COLOR_LOW ((short)0) |
#define | DM_BLACK_R DM_COLOR_LOW |
#define | DM_BLACK_G DM_COLOR_LOW |
#define | DM_BLACK_B DM_COLOR_LOW |
#define | DM_RED_R DM_COLOR_HI |
#define | DM_RED_G DM_COLOR_LOW |
#define | DM_RED_B DM_COLOR_LOW |
#define | DM_BLUE_R DM_COLOR_LOW |
#define | DM_BLUE_G DM_COLOR_LOW |
#define | DM_BLUE_B DM_COLOR_HI |
#define | DM_YELLOW_R DM_COLOR_HI |
#define | DM_YELLOW_G DM_COLOR_HI |
#define | DM_YELLOW_B DM_COLOR_LOW |
#define | DM_WHITE_R DM_COLOR_HI |
#define | DM_WHITE_G DM_COLOR_HI |
#define | DM_WHITE_B DM_COLOR_HI |
#define | DM_BLACK DM_BLACK_R, DM_BLACK_G, DM_BLACK_B |
#define | DM_RED DM_RED_R, DM_RED_G, DM_RED_B |
#define | DM_BLUE DM_BLUE_R, DM_BLUE_G, DM_BLUE_B |
#define | DM_YELLOW DM_YELLOW_R, DM_YELLOW_G, DM_YELLOW_B |
#define | DM_WHITE DM_WHITE_R, DM_WHITE_G, DM_WHITE_B |
#define | DM_COPY_COLOR(_dr, _dg, _db, _sr, _sg, _sb) |
#define | DM_SAME_COLOR(_dr, _dg, _db, _sr, _sg, _sb) |
#define | DM_CHGV_REDO 0 |
#define | DM_CHGV_ADD 1 |
#define | DM_CHGV_DEL 2 |
#define | DM_CHGV_REPL 3 |
#define | DM_CHGV_ILLUM 4 |
#define | LIGHT_OFF 0 |
#define | LIGHT_ON 1 |
#define | LIGHT_RESET 2 |
#define | DM_OPEN(_type, _argc, _argv) dm_open(_type,_argc,_argv) |
#define | DM_CLOSE(_dmp) _dmp->dm_close(_dmp) |
#define | DM_DRAW_BEGIN(_dmp) _dmp->dm_drawBegin(_dmp) |
#define | DM_DRAW_END(_dmp) _dmp->dm_drawEnd(_dmp) |
#define | DM_NORMAL(_dmp) _dmp->dm_normal(_dmp) |
#define | DM_LOADMATRIX(_dmp, _mat, _eye) _dmp->dm_loadMatrix(_dmp,_mat,_eye) |
#define | DM_DRAW_STRING_2D(_dmp, _str, _x, _y, _size, _use_aspect) _dmp->dm_drawString2D(_dmp,_str,_x,_y,_size,_use_aspect) |
#define | DM_DRAW_LINE_2D(_dmp, _x1, _y1, _x2, _y2) _dmp->dm_drawLine2D(_dmp,_x1,_y1,_x2,_y2) |
#define | DM_DRAW_POINT_2D(_dmp, _x, _y) _dmp->dm_drawPoint2D(_dmp,_x,_y) |
#define | DM_DRAW_VLIST(_dmp, _vlist) _dmp->dm_drawVList(_dmp,_vlist) |
#define | DM_SET_FGCOLOR(_dmp, _r, _g, _b, _strict, _transparency) _dmp->dm_setFGColor(_dmp,_r,_g,_b,_strict,_transparency) |
#define | DM_SET_BGCOLOR(_dmp, _r, _g, _b) _dmp->dm_setBGColor(_dmp,_r,_g,_b) |
#define | DM_SET_LINE_ATTR(_dmp, _width, _dashed) _dmp->dm_setLineAttr(_dmp,_width,_dashed) |
#define | DM_CONFIGURE_WIN(_dmp) _dmp->dm_configureWin(_dmp) |
#define | DM_SET_WIN_BOUNDS(_dmp, _w) _dmp->dm_setWinBounds(_dmp,_w) |
#define | DM_SET_LIGHT(_dmp, _on) _dmp->dm_setLight(_dmp,_on) |
#define | DM_SET_TRANSPARENCY(_dmp, _on) _dmp->dm_setTransparency(_dmp,_on) |
#define | DM_SET_DEPTH_MASK(_dmp, _on) _dmp->dm_setDepthMask(_dmp,_on) |
#define | DM_SET_ZBUFFER(_dmp, _on) _dmp->dm_setZBuffer(_dmp,_on) |
#define | DM_DEBUG(_dmp, _lvl) _dmp->dm_debug(_dmp,_lvl) |
#define | DM_BEGINDLIST(_dmp, _list) _dmp->dm_beginDList(_dmp,_list) |
#define | DM_ENDDLIST(_dmp) _dmp->dm_endDList(_dmp) |
#define | DM_DRAWDLIST(_dmp, _list) _dmp->dm_drawDList(_dmp,_list) |
#define | DM_FREEDLISTS(_dmp, _list, _range) _dmp->dm_freeDLists(_dmp,_list,_range) |
Functions | |
DM_EXPORT int | Dm_Init () |
DM_EXPORT struct dm * | dm_open (Tcl_Interp *interp, int type, int argc, char *argv[]) |
DM_EXPORT int | dm_share_dlist (struct dm *dmp1, struct dm *dmp2) |
DM_EXPORT fastf_t | dm_Xx2Normal (struct dm *dmp, register int x) |
DM_EXPORT int | dm_Normal2Xx (struct dm *dmp, register fastf_t f) |
DM_EXPORT fastf_t | dm_Xy2Normal (struct dm *dmp, register int y, int use_aspect) |
DM_EXPORT int | dm_Normal2Xy (struct dm *dmp, register fastf_t f, int use_aspect) |
DM_EXPORT void | dm_fogHint (struct dm *dmp, int fastfog) |
DM_EXPORT int | dm_processOptions () |
DM_EXPORT int | dm_limit (int i) |
DM_EXPORT int | dm_unlimit (int i) |
DM_EXPORT fastf_t | dm_wrap (fastf_t f) |
DM_EXPORT void | Nu_void () |
DM_EXPORT struct dm * | Nu_open () |
DM_EXPORT int | Nu_int0 () |
DM_EXPORT unsigned | Nu_unsign () |
DM_EXPORT int | clip (fastf_t *, fastf_t *, fastf_t *, fastf_t *) |
DM_EXPORT int | vclip (fastf_t *, fastf_t *, register fastf_t *, register fastf_t *) |
DM_EXPORT void | dmo_drawAxes_cmd (struct dm *dmp, fastf_t viewSize, mat_t rmat, point_t axesPos, fastf_t axesSize, int *axesColor, int *labelColor, int lineWidth, int posOnly, int threeColor, int tickEnable, int tickLen, int majorTickLen, fastf_t tickInterval, int ticksPerMajor, int *tickColor, int *majorTickColor, int tickThreshold) |
Variables | |
DM_EXPORT struct dm | dm_Null |
DM_EXPORT char | dm_version [] |
Definition in file dm.h.