source: SH_SHM/trunk/source/newgraph/mmusrdef.h @ 16

Revision 16, 4.5 KB checked in by marcus, 11 years ago (diff)

r1 | svn | 2007-12-13 11:10:29 +0100 (Do, 13 Dez 2007) | 2 lines

Initial import

Line 
1
2/* file MMUSRDEF.H
3 *
4 * version 5, 20-May-92
5 *
6 * prototypes of module MEMCH.C
7 * K. Stammler, 9-AUG-91
8 */
9
10#ifndef __MMUSRDEF
11#define __MMUSRDEF
12
13
14/*------------------------------------------------------------------------*/
15
16
17void mm_init( int wdw, STATUS *status );
18
19/* opens memory channel
20 *
21 * parameters of routine
22 * int        wdw;       input; channel number
23 * STATUS     *status;   output; return status
24 */
25
26
27/*------------------------------------------------------------------------*/
28
29
30void mm_exit( int wdw );
31
32/* closes memory channel
33 *
34 * parameters of routine
35 * int        wdw;       input; channel number
36 */
37
38
39/*------------------------------------------------------------------------*/
40
41
42void mm_finish( void );
43
44/* closes all channels
45 *
46 * no parameters
47 */
48
49
50/*------------------------------------------------------------------------*/
51
52
53void mm_setcoo( int wdw, GBC_COO x, GBC_COO y, GBC_COO w, GBC_COO h,
54        STATUS *status );
55
56/* sets user coordinate system
57 *
58 * parameters of routine
59 * int        wdw;         input; window number
60 * GBC_COO    x, y, w, h;  input; coordinates
61 * STATUS     *status;     output; return status
62 */
63
64
65/*------------------------------------------------------------------------*/
66
67
68void mm_moveto( int wdw, GBC_COO x, GBC_COO y );
69
70/* moves to (x,y)
71 *
72 * parameters of routine
73 * int        wdw;      input; channel number
74 * GBC_COO    x, y;     input; coordinates
75 */
76
77
78/*------------------------------------------------------------------------*/
79
80
81void mm_drawto( int wdw, int style, GBC_COO x, GBC_COO y );
82
83/* draws to (x,y)
84 *
85 * parameters of routine
86 * int        wdw;      input; channel number
87 * int        style;    input; style block number
88 * GBC_COO    x, y;     input; coordinates
89 */
90
91
92/*------------------------------------------------------------------------*/
93
94
95void mm_setpixel( int wdw, int style, GBC_COO x, GBC_COO y );
96
97/* sets pixel at user coordinates (x,y)
98 *
99 * parameters of routine
100 * int        wdw;      input; channel number
101 * int        style;    input; style block number
102 * GBC_COO    x, y;     input; coordinates
103 */
104
105
106/*------------------------------------------------------------------------*/
107
108
109void mm_arrayplot( int wdw, int style, long cnt, int red,
110        GBC_COO xoff, GBC_COO xinc, GBC_COO yoff, GBC_COO yarr[],
111        float yzoom, STATUS *status );
112
113/* plots an array of sample data
114 *
115 * parameters of routine
116 * int        wdw;            input; output channels
117 * int        style;          input; line style ID
118 * long       cnt;            input; length of data array
119 * int        red;            input; reduction factor for plotting
120 * GBC_COO    xoff;           input; x-position of first sample
121 * GBC_COO    xinc;           input; x increment
122 * GBC_COO    yoff;           input; y-position of first sample
123 * GBC_COO    yarr[];         input; sample data
124 * GBC_COO    yzoom;          input; zoom factor of sample data
125 * STATUS     *status;        output; return status
126 */
127
128
129/*------------------------------------------------------------------------*/
130
131
132void mm_erase( int wdw );
133
134/* erases channel
135 *
136 * parameter of routine
137 * int       wdw;     input; channel number
138 */
139
140
141/*------------------------------------------------------------------------*/
142
143
144void mm_text( int wdw, int style, GBC_COO x, GBC_COO y, char text[] );
145
146/* writes text at position (x,y)
147 *
148 * parameters of routine
149 * int        wdw;     input; channel number
150 * int        style;   input; style block number
151 * GBC_COO    x, y;    input; coordinates
152 * char       text[];  input; text to be printed
153 */
154
155
156/*------------------------------------------------------------------------*/
157
158
159void mm_setstyle( int wdw, int style, char item[], char value[], STATUS *status );
160
161/* writes text at position (x,y)
162 *
163 * parameters of routine
164 * int        wdw;     input; channel number
165 * int        style;   input; style block number
166 * char       item[];  input; item name
167 * char       value[]; input; value
168 * STATUS     *status; output; return status
169 */
170
171
172/*------------------------------------------------------------------------*/
173
174
175void mm_playback( int src, int dst, PAINTBOX *pb, char outf[], STATUS *status );
176
177/* redraws vectors sored in memory
178 *
179 * parameters of routine
180 * int        src;      input; source channel
181 * int        dst;      input; destination channel
182 * PAINTBOX   *pb;      input; paintbox routines
183 * char       outf[];   output; name of output file (if any)
184 * STATUS     *status;  output; return status
185 */
186
187
188/*------------------------------------------------------------------------*/
189
190#endif /* __MMUSRDEF */
Note: See TracBrowser for help on using the repository browser.