BRL-CAD
dm-txt.c File Reference
#include "common.h"
#include "tcl.h"
#include "vmath.h"
#include "dm.h"
#include "dm_private.h"
Include dependency graph for dm-txt.c:

Go to the source code of this file.

Functions

dmtxt_open (Tcl_Interp *interp, int argc, const char **argv)
 
HIDDEN int txt_close (dm *dmp)
 
HIDDEN int txt_drawBegin (dm *dmp)
 
HIDDEN int txt_drawEnd (dm *dmp)
 
HIDDEN int txt_normal (dm *dmp)
 
HIDDEN int txt_loadMatrix (dm *dmp, fastf_t *mat, int which_eye)
 
HIDDEN int txt_loadPMatrix (dm *dmp, fastf_t *mat)
 
HIDDEN int txt_drawString2D (dm *dmp, const char *str, fastf_t x, fastf_t y, int size, int use_aspect)
 
HIDDEN int txt_drawLine2D (dm *dmp, fastf_t x_1, fastf_t y_1, fastf_t x_2, fastf_t y_2)
 
HIDDEN int txt_drawLine3D (dm *dmp, point_t pt1, point_t pt2)
 
HIDDEN int txt_drawLines3D (dm *dmp, int npoints, point_t *points, int sflag)
 
HIDDEN int txt_drawPoint2D (dm *dmp, fastf_t x, fastf_t y)
 
HIDDEN int txt_drawPoint3D (dm *dmp, point_t point)
 
HIDDEN int txt_drawPoints3D (dm *dmp, int npoints, point_t *points)
 
HIDDEN int txt_drawVList (dm *dmp, struct bn_vlist *vp)
 
HIDDEN int txt_drawVListHiddenLine (dm *dmp, struct bn_vlist *vp)
 
HIDDEN int txt_draw (dm *dmp, struct bn_vlist *(*callback_function)(void *), void **data)
 
HIDDEN int txt_setFGColor (dm *dmp, unsigned char r, unsigned char g, unsigned char b, int strict, fastf_t transparency)
 
HIDDEN int txt_setBGColor (dm *dmp, unsigned char r, unsigned char g, unsigned char b)
 
HIDDEN int txt_setLineAttr (dm *dmp, int width, int style)
 
HIDDEN int txt_configureWin (dm *dmp, int force)
 
HIDDEN int txt_setWinBounds (dm *dmp, fastf_t *w)
 
HIDDEN int txt_setLight (dm *dmp, int light_on)
 
HIDDEN int txt_setTransparency (dm *dmp, int transparency)
 
HIDDEN int txt_setDepthMask (dm *dmp, int mask)
 
HIDDEN int txt_setZBuffer (dm *dmp, int zbuffer_on)
 
HIDDEN int txt_debug (dm *dmp, int lvl)
 
HIDDEN int txt_logfile (dm *dmp, const char *filename)
 
HIDDEN int txt_beginDList (dm *dmp, unsigned int list)
 
HIDDEN int txt_endDList (dm *dmp)
 
HIDDEN void txt_drawDList (unsigned int list)
 
HIDDEN int txt_freeDLists (dm *dmp, unsigned int list, int range)
 
HIDDEN int txt_genDLists (dm *dmp, size_t range)
 
HIDDEN int txt_getDisplayImage (dm *dmp, unsigned char **image)
 
HIDDEN void txt_reshape (dm *dmp, int width, int height)
 
HIDDEN int txt_makeCurrent (dm *dmp)
 
HIDDEN int txt_openFb (dm *dmp)
 

Variables

dm dm_txt
 

Function Documentation

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 int txt_close ( dm dmp)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_drawBegin ( dm dmp)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_drawEnd ( dm dmp)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_normal ( dm dmp)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_loadMatrix ( dm dmp,
fastf_t mat,
int  which_eye 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_loadPMatrix ( dm dmp,
fastf_t mat 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_drawString2D ( dm dmp,
const char *  str,
fastf_t  x,
fastf_t  y,
int  size,
int  use_aspect 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_drawLine2D ( dm dmp,
fastf_t  x_1,
fastf_t  y_1,
fastf_t  x_2,
fastf_t  y_2 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_drawLine3D ( dm dmp,
point_t  pt1,
point_t  pt2 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_drawLines3D ( dm dmp,
int  npoints,
point_t *  points,
int  sflag 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_drawPoint2D ( dm dmp,
fastf_t  x,
fastf_t  y 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_drawPoint3D ( dm dmp,
point_t  point 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_drawPoints3D ( dm dmp,
int  npoints,
point_t *  points 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_drawVList ( dm dmp,
struct bn_vlist vp 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_drawVListHiddenLine ( dm dmp,
struct bn_vlist vp 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_draw ( dm dmp,
struct bn_vlist *(*)(void *)  callback_function,
void **  data 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_setFGColor ( dm dmp,
unsigned char  r,
unsigned char  g,
unsigned char  b,
int  strict,
fastf_t  transparency 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_setBGColor ( dm dmp,
unsigned char  r,
unsigned char  g,
unsigned char  b 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_setLineAttr ( dm dmp,
int  width,
int  style 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_configureWin ( dm dmp,
int  force 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_setWinBounds ( dm dmp,
fastf_t w 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_setLight ( dm dmp,
int  light_on 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_setTransparency ( dm dmp,
int  transparency 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_setDepthMask ( dm dmp,
int  mask 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_setZBuffer ( dm dmp,
int  zbuffer_on 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_debug ( dm dmp,
int  lvl 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_logfile ( dm dmp,
const char *  filename 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_beginDList ( dm dmp,
unsigned int  list 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_endDList ( dm dmp)

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

References bu_log().

Here is the call graph for this function:

HIDDEN void txt_drawDList ( unsigned int  list)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_freeDLists ( dm dmp,
unsigned int  list,
int  range 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_genDLists ( dm dmp,
size_t  range 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_getDisplayImage ( dm dmp,
unsigned char **  image 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN void txt_reshape ( dm dmp,
int  width,
int  height 
)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_makeCurrent ( dm dmp)

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

References bu_log().

Here is the call graph for this function:

HIDDEN int txt_openFb ( dm dmp)

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

References bu_log().

Here is the call graph for this function: