OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
mapgraph.h
Go to the documentation of this file.
1 
2 /* MAPGRAPH.H */
3 #ifndef __MAPGRAPH_H__
4 #define __MAPGRAPH_H__ 1
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 #define LONGITUDE(lon) {\
11  if (lon < -180.0) lon += 360.0; \
12  if (lon > 180.0) lon -= 360.0; \
13 }
14 
15 #define LATITUDE(lat) {\
16  if (lat < -90.0) lat += 180.0; \
17  if (lat > 90.0) lat -= 180.0; \
18 }
19 
20 
21 /* Map Drawing Functions: */
22 
23 #ifndef __MSDOS__
24 #define far
25 #endif
26 
27 void mapinit( double xmn,
28  double ymn,
29  double xmx,
30  double ymx,
31  int width,
32  int height,
33  void far (*fwdproj)(),
34  void far (*invproj)() );
35 
36 void screenxy( double xmap, double ymap,
37  int *xscreen, int *yscreen );
38 
39 void mapxy( int xscreen, int yscreen, double *xmap, double *ymap );
40 
41 
42 void draw_graticule( double xstart,
43  double ystart,
44  double xstep,
45  double ystep,
46  int ninterm_pts,
47  int color,
48  int style,
49  int thickness );
50 
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif
void mapinit(double xmn, double ymn, double xmx, double ymx, int width, int height, void far(*fwdproj)(), void far(*invproj)())
void screenxy(double xmap, double ymap, int *xscreen, int *yscreen)
#define far
Definition: mapgraph.h:24
void draw_graticule(double xstart, double ystart, double xstep, double ystep, int ninterm_pts, int color, int style, int thickness)
void mapxy(int xscreen, int yscreen, double *xmap, double *ymap)