Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

mri_drawing.c File Reference

#include "mrilib.h"

Go to the source code of this file.


Defines

#define DDA_SCALE   8192
#define ASSPIX_OLD(p, x, y, r, g, b)
#define ASSPIX(p, x, y, r, g, b)
#define ppmd_lineclip   1
#define SPLINE_THRESH   3
#define Schar(x)   (u = (x), (((u) & 0x80) ? ((u) | (-1 ^ 0xFF)) : (u)))
#define Scalef   21
#define Descend   9

Functions

void mri_draw_opacity (float val)
void ppmd_filledrectangle (byte *pixels, int cols, int rows, int x, int y, int width, int height, byte r, byte g, byte b)
void ppmd_line (byte *pixels, int cols, int rows, int x0, int y0, int x1, int y1, byte r, byte g, byte b)
void ppmd_spline3 (byte *pixels, int cols, int rows, int x0, int y0, int x1, int y1, int x2, int y2, byte r, byte g, byte b)
void ppmd_polyspline (byte *pixels, int cols, int rows, int x0, int y0, int nc, int *xc, int *yc, int x1, int y1, byte r, byte g, byte b)
void ppmd_circle (byte *pixels, int cols, int rows, int cx, int cy, int radius, byte r, byte g, byte b)
long isin (int deg)
long icos (int deg)
void ppmd_text (byte *pixels, int cols, int rows, int x, int y, int height, int angle, char *s, byte r, byte g, byte b)
void mri_drawline (MRI_IMAGE *im, int x0, int y0, int x1, int y1, byte r, byte g, byte b)
void mri_drawfilledrectangle (MRI_IMAGE *im, int x, int y, int width, int height, byte r, byte g, byte b)
void mri_drawemptyrectangle (MRI_IMAGE *im, int x, int y, int width, int height, byte r, byte g, byte b)
void mri_drawtext (MRI_IMAGE *im, int x, int y, int height, int angle, char *s, byte r, byte g, byte b)

Variables

float opa = 1.0
unsigned char char32 [] = { 0, 0, 21 }
unsigned char char33 [] = { 8, 251, 5, 0, 244, 0, 2, 192, 0, 0, 7, 255, 8, 0, 9, 1, 8, 0, 7 }
unsigned char char34 []
unsigned char char35 []
unsigned char char36 []
unsigned char char37 []
unsigned char char38 []
unsigned char char39 []
unsigned char char40 []
unsigned char char41 []
unsigned char char42 []
unsigned char char43 [] = { 5, 243, 13, 0, 247, 0, 9, 192, 0, 247, 0, 9, 0 }
unsigned char char44 []
unsigned char char45 [] = { 2, 243, 13, 247, 0, 9, 0 }
unsigned char char46 [] = { 5, 251, 5, 0, 7, 255, 8, 0, 9, 1, 8, 0, 7 }
unsigned char char47 [] = { 2, 245, 11, 9, 240, 247, 16 }
unsigned char char48 []
unsigned char char49 [] = { 4, 246, 10, 252, 248, 254, 247, 1, 244, 1, 9 }
unsigned char char50 []
unsigned char char51 []
unsigned char char52 [] = { 6, 246, 10, 3, 244, 249, 2, 8, 2, 192, 0, 3, 244, 3, 9 }
unsigned char char53 []
unsigned char char54 []
unsigned char char55 [] = { 5, 246, 10, 7, 244, 253, 9, 192, 0, 249, 244, 7, 244 }
unsigned char char56 []
unsigned char char57 []
unsigned char char58 []
unsigned char char59 []
unsigned char char60 [] = { 3, 244, 12, 8, 247, 248, 0, 8, 9 }
unsigned char char61 [] = { 5, 243, 13, 247, 253, 9, 253, 192, 0, 247, 3, 9, 3 }
unsigned char char62 [] = { 3, 244, 12, 248, 247, 8, 0, 248, 9 }
unsigned char char63 []
unsigned char char64 []
unsigned char char65 []
unsigned char char66 []
unsigned char char67 []
unsigned char char68 []
unsigned char char69 []
unsigned char char70 []
unsigned char char71 []
unsigned char char72 []
unsigned char char73 [] = { 2, 252, 4, 0, 244, 0, 9 }
unsigned char char74 []
unsigned char char75 []
unsigned char char76 [] = { 5, 246, 7, 250, 244, 250, 9, 192, 0, 250, 9, 6, 9 }
unsigned char char77 []
unsigned char char78 []
unsigned char char79 []
unsigned char char80 []
unsigned char char81 []
unsigned char char82 []
unsigned char char83 []
unsigned char char84 [] = { 5, 248, 8, 0, 244, 0, 9, 192, 0, 249, 244, 7, 244 }
unsigned char char85 []
unsigned char char86 [] = { 5, 247, 9, 248, 244, 0, 9, 192, 0, 8, 244, 0, 9 }
unsigned char char87 []
unsigned char char88 [] = { 5, 246, 10, 249, 244, 7, 9, 192, 0, 7, 244, 249, 9 }
unsigned char char89 [] = { 6, 247, 9, 248, 244, 0, 254, 0, 9, 192, 0, 8, 244, 0, 254 }
unsigned char char90 []
unsigned char char91 []
unsigned char char92 [] = { 2, 245, 11, 9, 16, 247, 240 }
unsigned char char93 []
unsigned char char94 [] = { 7, 245, 11, 248, 2, 0, 253, 8, 2, 192, 0, 248, 2, 0, 254, 8, 2 }
unsigned char char95 [] = { 2, 253, 22, 0, 9, 20, 9 }
unsigned char char96 []
unsigned char char97 []
unsigned char char98 []
unsigned char char99 []
unsigned char char100 []
unsigned char char101 []
unsigned char char102 []
unsigned char char103 []
unsigned char char104 []
unsigned char char105 []
unsigned char char106 []
unsigned char char107 []
unsigned char char108 [] = { 2, 252, 4, 0, 244, 0, 9 }
unsigned char char109 []
unsigned char char110 []
unsigned char char111 []
unsigned char char112 []
unsigned char char113 []
unsigned char char114 []
unsigned char char115 []
unsigned char char116 []
unsigned char char117 []
unsigned char char118 [] = { 5, 248, 8, 250, 251, 0, 9, 192, 0, 6, 251, 0, 9 }
unsigned char char119 []
unsigned char char120 [] = { 5, 248, 9, 251, 251, 6, 9, 192, 0, 6, 251, 251, 9 }
unsigned char char121 []
unsigned char char122 []
unsigned char char123 []
unsigned char char124 [] = { 2, 252, 4, 0, 240, 0, 16 }
unsigned char char125 []
unsigned char char126 []
unsigned char * ctab []
long sintab []

Define Documentation

#define ASSPIX p,
x,
y,
r,
g,
b   
 

Value:

do{ byte ro,go,bo ;                                                \
     if( opa == 1.0 ) ASSPIX_OLD(p,x,y,r,g,b) ;                     \
     else {                                                         \
       ro = (byte)(opa*(r) + (1.0-opa)*(p)[3*((x)+(y)*cols)  ]) ;   \
       go = (byte)(opa*(g) + (1.0-opa)*(p)[3*((x)+(y)*cols)+1]) ;   \
       bo = (byte)(opa*(b) + (1.0-opa)*(p)[3*((x)+(y)*cols)+2]) ;   \
       ASSPIX_OLD(p,x,y,ro,go,bo) ;                                 \
     } } while(0)

Definition at line 34 of file mri_drawing.c.

Referenced by ppmd_circle(), ppmd_filledrectangle(), and ppmd_line().

#define ASSPIX_OLD p,
x,
y,
r,
g,
b   
 

Value:

( (p)[3*((x)+(y)*cols)  ] = (r) ,   \
                                  (p)[3*((x)+(y)*cols)+1] = (g) ,   \
                                  (p)[3*((x)+(y)*cols)+2] = (b)   )

Definition at line 30 of file mri_drawing.c.

#define DDA_SCALE   8192
 

Definition at line 22 of file mri_drawing.c.

Referenced by ppmd_circle(), and ppmd_line().

#define Descend   9
 

Definition at line 571 of file mri_drawing.c.

Referenced by ppmd_text().

#define ppmd_lineclip   1
 

Definition at line 68 of file mri_drawing.c.

#define Scalef   21
 

Definition at line 570 of file mri_drawing.c.

Referenced by ppmd_text().

#define Schar      (u = (x), (((u) & 0x80) ? ((u) | (-1 ^ 0xFF)) : (u)))
 

Definition at line 568 of file mri_drawing.c.

Referenced by ppmd_text().

#define SPLINE_THRESH   3
 

Definition at line 173 of file mri_drawing.c.

Referenced by ppmd_spline3().


Function Documentation

long icos int    deg [static]
 

Return cosine of an angle in integral degrees. The value returned is 65536 times the cosine.

Definition at line 564 of file mri_drawing.c.

References isin().

Referenced by ppmd_text().

00564 { return isin(deg + 90); }

long isin int    deg [static]
 

Return sine of an angle in integral degrees. The value returned is 65536 times the sine.

Definition at line 537 of file mri_drawing.c.

References sintab.

Referenced by icos(), and ppmd_text().

00538 {
00539     /* Domain reduce to 0 to 360 degrees. */
00540 
00541     if (deg < 0) {
00542         deg = (360 - ((- deg) % 360)) % 360;
00543     } else if (deg >= 360) {
00544         deg = deg % 360;
00545     }
00546 
00547     /* Now look up from table according to quadrant. */
00548 
00549     if (deg <= 90) {
00550         return sintab[deg];
00551     } else if (deg <= 180) {
00552         return sintab[180 - deg];
00553     } else if (deg <= 270) {
00554         return -sintab[deg - 180];
00555     }
00556     return -sintab[360 - deg];
00557 }

void mri_draw_opacity float    val
 

Definition at line 26 of file mri_drawing.c.

References opa.

Referenced by memplot_to_RGB_sef().

00026 { if( val >= 0.0 && val <= 1.0 ) opa = val ; }

void mri_drawemptyrectangle MRI_IMAGE   im,
int    x,
int    y,
int    width,
int    height,
byte    r,
byte    g,
byte    b
 

Definition at line 680 of file mri_drawing.c.

References ENTRY, MRI_IMAGE::kind, MRI_RGB_PTR, MRI_IMAGE::nx, MRI_IMAGE::ny, ppmd_line(), and r.

00683 {
00684     register int cx, cy, cwidth, cheight, col, row;
00685 
00686 ENTRY("mri_drawemptyrectangle") ;
00687     if( im == NULL || im->kind != MRI_rgb ) EXRETURN ;
00688 
00689     /* Clip. */
00690     cx = x; cy = y; cwidth = width; cheight = height;
00691     if ( cx < 0 ) { cx = 0; cwidth += x; }
00692     if ( cy < 0 ) { cy = 0; cheight += y; }
00693     if ( cx + cwidth > im->nx ) cwidth = im->nx - cx;
00694     if ( cy + cheight > im->ny ) cheight = im->ny - cy;
00695 
00696     ppmd_line( MRI_RGB_PTR(im),im->nx,im->ny,cx      ,cy       ,cx+width,cy       ,r,g,b);
00697     ppmd_line( MRI_RGB_PTR(im),im->nx,im->ny,cx+width,cy       ,cx+width,cy+height,r,g,b);
00698     ppmd_line( MRI_RGB_PTR(im),im->nx,im->ny,cx+width,cy+height,cx      ,cy+height,r,g,b);
00699     ppmd_line( MRI_RGB_PTR(im),im->nx,im->ny,cx      ,cy+height,cx      ,cy       ,r,g,b);
00700     EXRETURN ;
00701 }

void mri_drawfilledrectangle MRI_IMAGE   im,
int    x,
int    y,
int    width,
int    height,
byte    r,
byte    g,
byte    b
 

Definition at line 668 of file mri_drawing.c.

References ENTRY, MRI_IMAGE::kind, MRI_RGB_PTR, MRI_IMAGE::nx, MRI_IMAGE::ny, ppmd_filledrectangle(), and r.

Referenced by memplot_to_RGB_sef().

00671 {
00672 ENTRY("mri_drawfilledrectangle") ;
00673    if( im == NULL || im->kind != MRI_rgb ) EXRETURN ;
00674    ppmd_filledrectangle( MRI_RGB_PTR(im), im->nx, im->ny, x,y,width,height, r,g,b ) ;
00675    EXRETURN ;
00676 }

void mri_drawline MRI_IMAGE   im,
int    x0,
int    y0,
int    x1,
int    y1,
byte    r,
byte    g,
byte    b
 

Draw a line into an RGB image.

  • x0,y0 = start pixel coords
  • x1,y1 = end pixel coords
  • r,g,b = line color ------------------------------------------------------------------------------

Definition at line 658 of file mri_drawing.c.

References ENTRY, MRI_IMAGE::kind, MRI_RGB_PTR, MRI_IMAGE::nx, MRI_IMAGE::ny, ppmd_line(), r, x0, y0, and y1.

Referenced by memplot_to_RGB_sef().

00659 {
00660 ENTRY("mri_drawline") ;
00661    if( im == NULL || im->kind != MRI_rgb ) EXRETURN ;
00662    ppmd_line( MRI_RGB_PTR(im), im->nx, im->ny, x0,y0,x1,y1, r,g,b ) ;
00663    EXRETURN ;
00664 }

void mri_drawtext MRI_IMAGE   im,
int    x,
int    y,
int    height,
int    angle,
char *    s,
byte    r,
byte    g,
byte    b
 

Draw text into an RGB image.

  • x,y = pixel coords of baseline start
  • height = pixel height of characters
  • angle = degrees of inclination of baseline to x-axis
  • s = string to draw
  • r,g,b = color to draw in ------------------------------------------------------------------------------

Definition at line 712 of file mri_drawing.c.

References ENTRY, MRI_IMAGE::kind, MRI_RGB_PTR, MRI_IMAGE::nx, MRI_IMAGE::ny, ppmd_text(), and r.

00715 {
00716 ENTRY("mri_drawtext") ;
00717     if( im == NULL || im->kind != MRI_rgb ) EXRETURN ;
00718     ppmd_text( MRI_RGB_PTR(im), im->nx,im->ny, x,y,height,angle , s , r,g,b ) ;
00719     EXRETURN ;
00720 }

void ppmd_circle byte   pixels,
int    cols,
int    rows,
int    cx,
int    cy,
int    radius,
byte    r,
byte    g,
byte    b
[static]
 

Draw a circle.

Definition at line 225 of file mri_drawing.c.

References ASSPIX, cols, DDA_SCALE, pixels, r, rows, x0, and y0.

00227 {
00228     register int x0, y0, x, y, prevx, prevy, nopointsyet;
00229     register long sx, sy, e;
00230 
00231     x0 = x = radius;
00232     y0 = y = 0;
00233     sx = x * DDA_SCALE + DDA_SCALE / 2;
00234     sy = y * DDA_SCALE + DDA_SCALE / 2;
00235     e = DDA_SCALE / radius;
00236     ASSPIX(pixels,x+cx,y+cy,r,g,b) ;
00237     nopointsyet = 1;
00238     do {
00239         prevx = x; prevy = y;
00240         sx += e * sy / DDA_SCALE;
00241         sy -= e * sx / DDA_SCALE;
00242         x = sx / DDA_SCALE;
00243         y = sy / DDA_SCALE;
00244         if ( x != prevx || y != prevy ) {
00245             nopointsyet = 0;
00246             ASSPIX(pixels,x+cx,y+cy,r,g,b) ;
00247         }
00248     } while ( nopointsyet || x != x0 || y != y0 );
00249 }

void ppmd_filledrectangle byte   pixels,
int    cols,
int    rows,
int    x,
int    y,
int    width,
int    height,
byte    r,
byte    g,
byte    b
[static]
 

Definition at line 48 of file mri_drawing.c.

References ASSPIX, cols, pixels, r, and rows.

Referenced by mri_drawfilledrectangle().

00050 {
00051     register int cx, cy, cwidth, cheight, col, row;
00052 
00053     /* Clip. */
00054     cx = x; cy = y; cwidth = width; cheight = height;
00055     if ( cx < 0 ) { cx = 0; cwidth += x; }
00056     if ( cy < 0 ) { cy = 0; cheight += y; }
00057     if ( cx + cwidth > cols ) cwidth = cols - cx;
00058     if ( cy + cheight > rows ) cheight = rows - cy;
00059 
00060     /* Draw. */
00061     for ( row = cy; row < cy + cheight; ++row )
00062         for ( col = cx; col < cx + cwidth; ++col )
00063             ASSPIX(pixels,col,row,r,g,b) ;
00064 }

void ppmd_line byte   pixels,
int    cols,
int    rows,
int    x0,
int    y0,
int    x1,
int    y1,
byte    r,
byte    g,
byte    b
[static]
 

Draw a line

Definition at line 73 of file mri_drawing.c.

References abs, ASSPIX, cols, DDA_SCALE, pixels, r, rows, x0, y0, and y1.

Referenced by mri_drawemptyrectangle(), mri_drawline(), ppmd_spline3(), and ppmd_text().

00075 {
00076     register int cx0, cy0, cx1, cy1;
00077 
00078     /* Special case zero-length lines. */
00079     if ( x0 == x1 && y0 == y1 ) {
00080         if ( ( x0 >= 0 && x0 < cols && y0 >= 0 && y0 < rows ) )
00081             ASSPIX(pixels,x0,y0,r,g,b) ;
00082         return;
00083     }
00084 
00085     /* Clip. */
00086     cx0 = x0; cy0 = y0; cx1 = x1; cy1 = y1;
00087     if ( ppmd_lineclip ) {
00088         if ( cx0 < 0 )
00089             {
00090             if ( cx1 < 0 ) return;
00091             cy0 = cy0 + ( cy1 - cy0 ) * ( -cx0 ) / ( cx1 - cx0 );
00092             cx0 = 0;
00093             }
00094         else if ( cx0 >= cols )
00095             {
00096             if ( cx1 >= cols ) return;
00097             cy0 = cy0 + ( cy1 - cy0 ) * ( cols - 1 - cx0 ) / ( cx1 - cx0 );
00098             cx0 = cols - 1;
00099             }
00100         if ( cy0 < 0 )
00101             {
00102             if ( cy1 < 0 ) return;
00103             cx0 = cx0 + ( cx1 - cx0 ) * ( -cy0 ) / ( cy1 - cy0 );
00104             cy0 = 0;
00105             }
00106         else if ( cy0 >= rows )
00107             {
00108             if ( cy1 >= rows ) return;
00109             cx0 = cx0 + ( cx1 - cx0 ) * ( rows - 1 - cy0 ) / ( cy1 - cy0 );
00110             cy0 = rows - 1;
00111             }
00112         if ( cx1 < 0 )
00113             {
00114             cy1 = cy1 + ( cy0 - cy1 ) * ( -cx1 ) / ( cx0 - cx1 );
00115             cx1 = 0;
00116             }
00117         else if ( cx1 >= cols )
00118             {
00119             cy1 = cy1 + ( cy0 - cy1 ) * ( cols - 1 - cx1 ) / ( cx0 - cx1 );
00120             cx1 = cols - 1;
00121             }
00122         if ( cy1 < 0 )
00123             {
00124             cx1 = cx1 + ( cx0 - cx1 ) * ( -cy1 ) / ( cy0 - cy1 );
00125             cy1 = 0;
00126             }
00127         else if ( cy1 >= rows )
00128             {
00129             cx1 = cx1 + ( cx0 - cx1 ) * ( rows - 1 - cy1 ) / ( cy0 - cy1 );
00130             cy1 = rows - 1;
00131             }
00132 
00133         /* Check again for zero-length lines. */
00134         if ( cx0 == cx1 && cy0 == cy1 ){ ASSPIX(pixels,cx0,cy0,r,g,b) ; return; }
00135     } /* end of clip */
00136 
00137     /* Draw, using a simple DDA. */
00138     if ( abs( cx1 - cx0 ) > abs( cy1 - cy0 ) ) { /* Loop over X domain. */
00139         register long dy, srow;
00140         register int dx, col, row, prevrow;
00141 
00142         if ( cx1 > cx0 ) dx =  1;
00143         else             dx = -1;
00144         dy = ( cy1 - cy0 ) * DDA_SCALE / abs( cx1 - cx0 );
00145         prevrow = row = cy0;
00146         srow = row * DDA_SCALE + DDA_SCALE / 2;
00147         col = cx0;
00148         for ( ; ; ) {
00149             ASSPIX(pixels,col,row,r,g,b) ;
00150             if ( col == cx1 ) break;
00151             srow += dy; row = srow / DDA_SCALE; col += dx;
00152         }
00153     } else { /* Loop over Y domain. */
00154         register long dx, scol;
00155         register int dy, col, row, prevcol;
00156 
00157         if ( cy1 > cy0 ) dy =  1;
00158         else             dy = -1;
00159         dx = ( cx1 - cx0 ) * DDA_SCALE / abs( cy1 - cy0 );
00160         row = cy0;
00161         prevcol = col = cx0;
00162         scol = col * DDA_SCALE + DDA_SCALE / 2;
00163         for ( ; ; ) {
00164             ASSPIX(pixels,col,row,r,g,b) ;
00165             if ( row == cy1 ) break;
00166             row += dy; scol += dx; col = scol / DDA_SCALE;
00167         }
00168     }
00169 }

void ppmd_polyspline byte   pixels,
int    cols,
int    rows,
int    x0,
int    y0,
int    nc,
int *    xc,
int *    yc,
int    x1,
int    y1,
byte    r,
byte    g,
byte    b
[static]
 

Draw a spline between a bunch of points.

Definition at line 205 of file mri_drawing.c.

References cols, i, nc, pixels, ppmd_spline3(), r, rows, x0, xc, xn, y0, y1, yc, and yn.

00207 {
00208     register int i, x, y, xn, yn;
00209 
00210     x = x0; y = y0;
00211     for ( i = 0; i < nc - 1; ++i ) {
00212         xn = ( xc[i] + xc[i + 1] ) / 2;
00213         yn = ( yc[i] + yc[i + 1] ) / 2;
00214         ppmd_spline3( pixels, cols, rows, x, y, xc[i], yc[i], xn, yn, r,g,b ) ;
00215         x = xn; y = yn;
00216     }
00217     ppmd_spline3( pixels, cols, rows, x, y, xc[nc - 1], yc[nc - 1], x1, y1, r,g,b ) ;
00218 }

void ppmd_spline3 byte   pixels,
int    cols,
int    rows,
int    x0,
int    y0,
int    x1,
int    y1,
int    x2,
int    y2,
byte    r,
byte    g,
byte    b
[static]
 

Draw a spline between 3 points, using recursion and lines.

Definition at line 178 of file mri_drawing.c.

References abs, cols, pixels, ppmd_line(), r, rows, SPLINE_THRESH, x0, x2, xc, y0, y1, and yc.

Referenced by ppmd_polyspline().

00180 {
00181     register int xa, ya, xb, yb, xc, yc, xp, yp;
00182 
00183     xa = ( x0 + x1 ) / 2; ya = ( y0 + y1 ) / 2;
00184     xc = ( x1 + x2 ) / 2; yc = ( y1 + y2 ) / 2;
00185     xb = ( xa + xc ) / 2; yb = ( ya + yc ) / 2;
00186 
00187     xp = ( x0 + xb ) / 2; yp = ( y0 + yb ) / 2;
00188     if ( abs( xa - xp ) + abs( ya - yp ) > SPLINE_THRESH )
00189         ppmd_spline3( pixels, cols, rows, x0, y0, xa, ya, xb, yb, r,g,b ) ;
00190     else
00191         ppmd_line( pixels, cols, rows, x0, y0, xb, yb, r,g,b ) ;
00192 
00193     xp = ( x2 + xb ) / 2; yp = ( y2 + yb ) / 2;
00194     if ( abs( xc - xp ) + abs( yc - yp ) > SPLINE_THRESH )
00195         ppmd_spline3( pixels, cols, rows, xb, yb, xc, yc, x2, y2, r,g,b ) ;
00196     else
00197         ppmd_line( pixels, cols, rows, xb, yb, x2, y2, r,g,b ) ;
00198 }

void ppmd_text byte   pixels,
int    cols,
int    rows,
int    x,
int    y,
int    height,
int    angle,
char *    s,
byte    r,
byte    g,
byte    b
[static]
 

Draw the zero-terminated string s, with its baseline starting at point (x, y), inclined by angle degrees to the X axis, with letters height pixels high (descenders will extend below the baseline). ppmd_line does the actual drawing

Definition at line 581 of file mri_drawing.c.

References cols, ctab, Descend, icos(), isin(), pixels, ppmd_line(), r, rows, Scalef, and Schar.

Referenced by mri_drawtext().

00583 {
00584     int xpos = x, ypos = y;
00585     long rotsin, rotcos;
00586 
00587     x = y = 0;
00588     rotsin = isin(-angle);
00589     rotcos = icos(-angle);
00590     while (*s) {
00591         unsigned char ch = *s++;
00592         int pen = 1;
00593         int u;
00594 
00595         if (ch >= ' ' && ch < 127) {
00596             ch -= ' ';
00597             if (ctab[ch] != NULL) {
00598                 int cn = *ctab[ch];
00599                 unsigned char *cst = ctab[ch] + 3;
00600                 int lx, ly;
00601 
00602                 x -= Schar(*(ctab[ch] + 1));
00603                 lx = x + Schar(*cst++);
00604                 ly = y + Schar(*cst++);
00605                 while (--cn > 0) {
00606                     if (*cst == 192) {
00607                         pen = 0;
00608                         cst += 2;
00609                     } else {
00610                         int nx = x + Schar(*cst++);
00611                         int ny = y + Schar(*cst++);
00612                         if (pen) {
00613                             int mx1, my1, mx2, my2;
00614                             int tx1, ty1, tx2, ty2;
00615 
00616                             /* Note that up until this  moment  we've  been
00617                                working  in  an  arbitrary model co-ordinate
00618                                system with  fixed  size  and  no  rotation.
00619                                Before  drawing  the  stroke,  transform  to
00620                                viewing co-ordinates to  honour  the  height
00621                                and angle specifications. */
00622 
00623                             mx1 = (lx * height) / Scalef;
00624                             my1 = ((ly - Descend) * height) / Scalef;
00625                             mx2 = (nx * height) / Scalef;
00626                             my2 = ((ny - Descend) * height) / Scalef;
00627                             tx1 = xpos + (mx1 * rotcos - my1 * rotsin) / 65536;
00628                             ty1 = ypos + (mx1 * rotsin + my1 * rotcos) / 65536;
00629                             tx2 = xpos + (mx2 * rotcos - my2 * rotsin) / 65536;
00630                             ty2 = ypos + (mx2 * rotsin + my2 * rotcos) / 65536;
00631                             ppmd_line(pixels, cols, rows, tx1, ty1, tx2, ty2, r,g,b ) ;
00632                         }
00633                         lx = nx;
00634                         ly = ny;
00635                         pen = 1;
00636                     }
00637                 }
00638                 x += *(ctab[ch] + 2);
00639             }
00640         } else if (ch == '\n') {
00641             y += Scalef + Descend;
00642             x = 0;
00643         }
00644     }
00645 }

Variable Documentation

unsigned char char100[] [static]
 

Initial value:

 { 17, 247, 10, 6, 244, 6, 9, 192, 0, 6, 254, 4, 252, 2, 251, 255,
              251, 253, 252, 251, 254, 250, 1, 250, 3, 251, 6, 253, 8, 255, 9,
              2, 9, 4, 8, 6, 6 }

Definition at line 428 of file mri_drawing.c.

unsigned char char101[] [static]
 

Initial value:

 { 17, 247, 9, 250, 1, 6, 1, 6, 255, 5, 253, 4, 252, 2, 251, 255,
              251, 253, 252, 251, 254, 250, 1, 250, 3, 251, 6, 253, 8, 255, 9,
              2, 9, 4, 8, 6, 6 }

Definition at line 431 of file mri_drawing.c.

unsigned char char102[] [static]
 

Initial value:

 { 8, 251, 7, 5, 244, 3, 244, 1, 245, 0, 248, 0, 9, 192, 0, 253,
              251, 4, 251 }

Definition at line 434 of file mri_drawing.c.

unsigned char char103[] [static]
 

Initial value:

 { 22, 247, 10, 6, 251, 6, 11, 5, 14, 4, 15, 2, 16, 255, 16, 253,
              15, 192, 0, 6, 254, 4, 252, 2, 251, 255, 251, 253, 252, 251,
              254, 250, 1, 250, 3, 251, 6, 253, 8, 255, 9, 2, 9, 4, 8, 6, 6 }

Definition at line 436 of file mri_drawing.c.

unsigned char char104[] [static]
 

Initial value:

 { 10, 247, 10, 251, 244, 251, 9, 192, 0, 251, 255, 254, 252, 0,
              251, 3, 251, 5, 252, 6, 255, 6, 9 }

Definition at line 439 of file mri_drawing.c.

unsigned char char105[] [static]
 

Initial value:

 { 8, 252, 4, 255, 244, 0, 245, 1, 244, 0, 243, 255, 244, 192, 0,
              0, 251, 0, 9 }

Definition at line 441 of file mri_drawing.c.

unsigned char char106[] [static]
 

Initial value:

 { 11, 251, 5, 0, 244, 1, 245, 2, 244, 1, 243, 0, 244, 192, 0, 1,
              251, 1, 12, 0, 15, 254, 16, 252, 16 }

Definition at line 443 of file mri_drawing.c.

unsigned char char107[] [static]
 

Initial value:

 { 8, 247, 8, 251, 244, 251, 9, 192, 0, 5, 251, 251, 5, 192, 0,
              255, 1, 6, 9 }

Definition at line 445 of file mri_drawing.c.

unsigned char char108[] = { 2, 252, 4, 0, 244, 0, 9 } [static]
 

Definition at line 447 of file mri_drawing.c.

unsigned char char109[] [static]
 

Initial value:

 { 18, 241, 15, 245, 251, 245, 9, 192, 0, 245, 255, 248, 252, 250,
              251, 253, 251, 255, 252, 0, 255, 0, 9, 192, 0, 0, 255, 3, 252,
              5, 251, 8, 251, 10, 252, 11, 255, 11, 9 }

Definition at line 448 of file mri_drawing.c.

unsigned char char110[] [static]
 

Initial value:

 { 10, 247, 10, 251, 251, 251, 9, 192, 0, 251, 255, 254, 252, 0,
              251, 3, 251, 5, 252, 6, 255, 6, 9 }

Definition at line 451 of file mri_drawing.c.

unsigned char char111[] [static]
 

Initial value:

 { 17, 247, 10, 255, 251, 253, 252, 251, 254, 250, 1, 250, 3, 251,
              6, 253, 8, 255, 9, 2, 9, 4, 8, 6, 6, 7, 3, 7, 1, 6, 254, 4, 252,
              2, 251, 255, 251 }

Definition at line 453 of file mri_drawing.c.

unsigned char char112[] [static]
 

Initial value:

 { 17, 246, 9, 250, 251, 250, 16, 192, 0, 250, 254, 252, 252, 254,
              251, 1, 251, 3, 252, 5, 254, 6, 1, 6, 3, 5, 6, 3, 8, 1, 9, 254,
              9, 252, 8, 250, 6 }

Definition at line 456 of file mri_drawing.c.

unsigned char char113[] [static]
 

Initial value:

 { 17, 247, 10, 6, 251, 6, 16, 192, 0, 6, 254, 4, 252, 2, 251, 255,
              251, 253, 252, 251, 254, 250, 1, 250, 3, 251, 6, 253, 8, 255, 9,
              2, 9, 4, 8, 6, 6 }

Definition at line 459 of file mri_drawing.c.

unsigned char char114[] [static]
 

Initial value:

 { 8, 249, 6, 253, 251, 253, 9, 192, 0, 253, 1, 254, 254, 0, 252,
              2, 251, 5, 251 }

Definition at line 462 of file mri_drawing.c.

unsigned char char115[] [static]
 

Initial value:

 { 17, 248, 9, 6, 254, 5, 252, 2, 251, 255, 251, 252, 252, 251,
              254, 252, 0, 254, 1, 3, 2, 5, 3, 6, 5, 6, 6, 5, 8, 2, 9, 255, 9,
              252, 8, 251, 6 }

Definition at line 464 of file mri_drawing.c.

unsigned char char116[] [static]
 

Initial value:

 { 8, 251, 7, 0, 244, 0, 5, 1, 8, 3, 9, 5, 9, 192, 0, 253, 251, 4,
              251 }

Definition at line 467 of file mri_drawing.c.

unsigned char char117[] [static]
 

Initial value:

 { 10, 247, 10, 251, 251, 251, 5, 252, 8, 254, 9, 1, 9, 3, 8, 6, 5,
              192, 0, 6, 251, 6, 9 }

Definition at line 469 of file mri_drawing.c.

unsigned char char118[] = { 5, 248, 8, 250, 251, 0, 9, 192, 0, 6, 251, 0, 9 } [static]
 

Definition at line 471 of file mri_drawing.c.

unsigned char char119[] [static]
 

Initial value:

 { 11, 245, 11, 248, 251, 252, 9, 192, 0, 0, 251, 252, 9, 192, 0,
              0, 251, 4, 9, 192, 0, 8, 251, 4, 9 }

Definition at line 472 of file mri_drawing.c.

unsigned char char120[] = { 5, 248, 9, 251, 251, 6, 9, 192, 0, 6, 251, 251, 9 } [static]
 

Definition at line 474 of file mri_drawing.c.

unsigned char char121[] [static]
 

Initial value:

 { 9, 248, 8, 250, 251, 0, 9, 192, 0, 6, 251, 0, 9, 254, 13, 252,
              15, 250, 16, 249, 16 }

Definition at line 475 of file mri_drawing.c.

unsigned char char122[] [static]
 

Initial value:

 { 8, 248, 9, 6, 251, 251, 9, 192, 0, 251, 251, 6, 251, 192, 0,
              251, 9, 6, 9 }

Definition at line 477 of file mri_drawing.c.

unsigned char char123[] [static]
 

Initial value:

 { 39, 249, 7, 2, 240, 0, 241, 255, 242, 254, 244, 254, 246, 255,
              248, 0, 249, 1, 251, 1, 253, 255, 255, 192, 0, 0, 241, 255, 243,
              255, 245, 0, 247, 1, 248, 2, 250, 2, 252, 1, 254, 253, 0, 1, 2,
              2, 4, 2, 6, 1, 8, 0, 9, 255, 11, 255, 13, 0, 15, 192, 0, 255, 1,
              1, 3, 1, 5, 0, 7, 255, 8, 254, 10, 254, 12, 255, 14, 0, 15, 2,
              16 }

Definition at line 479 of file mri_drawing.c.

unsigned char char124[] = { 2, 252, 4, 0, 240, 0, 16 } [static]
 

Definition at line 485 of file mri_drawing.c.

unsigned char char125[] [static]
 

Initial value:

 { 39, 249, 7, 254, 240, 0, 241, 1, 242, 2, 244, 2, 246, 1, 248, 0,
              249, 255, 251, 255, 253, 1, 255, 192, 0, 0, 241, 1, 243, 1, 245,
              0, 247, 255, 248, 254, 250, 254, 252, 255, 254, 3, 0, 255, 2,
              254, 4, 254, 6, 255, 8, 0, 9, 1, 11, 1, 13, 0, 15, 192, 0, 1, 1,
              255, 3, 255, 5, 0, 7, 1, 8, 2, 10, 2, 12, 1, 14, 0, 15, 254, 16,
              }

Definition at line 486 of file mri_drawing.c.

unsigned char char126[] [static]
 

Initial value:

 { 23, 255, 21, 2, 1, 0, 255, 1, 253, 3, 251, 5, 251, 7, 252,
              11, 255, 13, 0, 15, 0, 17, 255, 18, 254, 192, 0, 2, 0, 1,
              254, 3, 253, 5, 253, 7, 254, 11, 1, 13, 2, 15, 2, 17, 1, 18,
              255, 18, 252 }

Definition at line 492 of file mri_drawing.c.

unsigned char char32[] = { 0, 0, 21 } [static]
 

Definition at line 278 of file mri_drawing.c.

unsigned char char33[] = { 8, 251, 5, 0, 244, 0, 2, 192, 0, 0, 7, 255, 8, 0, 9, 1, 8, 0, 7 } [static]
 

Definition at line 279 of file mri_drawing.c.

unsigned char char34[] [static]
 

Initial value:

 { 17, 253, 15, 2, 244, 1, 245, 0, 244, 1, 243, 2, 244, 2, 246, 1,
             248, 0, 249, 192, 0, 10, 244, 9, 245, 8, 244, 9, 243, 10, 244,
             10, 246, 9, 248, 8, 249, }

Definition at line 280 of file mri_drawing.c.

unsigned char char35[] [static]
 

Initial value:

 { 11, 246, 11, 1, 240, 250, 16, 192, 0, 7, 240, 0, 16, 192, 0, 250,
             253, 8, 253, 192, 0, 249, 3, 7, 3 }

Definition at line 283 of file mri_drawing.c.

unsigned char char36[] [static]
 

Initial value:

 { 26, 246, 10, 254, 240, 254, 13, 192, 0, 2, 240, 2, 13, 192, 0, 7,
             247, 5, 245, 2, 244, 254, 244, 251, 245, 249, 247, 249, 249, 250,
             251, 251, 252, 253, 253, 3, 255, 5, 0, 6, 1, 7, 3, 7, 6, 5, 8, 2,
             9, 254, 9, 251, 8, 249, 6 }

Definition at line 285 of file mri_drawing.c.

unsigned char char37[] [static]
 

Initial value:

 { 31, 244, 12, 9, 244, 247, 9, 192, 0, 252, 244, 254, 246, 254,
             248, 253, 250, 251, 251, 249, 251, 247, 249, 247, 247, 248, 245,
             250, 244, 252, 244, 254, 245, 1, 246, 4, 246, 7, 245, 9, 244,
             192, 0, 5, 2, 3, 3, 2, 5, 2, 7, 4, 9, 6, 9, 8, 8, 9, 6, 9, 4, 7,
             2, 5, 2 }

Definition at line 289 of file mri_drawing.c.

unsigned char char38[] [static]
 

Initial value:

 { 34, 243, 13, 10, 253, 10, 252, 9, 251, 8, 251, 7, 252, 6, 254, 4,
             3, 2, 6, 0, 8, 254, 9, 250, 9, 248, 8, 247, 7, 246, 5, 246, 3,
             247, 1, 248, 0, 255, 252, 0, 251, 1, 249, 1, 247, 0, 245, 254,
             244, 252, 245, 251, 247, 251, 249, 252, 252, 254, 255, 3, 6, 5,
             8, 7, 9, 9, 9, 10, 8, 10, 7 }

Definition at line 294 of file mri_drawing.c.

unsigned char char39[] [static]
 

Initial value:

 { 7, 251, 5, 0, 246, 255, 245, 0, 244, 1, 245, 1, 247, 0, 249, 255,
             250 }

Definition at line 299 of file mri_drawing.c.

unsigned char char40[] [static]
 

Initial value:

 { 10, 249, 7, 4, 240, 2, 242, 0, 245, 254, 249, 253, 254, 253, 2,
             254, 7, 0, 11, 2, 14, 4, 16 }

Definition at line 301 of file mri_drawing.c.

unsigned char char41[] [static]
 

Initial value:

 { 10, 249, 7, 252, 240, 254, 242, 0, 245, 2, 249, 3, 254, 3, 2, 2,
             7, 0, 11, 254, 14, 252, 16 }

Definition at line 303 of file mri_drawing.c.

unsigned char char42[] [static]
 

Initial value:

 { 8, 248, 8, 0, 250, 0, 6, 192, 0, 251, 253, 5, 3, 192, 0, 5, 253,
             251, 3 }

Definition at line 305 of file mri_drawing.c.

unsigned char char43[] = { 5, 243, 13, 0, 247, 0, 9, 192, 0, 247, 0, 9, 0 } [static]
 

Definition at line 307 of file mri_drawing.c.

unsigned char char44[] [static]
 

Initial value:

 { 8, 251, 5, 1, 8, 0, 9, 255, 8, 0, 7, 1, 8, 1, 10, 0, 12, 255, 13
           }

Definition at line 308 of file mri_drawing.c.

unsigned char char45[] = { 2, 243, 13, 247, 0, 9, 0 } [static]
 

Definition at line 310 of file mri_drawing.c.

unsigned char char46[] = { 5, 251, 5, 0, 7, 255, 8, 0, 9, 1, 8, 0, 7 } [static]
 

Definition at line 311 of file mri_drawing.c.

unsigned char char47[] = { 2, 245, 11, 9, 240, 247, 16 } [static]
 

Definition at line 312 of file mri_drawing.c.

unsigned char char48[] [static]
 

Initial value:

 { 17, 246, 10, 255, 244, 252, 245, 250, 248, 249, 253, 249, 0, 250,
             5, 252, 8, 255, 9, 1, 9, 4, 8, 6, 5, 7, 0, 7, 253, 6, 248, 4,
             245, 1, 244, 255, 244 }

Definition at line 313 of file mri_drawing.c.

unsigned char char49[] = { 4, 246, 10, 252, 248, 254, 247, 1, 244, 1, 9 } [static]
 

Definition at line 316 of file mri_drawing.c.

unsigned char char50[] [static]
 

Initial value:

 { 14, 246, 10, 250, 249, 250, 248, 251, 246, 252, 245, 254, 244, 2,
             244, 4, 245, 5, 246, 6, 248, 6, 250, 5, 252, 3, 255, 249, 9, 7, 9
           }

Definition at line 317 of file mri_drawing.c.

unsigned char char51[] [static]
 

Initial value:

 { 15, 246, 10, 251, 244, 6, 244, 0, 252, 3, 252, 5, 253, 6, 254, 7,
             1, 7, 3, 6, 6, 4, 8, 1, 9, 254, 9, 251, 8, 250, 7, 249, 5 }

Definition at line 320 of file mri_drawing.c.

unsigned char char52[] = { 6, 246, 10, 3, 244, 249, 2, 8, 2, 192, 0, 3, 244, 3, 9 } [static]
 

Definition at line 322 of file mri_drawing.c.

unsigned char char53[] [static]
 

Initial value:

 { 17, 246, 10, 5, 244, 251, 244, 250, 253, 251, 252, 254, 251, 1,
             251, 4, 252, 6, 254, 7, 1, 7, 3, 6, 6, 4, 8, 1, 9, 254, 9, 251,
             8, 250, 7, 249, 5 }

Definition at line 323 of file mri_drawing.c.

unsigned char char54[] [static]
 

Initial value:

 { 23, 246, 10, 6, 247, 5, 245, 2, 244, 0, 244, 253, 245, 251, 248,
             250, 253, 250, 2, 251, 6, 253, 8, 0, 9, 1, 9, 4, 8, 6, 6, 7, 3,
             7, 2, 6, 255, 4, 253, 1, 252, 0, 252, 253, 253, 251, 255, 250, 2
             }

Definition at line 326 of file mri_drawing.c.

unsigned char char55[] = { 5, 246, 10, 7, 244, 253, 9, 192, 0, 249, 244, 7, 244 } [static]
 

Definition at line 330 of file mri_drawing.c.

unsigned char char56[] [static]
 

Initial value:

 { 29, 246, 10, 254, 244, 251, 245, 250, 247, 250, 249, 251, 251,
             253, 252, 1, 253, 4, 254, 6, 0, 7, 2, 7, 5, 6, 7, 5, 8, 2, 9,
             254, 9, 251, 8, 250, 7, 249, 5, 249, 2, 250, 0, 252, 254, 255,
             253, 3, 252, 5, 251, 6, 249, 6, 247, 5, 245, 2, 244, 254, 244 }

Definition at line 331 of file mri_drawing.c.

unsigned char char57[] [static]
 

Initial value:

 { 23, 246, 10, 6, 251, 5, 254, 3, 0, 0, 1, 255, 1, 252, 0, 250,
             254, 249, 251, 249, 250, 250, 247, 252, 245, 255, 244, 0, 244, 3,
             245, 5, 247, 6, 251, 6, 0, 5, 5, 3, 8, 0, 9, 254, 9, 251, 8, 250,
             6 }

Definition at line 335 of file mri_drawing.c.

unsigned char char58[] [static]
 

Initial value:

 { 11, 251, 5, 0, 251, 255, 252, 0, 253, 1, 252, 0, 251, 192, 0, 0,
             7, 255, 8, 0, 9, 1, 8, 0, 7 }

Definition at line 339 of file mri_drawing.c.

unsigned char char59[] [static]
 

Initial value:

 { 14, 251, 5, 0, 251, 255, 252, 0, 253, 1, 252, 0, 251, 192, 0, 1,
             8, 0, 9, 255, 8, 0, 7, 1, 8, 1, 10, 0, 12, 255, 13 }

Definition at line 341 of file mri_drawing.c.

unsigned char char60[] = { 3, 244, 12, 8, 247, 248, 0, 8, 9 } [static]
 

Definition at line 343 of file mri_drawing.c.

unsigned char char61[] = { 5, 243, 13, 247, 253, 9, 253, 192, 0, 247, 3, 9, 3 } [static]
 

Definition at line 344 of file mri_drawing.c.

unsigned char char62[] = { 3, 244, 12, 248, 247, 8, 0, 248, 9 } [static]
 

Definition at line 345 of file mri_drawing.c.

unsigned char char63[] [static]
 

Initial value:

 { 20, 247, 9, 250, 249, 250, 248, 251, 246, 252, 245, 254, 244, 2,
             244, 4, 245, 5, 246, 6, 248, 6, 250, 5, 252, 4, 253, 0, 255, 0,
             2, 192, 0, 0, 7, 255, 8, 0, 9, 1, 8, 0, 7 }

Definition at line 346 of file mri_drawing.c.

unsigned char char64[] [static]
 

Initial value:

 { 55, 243, 14, 5, 252, 4, 250, 2, 249, 255, 249, 253, 250, 252,
             251, 251, 254, 251, 1, 252, 3, 254, 4, 1, 4, 3, 3, 4, 1, 192, 0,
             255, 249, 253, 251, 252, 254, 252, 1, 253, 3, 254, 4, 192, 0, 5,
             249, 4, 1, 4, 3, 6, 4, 8, 4, 10, 2, 11, 255, 11, 253, 10, 250, 9,
             248, 7, 246, 5, 245, 2, 244, 255, 244, 252, 245, 250, 246, 248,
             248, 247, 250, 246, 253, 246, 0, 247, 3, 248, 5, 250, 7, 252, 8,
             255, 9, 2, 9, 5, 8, 7, 7, 8, 6, 192, 0, 6, 249, 5, 1, 5, 3, 6, 4
             }

Definition at line 349 of file mri_drawing.c.

unsigned char char65[] [static]
 

Initial value:

 { 8, 247, 9, 0, 244, 248, 9, 192, 0, 0, 244, 8, 9, 192, 0, 251, 2,
             5, 2 }

Definition at line 357 of file mri_drawing.c.

unsigned char char66[] [static]
 

Initial value:

 { 23, 245, 10, 249, 244, 249, 9, 192, 0, 249, 244, 2, 244, 5, 245,
             6, 246, 7, 248, 7, 250, 6, 252, 5, 253, 2, 254, 192, 0, 249, 254,
             2, 254, 5, 255, 6, 0, 7, 2, 7, 5, 6, 7, 5, 8, 2, 9, 249, 9 }

Definition at line 359 of file mri_drawing.c.

unsigned char char67[] [static]
 

Initial value:

 { 18, 246, 11, 8, 249, 7, 247, 5, 245, 3, 244, 255, 244, 253, 245,
             251, 247, 250, 249, 249, 252, 249, 1, 250, 4, 251, 6, 253, 8,
             255, 9, 3, 9, 5, 8, 7, 6, 8, 4 }

Definition at line 362 of file mri_drawing.c.

unsigned char char68[] [static]
 

Initial value:

 { 15, 245, 10, 249, 244, 249, 9, 192, 0, 249, 244, 0, 244, 3, 245,
             5, 247, 6, 249, 7, 252, 7, 1, 6, 4, 5, 6, 3, 8, 0, 9, 249, 9 }

Definition at line 365 of file mri_drawing.c.

unsigned char char69[] [static]
 

Initial value:

 { 11, 246, 9, 250, 244, 250, 9, 192, 0, 250, 244, 7, 244, 192, 0,
             250, 254, 2, 254, 192, 0, 250, 9, 7, 9 }

Definition at line 367 of file mri_drawing.c.

unsigned char char70[] [static]
 

Initial value:

 { 8, 246, 8, 250, 244, 250, 9, 192, 0, 250, 244, 7, 244, 192, 0,
             250, 254, 2, 254 }

Definition at line 369 of file mri_drawing.c.

unsigned char char71[] [static]
 

Initial value:

 { 22, 246, 11, 8, 249, 7, 247, 5, 245, 3, 244, 255, 244, 253, 245,
             251, 247, 250, 249, 249, 252, 249, 1, 250, 4, 251, 6, 253, 8,
             255, 9, 3, 9, 5, 8, 7, 6, 8, 4, 8, 1, 192, 0, 3, 1, 8, 1 }

Definition at line 371 of file mri_drawing.c.

unsigned char char72[] [static]
 

Initial value:

 { 8, 245, 11, 249, 244, 249, 9, 192, 0, 7, 244, 7, 9, 192, 0, 249,
             254, 7, 254 }

Definition at line 374 of file mri_drawing.c.

unsigned char char73[] = { 2, 252, 4, 0, 244, 0, 9 } [static]
 

Definition at line 376 of file mri_drawing.c.

unsigned char char74[] [static]
 

Initial value:

 { 10, 248, 8, 4, 244, 4, 4, 3, 7, 2, 8, 0, 9, 254, 9, 252, 8, 251,
             7, 250, 4, 250, 2 }

Definition at line 377 of file mri_drawing.c.

unsigned char char75[] [static]
 

Initial value:

 { 8, 245, 10, 249, 244, 249, 9, 192, 0, 7, 244, 249, 2, 192, 0,
             254, 253, 7, 9 }

Definition at line 379 of file mri_drawing.c.

unsigned char char76[] = { 5, 246, 7, 250, 244, 250, 9, 192, 0, 250, 9, 6, 9 } [static]
 

Definition at line 381 of file mri_drawing.c.

unsigned char char77[] [static]
 

Initial value:

 { 11, 244, 12, 248, 244, 248, 9, 192, 0, 248, 244, 0, 9, 192, 0, 8,
             244, 0, 9, 192, 0, 8, 244, 8, 9 }

Definition at line 382 of file mri_drawing.c.

unsigned char char78[] [static]
 

Initial value:

 { 8, 245, 11, 249, 244, 249, 9, 192, 0, 249, 244, 7, 9, 192, 0, 7,
             244, 7, 9 }

Definition at line 384 of file mri_drawing.c.

unsigned char char79[] [static]
 

Initial value:

 { 21, 245, 11, 254, 244, 252, 245, 250, 247, 249, 249, 248, 252,
             248, 1, 249, 4, 250, 6, 252, 8, 254, 9, 2, 9, 4, 8, 6, 6, 7, 4,
             8, 1, 8, 252, 7, 249, 6, 247, 4, 245, 2, 244, 254, 244 }

Definition at line 386 of file mri_drawing.c.

unsigned char char80[] [static]
 

Initial value:

 { 13, 245, 10, 249, 244, 249, 9, 192, 0, 249, 244, 2, 244, 5, 245,
             6, 246, 7, 248, 7, 251, 6, 253, 5, 254, 2, 255, 249, 255 }

Definition at line 389 of file mri_drawing.c.

unsigned char char81[] [static]
 

