BRL-CAD
dm_internal Struct Reference

#include <dm_private.h>

Collaboration diagram for dm_internal:
[legend]

Data Fields

int(* dm_close )(struct dm_internal *dmp)
 
int(* dm_drawBegin )(struct dm_internal *dmp)
 formerly dmr_prolog More...
 
int(* dm_drawEnd )(struct dm_internal *dmp)
 formerly dmr_epilog More...
 
int(* dm_normal )(struct dm_internal *dmp)
 
int(* dm_loadMatrix )(struct dm_internal *dmp, fastf_t *mat, int which_eye)
 
int(* dm_loadPMatrix )(struct dm_internal *dmp, fastf_t *mat)
 
int(* dm_drawString2D )(struct dm_internal *dmp, const char *str, fastf_t x, fastf_t y, int size, int use_aspect)
 formerly dmr_puts More...
 
int(* dm_drawLine2D )(struct dm_internal *dmp, fastf_t x_1, fastf_t y_1, fastf_t x_2, fastf_t y_2)
 formerly dmr_2d_line More...
 
int(* dm_drawLine3D )(struct dm_internal *dmp, point_t pt1, point_t pt2)
 
int(* dm_drawLines3D )(struct dm_internal *dmp, int npoints, point_t *points, int sflag)
 
int(* dm_drawPoint2D )(struct dm_internal *dmp, fastf_t x, fastf_t y)
 
int(* dm_drawPoint3D )(struct dm_internal *dmp, point_t point)
 
int(* dm_drawPoints3D )(struct dm_internal *dmp, int npoints, point_t *points)
 
int(* dm_drawVList )(struct dm_internal *dmp, struct bn_vlist *vp)
 
int(* dm_drawVListHiddenLine )(struct dm_internal *dmp, register struct bn_vlist *vp)
 
int(* dm_draw )(struct dm_internal *dmp, struct bn_vlist *(*callback_function)(void *), void **data)
 formerly dmr_object More...
 
int(* dm_setFGColor )(struct dm_internal *dmp, unsigned char r, unsigned char g, unsigned char b, int strict, fastf_t transparency)
 
int(* dm_setBGColor )(struct dm_internal *, unsigned char, unsigned char, unsigned char)
 
int(* dm_setLineAttr )(struct dm_internal *dmp, int width, int style)
 currently - linewidth, (not-)dashed More...
 
int(* dm_configureWin )(struct dm_internal *dmp, int force)
 
int(* dm_setWinBounds )(struct dm_internal *dmp, fastf_t *w)
 
int(* dm_setLight )(struct dm_internal *dmp, int light_on)
 
int(* dm_setTransparency )(struct dm_internal *dmp, int transparency_on)
 
int(* dm_setDepthMask )(struct dm_internal *dmp, int depthMask_on)
 
int(* dm_setZBuffer )(struct dm_internal *dmp, int zbuffer_on)
 
int(* dm_debug )(struct dm_internal *dmp, int lvl)
 Set DM debug level. More...
 
int(* dm_logfile )(struct dm_internal *dmp, const char *filename)
 Set DM log file. More...
 
int(* dm_beginDList )(struct dm_internal *dmp, unsigned int list)
 
int(* dm_endDList )(struct dm_internal *dmp)
 
void(* dm_drawDList )(unsigned int list)
 
int(* dm_freeDLists )(struct dm_internal *dmp, unsigned int list, int range)
 
int(* dm_genDLists )(struct dm_internal *dmp, size_t range)
 
int(* dm_draw_obj )(struct dm_internal *dmp, struct display_list *obj)
 
int(* dm_getDisplayImage )(struct dm_internal *dmp, unsigned char **image)
 
void(* dm_reshape )(struct dm_internal *dmp, int width, int height)
 
int(* dm_makeCurrent )(struct dm_internal *dmp)
 
int(* dm_openFb )(struct dm_internal *dmp)
 
void(* dm_get_internal )(struct dm_internal *dmp)
 
void(* dm_put_internal )(struct dm_internal *dmp)
 
unsigned long dm_id
 window id More...
 
int dm_displaylist
 !0 means device has displaylist More...
 
int dm_stereo
 stereo flag More...
 
double dm_bound
 zoom-in limit More...
 
int dm_boundFlag
 
const char * dm_name
 short name of device More...
 
const char * dm_lname
 long name of device More...
 
int dm_type
 display manager type More...
 
int dm_top
 !0 means toplevel window More...
 
int dm_width
 
int dm_height
 
int dm_bytes_per_pixel
 
int dm_bits_per_channel
 
int dm_lineWidth
 
int dm_lineStyle
 
fastf_t dm_aspect
 
fastf_tdm_vp
 (FIXME: ogl still depends on this) Viewscale pointer More...
 
struct dm_vars dm_vars
 display manager dependent variables More...
 
void * m_vars
 
void * p_vars
 
struct bu_vls dm_pathName
 full Tcl/Tk name of drawing window More...
 
struct bu_vls dm_tkName
 short Tcl/Tk name of drawing window More...
 
struct bu_vls dm_dName
 Display name. More...
 
unsigned char dm_bg [3]
 background color More...
 
unsigned char dm_fg [3]
 foreground color More...
 
vect_t dm_clipmin
 minimum clipping vector More...
 
vect_t dm_clipmax
 maximum clipping vector More...
 
int dm_debugLevel
 !0 means debugging More...
 
struct bu_vls dm_log
 !NULL && !empty means log debug output to the file More...
 
int dm_perspective
 !0 means perspective on More...
 
int dm_light
 !0 means lighting on More...
 
int dm_transparency
 !0 means transparency on More...
 
int dm_depthMask
 !0 means depth buffer is writable More...
 
int dm_zbuffer
 !0 means zbuffer on More...
 
int dm_zclip
 !0 means zclipping More...
 
int dm_clearBufferAfter
 1 means clear back buffer after drawing and swap More...
 
int dm_fontsize
 !0 override's the auto font size More...
 
struct bu_structparsevparse
 Table listing settable variables. More...
 
fbfbp
 Framebuffer associated with this display instance. More...
 
Tcl_Interp * dm_interp
 Tcl interpreter. More...
 

Detailed Description

Interface to a specific Display Manager

Definition at line 42 of file dm_private.h.

Field Documentation

int(* dm_close) (struct dm_internal *dmp)

Definition at line 43 of file dm_private.h.

Referenced by dm_close().

int(* dm_drawBegin) (struct dm_internal *dmp)

formerly dmr_prolog

Definition at line 44 of file dm_private.h.

Referenced by dm_draw_begin().

int(* dm_drawEnd) (struct dm_internal *dmp)

formerly dmr_epilog

Definition at line 45 of file dm_private.h.

Referenced by dm_draw_end().

int(* dm_normal) (struct dm_internal *dmp)

Definition at line 46 of file dm_private.h.

Referenced by dm_normal().

int(* dm_loadMatrix) (struct dm_internal *dmp, fastf_t *mat, int which_eye)

Definition at line 47 of file dm_private.h.

Referenced by dm_loadmatrix().

int(* dm_loadPMatrix) (struct dm_internal *dmp, fastf_t *mat)

Definition at line 48 of file dm_private.h.

Referenced by dm_loadpmatrix().

int(* dm_drawString2D) (struct dm_internal *dmp, const char *str, fastf_t x, fastf_t y, int size, int use_aspect)

formerly dmr_puts

Definition at line 49 of file dm_private.h.

Referenced by dm_draw_string_2d().

int(* dm_drawLine2D) (struct dm_internal *dmp, fastf_t x_1, fastf_t y_1, fastf_t x_2, fastf_t y_2)

formerly dmr_2d_line

Definition at line 50 of file dm_private.h.

Referenced by dm_draw_line_2d().

int(* dm_drawLine3D) (struct dm_internal *dmp, point_t pt1, point_t pt2)

Definition at line 51 of file dm_private.h.

Referenced by dm_draw_line_3d().

int(* dm_drawLines3D) (struct dm_internal *dmp, int npoints, point_t *points, int sflag)

Definition at line 52 of file dm_private.h.

Referenced by dm_draw_lines_3d().

int(* dm_drawPoint2D) (struct dm_internal *dmp, fastf_t x, fastf_t y)

Definition at line 53 of file dm_private.h.

Referenced by dm_draw_point_2d().

int(* dm_drawPoint3D) (struct dm_internal *dmp, point_t point)

Definition at line 54 of file dm_private.h.

Referenced by dm_draw_point_3d().

int(* dm_drawPoints3D) (struct dm_internal *dmp, int npoints, point_t *points)

Definition at line 55 of file dm_private.h.

Referenced by dm_draw_points_3d().

int(* dm_drawVList) (struct dm_internal *dmp, struct bn_vlist *vp)

Definition at line 56 of file dm_private.h.

Referenced by dm_draw_vlist().

int(* dm_drawVListHiddenLine) (struct dm_internal *dmp, register struct bn_vlist *vp)

Definition at line 57 of file dm_private.h.

Referenced by dm_draw_vlist_hidden_line().

int(* dm_draw) (struct dm_internal *dmp, struct bn_vlist *(*callback_function)(void *), void **data)

formerly dmr_object

Definition at line 58 of file dm_private.h.

Referenced by dm_draw().

int(* dm_setFGColor) (struct dm_internal *dmp, unsigned char r, unsigned char g, unsigned char b, int strict, fastf_t transparency)

Definition at line 59 of file dm_private.h.

Referenced by dm_set_fg().

int(* dm_setBGColor) (struct dm_internal *, unsigned char, unsigned char, unsigned char)

Definition at line 60 of file dm_private.h.

Referenced by dm_set_bg().

int(* dm_setLineAttr) (struct dm_internal *dmp, int width, int style)

currently - linewidth, (not-)dashed

Definition at line 61 of file dm_private.h.

Referenced by dm_set_line_attr().

int(* dm_configureWin) (struct dm_internal *dmp, int force)

Definition at line 62 of file dm_private.h.

Referenced by dm_configure_win().

int(* dm_setWinBounds) (struct dm_internal *dmp, fastf_t *w)

Definition at line 63 of file dm_private.h.

Referenced by dm_set_win_bounds().

int(* dm_setLight) (struct dm_internal *dmp, int light_on)

Definition at line 64 of file dm_private.h.

Referenced by dm_set_light().

int(* dm_setTransparency) (struct dm_internal *dmp, int transparency_on)

Definition at line 65 of file dm_private.h.

Referenced by dm_set_transparency().

int(* dm_setDepthMask) (struct dm_internal *dmp, int depthMask_on)

Definition at line 66 of file dm_private.h.

Referenced by dm_set_depth_mask().

int(* dm_setZBuffer) (struct dm_internal *dmp, int zbuffer_on)

Definition at line 67 of file dm_private.h.

Referenced by dm_set_zbuffer().

int(* dm_debug) (struct dm_internal *dmp, int lvl)

Set DM debug level.

Definition at line 68 of file dm_private.h.

Referenced by dm_debug().

int(* dm_logfile) (struct dm_internal *dmp, const char *filename)

Set DM log file.

Definition at line 69 of file dm_private.h.

Referenced by dm_logfile().

int(* dm_beginDList) (struct dm_internal *dmp, unsigned int list)

Definition at line 70 of file dm_private.h.

Referenced by dm_begin_dlist().

int(* dm_endDList) (struct dm_internal *dmp)

Definition at line 71 of file dm_private.h.

Referenced by dm_end_dlist().

void(* dm_drawDList) (unsigned int list)

Definition at line 72 of file dm_private.h.

Referenced by dm_draw_dlist().

int(* dm_freeDLists) (struct dm_internal *dmp, unsigned int list, int range)

Definition at line 73 of file dm_private.h.

Referenced by dm_free_dlists().

int(* dm_genDLists) (struct dm_internal *dmp, size_t range)

Definition at line 74 of file dm_private.h.

Referenced by dm_gen_dlists().

int(* dm_draw_obj) (struct dm_internal *dmp, struct display_list *obj)

Definition at line 75 of file dm_private.h.

Referenced by dm_draw_obj().

int(* dm_getDisplayImage) (struct dm_internal *dmp, unsigned char **image)

Definition at line 76 of file dm_private.h.

Referenced by dm_get_display_image().

void(* dm_reshape) (struct dm_internal *dmp, int width, int height)

Definition at line 77 of file dm_private.h.

int(* dm_makeCurrent) (struct dm_internal *dmp)

Definition at line 78 of file dm_private.h.

Referenced by dm_make_current().

int(* dm_openFb) (struct dm_internal *dmp)

Definition at line 79 of file dm_private.h.

Referenced by dm_get_fb().

void(* dm_get_internal) (struct dm_internal *dmp)

Definition at line 80 of file dm_private.h.

void(* dm_put_internal) (struct dm_internal *dmp)

Definition at line 81 of file dm_private.h.

Referenced by dm_put().

unsigned long dm_id

window id

Definition at line 82 of file dm_private.h.

Referenced by dm_get_id(), and dm_set_id().

int dm_displaylist

!0 means device has displaylist

Definition at line 83 of file dm_private.h.

Referenced by dm_get_displaylist().

int dm_stereo

stereo flag

Definition at line 84 of file dm_private.h.

Referenced by dm_get_stereo().

double dm_bound

zoom-in limit

Definition at line 85 of file dm_private.h.

Referenced by dm_set_bound(), and dmo_bounds_tcl().

int dm_boundFlag

Definition at line 86 of file dm_private.h.

Referenced by dm_get_bound_flag().

const char* dm_name

short name of device

Definition at line 87 of file dm_private.h.

Referenced by dm_get_dm_name().

const char* dm_lname

long name of device

Definition at line 88 of file dm_private.h.

Referenced by dm_get_dm_lname().

int dm_type

display manager type

Definition at line 89 of file dm_private.h.

Referenced by dm_fogHint(), dm_get_type(), and dm_share_dlist().

int dm_top

!0 means toplevel window

Definition at line 90 of file dm_private.h.

Referenced by dm_processOptions().

int dm_bytes_per_pixel

Definition at line 93 of file dm_private.h.

int dm_bits_per_channel

Definition at line 94 of file dm_private.h.

fastf_t* dm_vp

(FIXME: ogl still depends on this) Viewscale pointer

Definition at line 98 of file dm_private.h.

Referenced by dm_get_vp(), and dm_set_vp().

void* m_vars

Definition at line 100 of file dm_private.h.

Referenced by dm_get_mvars().

void* p_vars

Definition at line 101 of file dm_private.h.

struct bu_vls dm_pathName

full Tcl/Tk name of drawing window

Definition at line 102 of file dm_private.h.

Referenced by dm_get(), dm_get_pathname(), dm_processOptions(), dm_put(), plot_close(), plot_open(), ps_close(), and ps_open().

struct bu_vls dm_tkName

short Tcl/Tk name of drawing window

Definition at line 103 of file dm_private.h.

Referenced by dm_get_tkname(), plot_open(), ps_close(), and ps_open().

struct bu_vls dm_dName

Display name.

Definition at line 104 of file dm_private.h.

Referenced by dm_get(), dm_get_dname(), dm_processOptions(), dm_put(), and dm_share_dlist().

unsigned char dm_bg[3]

background color

Definition at line 105 of file dm_private.h.

Referenced by dm_get_bg(), and dmo_bg_tcl().

unsigned char dm_fg[3]

foreground color

Definition at line 106 of file dm_private.h.

Referenced by dm_get_fg(), and dmo_fg_tcl().

vect_t dm_clipmin

minimum clipping vector

Definition at line 107 of file dm_private.h.

Referenced by dm_get_clipmin(), dmo_bounds_tcl(), dmo_open_tcl(), plot_drawVList(), plot_setWinBounds(), ps_drawVList(), and ps_setWinBounds().

vect_t dm_clipmax

maximum clipping vector

Definition at line 108 of file dm_private.h.

Referenced by dm_get_clipmax(), dmo_bounds_tcl(), dmo_open_tcl(), plot_drawVList(), plot_setWinBounds(), ps_drawVList(), and ps_setWinBounds().

int dm_debugLevel

!0 means debugging

Definition at line 109 of file dm_private.h.

Referenced by dmo_debug_tcl(), plot_debug(), and ps_debug().

struct bu_vls dm_log

!NULL && !empty means log debug output to the file

Definition at line 110 of file dm_private.h.

Referenced by dmo_logfile_tcl(), plot_logfile(), and ps_logfile().

int dm_perspective
int dm_light

!0 means lighting on

Definition at line 112 of file dm_private.h.

Referenced by dm_draw_data_axes(), dm_get_light_flag(), dm_set_light_flag(), and dmo_light_tcl().

int dm_transparency

!0 means transparency on

Definition at line 113 of file dm_private.h.

Referenced by dm_get_transparency(), dmo_drawSList(), and dmo_transparency_tcl().

int dm_depthMask

!0 means depth buffer is writable

Definition at line 114 of file dm_private.h.

Referenced by dmo_depthMask_tcl().

int dm_zbuffer

!0 means zbuffer on

Definition at line 115 of file dm_private.h.

Referenced by dm_get_zbuffer(), and dmo_zbuffer_tcl().

int dm_zclip

!0 means zclipping

Definition at line 116 of file dm_private.h.

Referenced by dm_get_zclip(), dm_set_zclip(), dmo_zclip_tcl(), plot_open(), plot_setWinBounds(), ps_open(), and ps_setWinBounds().

int dm_clearBufferAfter

1 means clear back buffer after drawing and swap

Definition at line 117 of file dm_private.h.

Referenced by dmo_clearBufferAfter_tcl().

int dm_fontsize

!0 override's the auto font size

Definition at line 118 of file dm_private.h.

Referenced by dm_get_fontsize(), and dm_set_fontsize().

struct bu_structparse* vparse

Table listing settable variables.

Definition at line 119 of file dm_private.h.

Referenced by dm_get_vparse().

fb* fbp

Framebuffer associated with this display instance.

Definition at line 120 of file dm_private.h.

Referenced by dm_get_fb(), and dm_put().

Tcl_Interp* dm_interp

Tcl interpreter.

Definition at line 121 of file dm_private.h.

Referenced by dm_interp(), null_open(), plot_debug(), plot_loadMatrix(), plot_logfile(), plot_open(), ps_loadMatrix(), ps_open(), and txt_open().


The documentation for this struct was generated from the following file: