# 2.11BSD#431 - /usr/src/usr.lib/libplot/hp7221/hp7221.h

##### Macros

    ENDOFSTRING       X
    ESC               X
    PI                X
    XMAX              X
    YMAX              X
    scaleX            X
    scaleY            X

       1: /*
       2:  * Copyright (c) 1980 Regents of the University of California.
       3:  * All rights reserved.  The Berkeley software License Agreement
       4:  * specifies the terms and conditions for redistribution.
       5:  *
       6:  *	@(#)hp7221.h	5.1.1 (2.11BSD) 1/1/94
       7:  *
       8:  *
       9:  * Displays plot files on an HP7221 plotter.
      10:  * Cloned from bgplot.c and gigiplot.c by Jim Kleckner
      11:  * Thu Jun 30 13:35:04 PDT 1983
      12:  *  Requires a handshaking program such as hp7221cat to get
      13:  *  the plotter open and ready.
      14:  */
      15:
      16: #include <stdio.h>
      17: #include <math.h>
      18:
      19: #define ESC 033
      20: #define PI  3.141592659
      21: #define ENDOFSTRING 03
      22:
      23: /* The graphics address range is 0..XMAX, 0..YMAX. */
      24: #define XMAX    1800
      25: #define YMAX    1800
      26:
      27: #define scaleX(xi)  ((int) ((xi - lowx)*scale +0.5))
      28: #define scaleY(yi)  ((int) ((yi - lowy)*scale +0.5))
      29:
      30: extern int currentx;
      31: extern int currenty;
      32: extern double lowx;
      33: extern double lowy;
      34: extern double scale;

#### Defined macros

ENDOFSTRING defined in line 21; used 1 times

- in /usr/src/usr.lib/libplot/hp7221/label.c line 17

ESC defined in line 19; never used
PI defined in line 20; used 1 times

- in /usr/src/usr.lib/libplot/hp7221/arc.c line 39

XMAX defined in line 24; used 3 times

- in /usr/src/usr.lib/libplot/hp7221/open.c line 40-43(2)
- in /usr/src/usr.lib/libplot/hp7221/space.c line 19

YMAX defined in line 25; used 3 times

- in /usr/src/usr.lib/libplot/hp7221/open.c line 40-43(2)
- in /usr/src/usr.lib/libplot/hp7221/space.c line 20

scaleX defined in line 27; used 6 times

- in /usr/src/usr.lib/libplot/hp7221/circle.c line 22
- in /usr/src/usr.lib/libplot/hp7221/cont.c line 16
- in /usr/src/usr.lib/libplot/hp7221/line.c line 16-18(2)
- in /usr/src/usr.lib/libplot/hp7221/move.c line 16
- in /usr/src/usr.lib/libplot/hp7221/point.c line 16

scaleY defined in line 28; used 5 times

- in /usr/src/usr.lib/libplot/hp7221/cont.c line 17
- in /usr/src/usr.lib/libplot/hp7221/line.c line 16-18(2)
- in /usr/src/usr.lib/libplot/hp7221/move.c line 17
- in /usr/src/usr.lib/libplot/hp7221/point.c line 16

#### Usage of this include

hp7221.h used 12 times

- in /usr/src/usr.lib/libplot/hp7221/arc.c line 11
- in /usr/src/usr.lib/libplot/hp7221/circle.c line 11
- in /usr/src/usr.lib/libplot/hp7221/close.c line 12
- in /usr/src/usr.lib/libplot/hp7221/cont.c line 11
- in /usr/src/usr.lib/libplot/hp7221/label.c line 11
- in /usr/src/usr.lib/libplot/hp7221/line.c line 11
- in /usr/src/usr.lib/libplot/hp7221/linemod.c line 11
- in /usr/src/usr.lib/libplot/hp7221/move.c line 11
- in /usr/src/usr.lib/libplot/hp7221/open.c line 20
- in /usr/src/usr.lib/libplot/hp7221/point.c line 11
- in /usr/src/usr.lib/libplot/hp7221/space.c line 11
- in /usr/src/usr.lib/libplot/hp7221/subr.c line 11

Last modified: 1994-01-11 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 873 |