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.

Detailed Description


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
Parameters:
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 55 of file font.c.

References BN_ADD_VLIST, bn_mat_mul(), BN_VLIST_LINE_DRAW, BN_VLIST_LINE_MOVE, MAT4X3PNT, MAT_DELTAS_VEC, MAT_IDN, tp_cindex, tp_setup(), and VSET.

Referenced by bn_vlist_2string().

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 150 of file font.c.

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

Here is the call graph for this function:

Generated on Tue Dec 11 13:14:29 2012 for LIBBN by  doxygen 1.6.3