Display Lists
[libbn (numerical functions)]

Collaboration diagram for Display Lists:


Files

file  font.c

Functions

void bn_vlist_3string (struct bu_list *vhead, struct bu_list *free_hd, const char *string, const vect_t origin, const mat_t rot, double scale)
 Convert a string to a vlist.
void bn_vlist_2string (struct bu_list *vhead, struct bu_list *free_hd, const char *string, double x, double y, double scale, double theta)
 Convert string to vlist in 2D.

Function Documentation

void bn_vlist_3string struct bu_list vhead,
struct bu_list free_hd,
const char *  string,
const vect_t  origin,
const mat_t  rot,
double  scale
 

Convert a string to a vlist.

B N _ V L I S T _ 3 S T R I N G

'scale' is the width, in mm, of one character.

Parameters:
vhead 
free_hd source of free vlists
string string of chars to be plotted
origin lower left corner of 1st char
rot Transform matrix (WARNING: may xlate)
scale scale factor to change 1x1 char sz

Definition at line 75 of file font.c.

References BN_ADD_VLIST, bn_mat_mul(), BN_VLIST_LINE_DRAW, BN_VLIST_LINE_MOVE, LAST, MAT4X3PNT, MAT_DELTAS, MAT_IDN, NEGY, NULL, TINY, tp_cindex, tp_setup(), VSET, X, Y, and Z.

Referenced by bn_vlist_2string(), nmg_vlblock_euleft(), nmg_vlblock_v(), rt_label_vlist_verts(), and rt_process_uplot_value().

Here is the call graph for this function:

void bn_vlist_2string struct bu_list vhead,
struct bu_list free_hd,
const char *  string,
double  x,
double  y,
double  scale,
double  theta
 

Convert string to vlist in 2D.

B N _ V L I S T _ 2 S T R I N G

A simpler interface, for those cases where the text lies in the X-Y plane.

Parameters:
vhead 
free_hd source of free vlists
string string of chars to be plotted
x lower left corner of 1st char
y lower left corner of 1st char
scale scale factor to change 1x1 char sz
theta degrees ccw from X-axis

Definition at line 170 of file font.c.

References bn_mat_angles(), bn_vlist_3string(), and VSET.

Here is the call graph for this function:


Generated on Mon Sep 18 01:25:22 2006 for BRL-CAD by  doxygen 1.4.6