-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathProject.h
51 lines (41 loc) · 2.07 KB
/
Project.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#define FALSE 0
#define TRUE 1
/* Projection Modes */
#define SANSONS 1
#define STEREOGR 2
#define GNOMONIC 3
#define ORTHOGR 4
#define RECTANGULAR 5
#define OTHERPROJ 6
/* The variables in the first few lines MUST be set by driver */
typedef struct {
int width, height, x_offset, y_offset; /* Size and position,
in integer device coords */
/* The next several variables may be set by the driver, but the main routines
may reset them (and the driver routines may then override that) */
int proj_mode; /* Projection mode for this map */
int invert; /* Invert (flip north/south) */
int mirror; /* Mirror (flip east/west) */
/* The following are set by the main routines */
double racen, dlcen, scale; /* R.A. and decl. of center,
scale in degrees */
double c_scale; /* One second of arc
in display units */
} mapwindow;
extern mapwindow skywin, telwin, horwin;// Sky, Telescope, and Horizon map windows
extern mapwindow *mapwin[3]; // Window list
extern int numwins; // Number of windows
extern int initxform(mapwindow *win);
extern void xform(double lat, double lon, int *xloc, int *yloc, int *inregion);
extern int invxform(int x, int y, double *latp, double *lonp);
extern int clipr_xform(double lat1, double lon1, double lat2, double lon2,
int *xloc1, int *yloc1, int *xloc2, int *yloc2, int great_circle,
double *plat1, double *plon1, double *plat2, double *plon2);
extern void drawcurveline(double lat1, double lon1, double lat2, double lon2,
int xloc1, int yloc1, int xloc2, int yloc2,
int line_style, int great_circle, int clevel);
extern void drawAltAzCurveline(double alt1, double az1, double alt2, double az2,
double sitelat, double lham,
int xloc1, int yloc1, int xloc2, int yloc2,
int line_style, int clevel);
extern void D_movedraw(int xloc1, int yloc1, int xloc2, int yloc2, int line_style);