#include "spice.h"
#include "plotdev.h"
Go to the source code of this file.
|
int | HP_Init () |
|
int | HP_NewViewport (GRAPH *graph) |
|
int | HP_Close () |
|
int | HP_Halt () |
|
int | HP_Pixel (int x, int y) |
|
int | HP_Line (int x1, int y1, int x2, int y2) |
|
int | HP_Box (int x1, int y1, int x2, int y2) |
|
int | HP_Arc (int x0, int y0, int radius, double theta1, double theta2) |
|
int | HP_Polygon (POLYGON *p) |
|
int | HP_Text (char *text, int x, int y) |
|
int | HP_DefineLinestyle (int linestyleid, int mask) |
|
int | HP_SetLinestyle (int linestyleid) |
|
#define ror |
( |
|
x, |
|
|
|
n |
|
) |
| ((x >> n) | (x << (8-n))) |
#define swap |
( |
|
a, |
|
|
|
b |
|
) |
| {int t=a; a=b; b=t;} |
int HP_Arc |
( |
int |
x0, |
|
|
int |
y0, |
|
|
int |
radius, |
|
|
double |
theta1, |
|
|
double |
theta2 |
|
) |
| |
int HP_Box |
( |
int |
x1, |
|
|
int |
y1, |
|
|
int |
x2, |
|
|
int |
y2 |
|
) |
| |
Definition at line 255 of file hplaser.c.
int HP_Line(int x1, int y1, int x2, int y2)
int HP_DefineLinestyle |
( |
int |
linestyleid, |
|
|
int |
mask |
|
) |
| |
Definition at line 312 of file hplaser.c.
unsigned char linestyle_stored
Definition at line 121 of file hplaser.c.
126 char *
buf, *rgen, *
c;
139 "\033E\033&l0E\033*p%dX\033*p%dY\033*t%dR\033*r1A",
143 sprintf(buf,
"\033*b%dW",hp->
bytpline);
148 for (i = 0; i <= hp->
maxy; i++) {
164 fprintf(
plotfile,
"\033*p%dX\033*p%dY%s",
175 fprintf(
plotfile,
"\033*rB\014\033E");
static char buf[MAXPROMPT]
int HP_Line |
( |
int |
x1, |
|
|
int |
y1, |
|
|
int |
x2, |
|
|
int |
y2 |
|
) |
| |
Definition at line 199 of file hplaser.c.
205 int dx, dy, dy2, errterm = 0, next, lcnt;
207 unsigned char cbuf, left, right;
218 lcnt = hp->
maxy - y1;
219 rgen = hp->
base + (x1 >> 3) + lcnt*next;
220 left = 0x80 >> ((lcnt+x1) & 7);
229 cbuf = 0x80 >> (x1 & 7);
231 for (dy++; dy; dy--) {
234 if (left & right) *rgen |= cbuf;
239 while (errterm > 0 && x1 != x2) {
240 if (left & right) *rgen |= cbuf;
243 if (cbuf & 0x80) rgen++;
int HP_NewViewport |
( |
GRAPH * |
graph | ) |
|
Definition at line 58 of file hplaser.c.
struct graph::@2 absolute
internalerror(char *message)
unsigned char linestyle_stored
int HP_Pixel |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
Definition at line 279 of file hplaser.c.
285 for (i = 0; i < n; i += 2)
int HP_Line(int x1, int y1, int x2, int y2)
int HP_SetLinestyle |
( |
int |
linestyleid | ) |
|
Definition at line 326 of file hplaser.c.
unsigned char linestyle_stored
int HP_Text |
( |
char * |
text, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |