ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/meta/tgraph.h
Revision: 1.3
Committed: Mon Jul 14 22:24:00 2003 UTC (20 years, 10 months ago) by schorsch
Content type: text/plain
Branch: MAIN
Changes since 1.2: +15 -2 lines
Log Message:
Instrumented headers against multiple inclusion and for use from C++.
Moved includes in headers out of "C" scope.

File Contents

# Content
1 /* RCSid: $Id: tgraph.h,v 1.2 2003/06/08 12:03:10 schorsch Exp $ */
2
3 #ifndef _RAD_TGRAPH_H_
4 #define _RAD_TGRAPH_H_
5
6 #include <stdlib.h>
7 #include <math.h>
8
9 #include "meta.h"
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 #define MINDIVS 4 /* Minimum number of divisions for axis */
16
17 #define FTINY 1e-10 /* tiny float */
18
19 #define FHUGE 1e10 /* large float */
20
21 #define PI 3.14159265358979323846
22
23 #define XBEG 2048 /* starting x coordinate */
24
25 #define XSIZ 10240 /* x axis coordinate size */
26
27 #define YBEG 2048 /* starting y coordinate */
28
29 #define YSIZ 10240 /* y axis coordinate size */
30
31 #define XCONV(x) ((int)((x-xmin)*XSIZ/xsize+XBEG))
32
33 #define YCONV(y) ((int)((y-ymin)*YSIZ/ysize+YBEG))
34
35 #define TSIZ 200 /* tick size */
36
37 #define SYMRAD 100 /* default symbol radius */
38
39 #define XTICS 1 /* flags for making axes */
40 #define YTICS 2
41 #define XNUMS 4
42 #define YNUMS 8
43 #define XGRID 16
44 #define YGRID 32
45 #define ORIGIN 64
46 #define BOX 128
47
48 #define RADIANS 1 /* flags for polar coordinates */
49 #define DEGREES 2
50
51 #define NCUR 16 /* number of supported curve types */
52
53
54
55 extern short usecurve[]; /* booleans for curve usage */
56
57 extern int symrad; /* current symbol radius */
58
59 extern double xmin, xmax, /* extrema */
60 ymin, ymax;
61
62 extern double xsize, ysize; /* coordinate dimensions */
63
64 extern double xmnset, xmxset, /* domain settings */
65 ymnset, ymxset;
66
67 extern short logx, logy; /* flags for logarithmic axes */
68
69 extern short grid; /* flag for grid */
70
71 extern short polar; /* flag for polar coordiates */
72
73 extern int ncurves; /* number of curves in file */
74
75 extern char *snagquo(), *instr();
76
77
78 #ifdef __cplusplus
79 }
80 #endif
81 #endif /* _RAD_TGRAPH_H_ */
82