BRL-CAD
dm-generic.c File Reference
#include "common.h"
#include <string.h>
#include "tcl.h"
#include "vmath.h"
#include "dm.h"
#include "dm_private.h"
#include "dm-Null.h"
#include "solid.h"
Include dependency graph for dm-generic.c:

Go to the source code of this file.

Functions

dmplot_open (Tcl_Interp *interp, int argc, const char *argv[])
 
dmps_open (Tcl_Interp *interp, int argc, const char *argv[])
 
dmtxt_open (Tcl_Interp *interp, int argc, const char **argv)
 
HIDDEN dmnull_open (Tcl_Interp *interp, int argc, const char *argv[])
 
dmdm_open (Tcl_Interp *interp, int type, int argc, const char *argv[])
 
void * dm_interp (dm *dmp)
 
int dm_share_dlist (dm *dmp1, dm *dmp2)
 
fastf_t dm_Xx2Normal (dm *dmp, int x)
 
int dm_Normal2Xx (dm *dmp, fastf_t f)
 
fastf_t dm_Xy2Normal (dm *dmp, int y, int use_aspect)
 
int dm_Normal2Xy (dm *dmp, fastf_t f, int use_aspect)
 
void dm_fogHint (dm *dmp, int fastfog)
 
dmdm_get ()
 
void dm_put (dm *dmp)
 
void dm_set_null (dm *dmp)
 
fbdm_get_fb (dm *dmp)
 
void * dm_get_xvars (dm *dmp)
 
const char * dm_get_dm_name (dm *dmp)
 
const char * dm_get_dm_lname (dm *dmp)
 
int dm_get_width (dm *dmp)
 
int dm_get_height (dm *dmp)
 
void dm_set_width (dm *dmp, int width)
 
void dm_set_height (dm *dmp, int height)
 
int dm_get_type (dm *dmp)
 
int dm_get_displaylist (dm *dmp)
 
fastf_t dm_get_aspect (dm *dmp)
 
int dm_get_fontsize (dm *dmp)
 
void dm_set_fontsize (dm *dmp, int size)
 
int dm_get_light_flag (dm *dmp)
 
void dm_set_light_flag (dm *dmp, int val)
 
int dm_close (dm *dmp)
 
unsigned char * dm_get_bg (dm *dmp)
 
int dm_set_bg (dm *dmp, unsigned char r, unsigned char g, unsigned char b)
 
unsigned char * dm_get_fg (dm *dmp)
 
int dm_set_fg (dm *dmp, unsigned char r, unsigned char g, unsigned char b, int strict, fastf_t transparency)
 
int dm_make_current (dm *dmp)
 
vect_t * dm_get_clipmin (dm *dmp)
 
vect_t * dm_get_clipmax (dm *dmp)
 
int dm_get_bound_flag (dm *dmp)
 
void dm_set_bound (dm *dmp, fastf_t val)
 
int dm_set_win_bounds (dm *dmp, fastf_t *w)
 
int dm_get_stereo (dm *dmp)
 
int dm_configure_win (dm *dmp, int force)
 
struct bu_vlsdm_get_pathname (dm *dmp)
 
struct bu_vlsdm_get_dname (dm *dmp)
 
struct bu_vlsdm_get_tkname (dm *dmp)
 
unsigned long dm_get_id (dm *dmp)
 
void dm_set_id (dm *dmp, unsigned long new_id)
 
int dm_set_light (dm *dmp, int light)
 
void * dm_get_public_vars (dm *dmp)
 
void * dm_get_private_vars (dm *dmp)
 
int dm_get_transparency (dm *dmp)
 
int dm_set_transparency (dm *dmp, int transparency)
 
int dm_get_zbuffer (dm *dmp)
 
int dm_set_zbuffer (dm *dmp, int zbuffer)
 
int dm_get_linewidth (dm *dmp)
 
void dm_set_linewidth (dm *dmp, int linewidth)
 
int dm_get_linestyle (dm *dmp)
 
void dm_set_linestyle (dm *dmp, int linestyle)
 
int dm_set_line_attr (dm *dmp, int width, int style)
 
int dm_get_zclip (dm *dmp)
 
void dm_set_zclip (dm *dmp, int zclip)
 
int dm_get_perspective (dm *dmp)
 
void dm_set_perspective (dm *dmp, fastf_t perspective)
 
int dm_get_display_image (struct dm_internal *dmp, unsigned char **image)
 
int dm_gen_dlists (struct dm_internal *dmp, size_t range)
 
int dm_begin_dlist (struct dm_internal *dmp, unsigned int list)
 
void dm_draw_dlist (struct dm_internal *dmp, unsigned int list)
 
int dm_end_dlist (struct dm_internal *dmp)
 
int dm_free_dlists (struct dm_internal *dmp, unsigned int list, int range)
 
int dm_draw_vlist (struct dm_internal *dmp, struct bn_vlist *vp)
 
int dm_draw_vlist_hidden_line (struct dm_internal *dmp, struct bn_vlist *vp)
 
int dm_draw_begin (dm *dmp)
 
int dm_draw_end (dm *dmp)
 
int dm_normal (dm *dmp)
 
int dm_loadmatrix (dm *dmp, fastf_t *mat, int eye)
 
int dm_loadpmatrix (dm *dmp, fastf_t *mat)
 
int dm_draw_string_2d (dm *dmp, const char *str, fastf_t x, fastf_t y, int size, int use_aspect)
 
int dm_draw_line_2d (dm *dmp, fastf_t x1, fastf_t y1_2d, fastf_t x2, fastf_t y2)
 
int dm_draw_line_3d (dm *dmp, point_t pt1, point_t pt2)
 
int dm_draw_lines_3d (dm *dmp, int npoints, point_t *points, int sflag)
 
int dm_draw_point_2d (dm *dmp, fastf_t x, fastf_t y)
 
int dm_draw_point_3d (dm *dmp, point_t pt)
 
int dm_draw_points_3d (dm *dmp, int npoints, point_t *points)
 
int dm_draw (dm *dmp, struct bn_vlist *(*callback)(void *), void **data)
 
int dm_draw_obj (dm *dmp, struct display_list *obj)
 
int dm_set_depth_mask (dm *dmp, int d_on)
 
int dm_debug (dm *dmp, int lvl)
 
int dm_logfile (dm *dmp, const char *filename)
 
fastf_tdm_get_vp (dm *dmp)
 
void dm_set_vp (dm *dmp, fastf_t *vp)
 
void dm_generic_hook (const struct bu_structparse *sdp, const char *name, void *base, const char *value, void *data)
 
int dm_set_hook (const struct bu_structparse_map *map, const char *key, void *data, struct dm_hook_data *hook)
 
struct bu_structparsedm_get_vparse (dm *dmp)
 
void * dm_get_mvars (dm *dmp)
 
int dm_draw_display_list (dm *dmp, struct bu_list *dl, fastf_t transparency_threshold, fastf_t inv_viewsize, short r, short g, short b, int line_width, int draw_style, int draw_edit, unsigned char *gdc, int solids_down, int mv_dlist)
 
struct bu_vlsdm_list_types (const char separator)
 

Detailed Description

Generic display manager routines.

Definition in file dm-generic.c.

Function Documentation

dm* plot_open ( Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)

Definition at line 584 of file dm-plot.c.

References BU_ALLOC, bu_vls_addr(), bu_vls_init(), bu_vls_printf(), bu_vls_strcat(), bu_vls_strcpy(), dm_internal::dm_interp, DM_NULL, dm_internal::dm_pathName, dm_plot, dm_internal::dm_tkName, dm_internal::dm_vars, dm_internal::dm_zclip, OSL::Strings::interp, pl_3space(), pl_space(), plot_close(), and dm_vars::priv_vars.

Referenced by dm_open().

Here is the call graph for this function:

dm* ps_open ( Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)

Definition at line 576 of file dm-ps.c.

References BU_ALLOC, bu_vls_addr(), bu_vls_init(), bu_vls_printf(), bu_vls_strcpy(), dm_internal::dm_interp, DM_NULL, dm_internal::dm_pathName, dm_ps, dm_internal::dm_tkName, dm_internal::dm_vars, dm_internal::dm_zclip, OSL::Strings::interp, dm_vars::priv_vars, ps_close(), and ps_usage.

Referenced by dm_open().

Here is the call graph for this function:

dm* txt_open ( Tcl_Interp *  interp,
int  argc,
const char **  argv 
)

Definition at line 37 of file dm-txt.c.

References BU_ALLOC, bu_log(), dm_internal::dm_interp, DM_NULL, dm_txt, and OSL::Strings::interp.

Referenced by dm_open().

Here is the call graph for this function:

HIDDEN dm* null_open ( Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)

Definition at line 90 of file dm-generic.c.

References BU_ALLOC, dm_internal::dm_interp, DM_NULL, dm_null, and OSL::Strings::interp.

Referenced by dm_open().

void dm_generic_hook ( const struct bu_structparse sdp,
const char *  name,
void *  base,
const char *  value,
void *  data 
)

Definition at line 831 of file dm-generic.c.

References dm_hook_data::dm_hook, and dm_hook_data::dmh_data.