tomwalters@0
|
1 /*
|
tomwalters@0
|
2 Copyright (c) Applied Psychology Unit, Medical Research Council. 1988, 1989
|
tomwalters@0
|
3 ===========================================================================
|
tomwalters@0
|
4
|
tomwalters@0
|
5 Permission to use, copy, modify, and distribute this software without fee
|
tomwalters@0
|
6 is hereby granted for research purposes, provided that this copyright
|
tomwalters@0
|
7 notice appears in all copies and in all supporting documentation, and that
|
tomwalters@0
|
8 the software is not redistributed for any fee (except for a nominal shipping
|
tomwalters@0
|
9 charge). Anyone wanting to incorporate all or part of this software in a
|
tomwalters@0
|
10 commercial product must obtain a license from the Medical Research Council.
|
tomwalters@0
|
11
|
tomwalters@0
|
12 The MRC makes no representations about the suitability of this
|
tomwalters@0
|
13 software for any purpose. It is provided "as is" without express or implied
|
tomwalters@0
|
14 warranty.
|
tomwalters@0
|
15
|
tomwalters@0
|
16 THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
tomwalters@0
|
17 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE
|
tomwalters@0
|
18 A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
|
tomwalters@0
|
19 DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
|
tomwalters@0
|
20 AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
tomwalters@0
|
21 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
tomwalters@0
|
22 */
|
tomwalters@0
|
23
|
tomwalters@0
|
24 /*
|
tomwalters@0
|
25 draw.h
|
tomwalters@0
|
26 ======
|
tomwalters@0
|
27
|
tomwalters@0
|
28 interface to windows graphics calls for files of complex formats.
|
tomwalters@0
|
29
|
tomwalters@0
|
30 */
|
tomwalters@0
|
31
|
tomwalters@0
|
32 #define _DRAW_H_
|
tomwalters@0
|
33
|
tomwalters@0
|
34 struct _draw_state { Source source ; WindowObject window ;
|
tomwalters@0
|
35 int min, max, framewidth, frameheight, nwid,
|
tomwalters@0
|
36 rownumber, colnumber, rowsegment, colsegment ;
|
tomwalters@0
|
37 long frames, framenumber ; void (*interceptor)(), (*drawer)() ;
|
tomwalters@0
|
38 } ;
|
tomwalters@0
|
39
|
tomwalters@0
|
40 extern double drawHeadroom, drawTilt, drawDepth, drawDistance, drawOverlap ;
|
tomwalters@0
|
41
|
tomwalters@0
|
42 extern void draw_frame() ;
|
tomwalters@0
|
43
|
tomwalters@0
|
44 extern Source SourceDraw() ;
|
tomwalters@0
|
45
|
tomwalters@0
|
46
|
tomwalters@0
|
47 #define DrawAcross( _window, _source, _min, _max, _framepoints, _frames ) \
|
tomwalters@0
|
48 drawAcross( _window, _source, _min, _max, _framepoints, _frames, (void ( * )()) 0 )
|
tomwalters@0
|
49
|
tomwalters@0
|
50 extern Source drawAcross() ;
|
tomwalters@0
|
51
|
tomwalters@0
|
52
|
tomwalters@0
|
53 #define DrawDown( _window, _source, _min, _max, _framepoints, _frames ) \
|
tomwalters@0
|
54 drawDown( _window, _source, _min, _max, _framepoints, _frames, (void ( * )()) 0 )
|
tomwalters@0
|
55
|
tomwalters@0
|
56 extern Source drawDown( ) ;
|