Initial value:

 { 24, 245, 11, 254, 244, 252, 245, 250, 247, 249, 249, 248, 252,
             248, 1, 249, 4, 250, 6, 252, 8, 254, 9, 2, 9, 4, 8, 6, 6, 7, 4,
             8, 1, 8, 252, 7, 249, 6, 247, 4, 245, 2, 244, 254, 244, 192, 0,
             1, 5, 7, 11 }

Definition at line 391 of file mri_drawing.c.

unsigned char char82[] [static]
 

Initial value:

 { 16, 245, 10, 249, 244, 249, 9, 192, 0, 249, 244, 2, 244, 5, 245,
             6, 246, 7, 248, 7, 250, 6, 252, 5, 253, 2, 254, 249, 254, 192, 0,
             0, 254, 7, 9 }

Definition at line 395 of file mri_drawing.c.

unsigned char char83[] [static]
 

Initial value:

 { 20, 246, 10, 7, 247, 5, 245, 2, 244, 254, 244, 251, 245, 249,
             247, 249, 249, 250, 251, 251, 252, 253, 253, 3, 255, 5, 0, 6, 1,
             7, 3, 7, 6, 5, 8, 2, 9, 254, 9, 251, 8, 249, 6 }

Definition at line 398 of file mri_drawing.c.

unsigned char char84[] = { 5, 248, 8, 0, 244, 0, 9, 192, 0, 249, 244, 7, 244 } [static]
 

Definition at line 401 of file mri_drawing.c.

unsigned char char85[] [static]
 

Initial value:

 { 10, 245, 11, 249, 244, 249, 3, 250, 6, 252, 8, 255, 9, 1, 9, 4,
             8, 6, 6, 7, 3, 7, 244 }

Definition at line 402 of file mri_drawing.c.

unsigned char char86[] = { 5, 247, 9, 248, 244, 0, 9, 192, 0, 8, 244, 0, 9 } [static]
 

Definition at line 404 of file mri_drawing.c.

unsigned char char87[] [static]
 

Initial value:

 { 11, 244, 12, 246, 244, 251, 9, 192, 0, 0, 244, 251, 9, 192, 0, 0,
             244, 5, 9, 192, 0, 10, 244, 5, 9 }

Definition at line 405 of file mri_drawing.c.

unsigned char char88[] = { 5, 246, 10, 249, 244, 7, 9, 192, 0, 7, 244, 249, 9 } [static]
 

Definition at line 407 of file mri_drawing.c.

unsigned char char89[] = { 6, 247, 9, 248, 244, 0, 254, 0, 9, 192, 0, 8, 244, 0, 254 } [static]
 

Definition at line 408 of file mri_drawing.c.

unsigned char char90[] [static]
 

Initial value:

 { 8, 246, 10, 7, 244, 249, 9, 192, 0, 249, 244, 7, 244, 192, 0,
            249, 9, 7, 9 }

Definition at line 409 of file mri_drawing.c.

unsigned char char91[] [static]
 

Initial value:

 { 11, 249, 7, 253, 240, 253, 16, 192, 0, 254, 240, 254, 16, 192, 0,
             253, 240, 4, 240, 192, 0, 253, 16, 4, 16 }

Definition at line 411 of file mri_drawing.c.

unsigned char char92[] = { 2, 245, 11, 9, 16, 247, 240 } [static]
 

Definition at line 413 of file mri_drawing.c.

unsigned char char93[] [static]
 

Initial value:

 { 11, 249, 7, 2, 240, 2, 16, 192, 0, 3, 240, 3, 16, 192, 0, 252,
             240, 3, 240, 192, 0, 252, 16, 3, 16 }

Definition at line 414 of file mri_drawing.c.

unsigned char char94[] = { 7, 245, 11, 248, 2, 0, 253, 8, 2, 192, 0, 248, 2, 0, 254, 8, 2 } [static]
 

Definition at line 416 of file mri_drawing.c.

unsigned char char95[] = { 2, 253, 22, 0, 9, 20, 9 } [static]
 

Definition at line 417 of file mri_drawing.c.

unsigned char char96[] [static]
 

Initial value:

 { 7, 251, 5, 1, 244, 0, 245, 255, 247, 255, 249, 0, 250, 1, 249, 0,
             248 }

Definition at line 418 of file mri_drawing.c.

unsigned char char97[] [static]
 

Initial value:

 { 17, 247, 10, 6, 251, 6, 9, 192, 0, 6, 254, 4, 252, 2, 251, 255,
             251, 253, 252, 251, 254, 250, 1, 250, 3, 251, 6, 253, 8, 255, 9,
             2, 9, 4, 8, 6, 6 }

Definition at line 420 of file mri_drawing.c.

unsigned char char98[] [static]
 

Initial value:

 { 17, 246, 9, 250, 244, 250, 9, 192, 0, 250, 254, 252, 252, 254,
             251, 1, 251, 3, 252, 5, 254, 6, 1, 6, 3, 5, 6, 3, 8, 1, 9, 254,
             9, 252, 8, 250, 6 }

Definition at line 423 of file mri_drawing.c.

unsigned char char99[] [static]
 

Initial value:

 { 14, 247, 9, 6, 254, 4, 252, 2, 251, 255, 251, 253, 252, 251, 254,
             250, 1, 250, 3, 251, 6, 253, 8, 255, 9, 2, 9, 4, 8, 6, 6 }

Definition at line 426 of file mri_drawing.c.

unsigned char* ctab[] [static]
 

Initial value:

 {
    char32, char33, char34, char35, char36, char37, char38, char39, char40,
    char41, char42, char43, char44, char45, char46, char47, char48, char49,
    char50, char51, char52, char53, char54, char55, char56, char57, char58,
    char59, char60, char61, char62, char63, char64, char65, char66, char67,
    char68, char69, char70, char71, char72, char73, char74, char75, char76,
    char77, char78, char79, char80, char81, char82, char83, char84, char85,
    char86, char87, char88, char89, char90, char91, char92, char93, char94,
    char95, char96, char97, char98, char99, char100, char101, char102,
    char103, char104, char105, char106, char107, char108, char109, char110,
    char111, char112, char113, char114, char115, char116, char117, char118,
    char119, char120, char121, char122, char123, char124, char125, char126
}
Pointers to character definition tables.

Definition at line 501 of file mri_drawing.c.

Referenced by ppmd_text().

float opa = 1.0 [static]
 

Definition at line 25 of file mri_drawing.c.

Referenced by mri_draw_opacity().

long sintab[] [static]
 

Initial value:

 {
    0, 1143, 2287, 3429, 4571, 5711, 6850, 7986, 9120, 10252, 11380,
    12504, 13625, 14742, 15854, 16961, 18064, 19160, 20251, 21336,
    22414, 23486, 24550, 25606, 26655, 27696, 28729, 29752, 30767,
    31772, 32768, 33753, 34728, 35693, 36647, 37589, 38521, 39440,
    40347, 41243, 42125, 42995, 43852, 44695, 45525, 46340, 47142,
    47929, 48702, 49460, 50203, 50931, 51643, 52339, 53019, 53683,
    54331, 54963, 55577, 56175, 56755, 57319, 57864, 58393, 58903,
    59395, 59870, 60326, 60763, 61183, 61583, 61965, 62328, 62672,
    62997, 63302, 63589, 63856, 64103, 64331, 64540, 64729, 64898,
    65047, 65176, 65286, 65376, 65446, 65496, 65526, 65536
}
Table used to look up sine of angles from 0 through 90 degrees. The value returned is the sine * 65536. Symmetry is used to obtain sine and cosine for arbitrary angles using this table.

Definition at line 519 of file mri_drawing.c.

Referenced by isin().

 

Powered by Plone

This site conforms to the following standards: