1
/* This file contains the low-level _tek_vector() method, which takes two
2
integer arguments and writes them, in the format used by a Tektronix
1
/* This file is part of the GNU plotutils package. Copyright (C) 1995,
2
1996, 1997, 1998, 1999, 2000, 2005, Free Software Foundation, Inc.
4
The GNU plotutils package is free software. You may redistribute it
5
and/or modify it under the terms of the GNU General Public License as
6
published by the Free Software foundation; either version 2, or (at your
7
option) any later version.
9
The GNU plotutils package is distributed in the hope that it will be
10
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
General Public License for more details.
14
You should have received a copy of the GNU General Public License along
15
with the GNU plotutils package; see the file COPYING. If not, write to
16
the Free Software Foundation, Inc., 51 Franklin St., Fifth Floor,
17
Boston, MA 02110-1301, USA. */
19
/* This file contains the low-level _pl_t_tek_vector() method, which takes
20
two integer arguments and writes them, in the format used by a Tektronix
3
21
4014 terminal for addresses while in vector or point-plot mode, to a
4
22
specified output stream. It is called by several TekPlotter methods.
41
59
#define TWOBITS 0x03 /* a dollar and six bits for a haircut... */
45
_tek_vector (R___(Plotter *_plotter) int xx, int yy)
47
_tek_vector (R___(_plotter) xx, yy)
48
S___(Plotter *_plotter;)
62
_pl_t_tek_vector (R___(Plotter *_plotter) int xx, int yy)
52
64
unsigned char xx_high, yy_high;
53
65
unsigned char xx_low, yy_low;
106
_tek_vector_compressed (R___(Plotter *_plotter) int xx, int yy, int oldxx, int oldyy, bool force)
108
_tek_vector_compressed (R___(_plotter) xx, yy, oldxx, oldyy, force)
109
S___(Plotter *_plotter;)
110
int xx, yy, oldxx, oldyy;
117
_pl_t_tek_vector_compressed (R___(Plotter *_plotter) int xx, int yy, int oldxx, int oldyy, bool force)
114
119
unsigned char xx_high, yy_high, oldxx_high, oldyy_high;
115
120
unsigned char xx_low, yy_low, oldyy_low;