GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-d6dec75dd4
htmlmap.h
Go to the documentation of this file.
1 #include <stdio.h>
2 #include "path.h"
3 
4 #define DEF_MINBBOX 2
5 #define DEF_MINDIST 2
6 #define DEF_MAXPTS 99
7 
8 #define FILE_NAME "htmlmap"
9 
10 #define INITIAL_TEXT 1000
11 
12 #define APACHE 0 /* write output in apache/ncsa server image map format */
13 #define NCSA 0 /* write output in apache/ncsa server image map format */
14 #define CLIENT 1 /* write output in netscape client side image map format */
15 #define RAW 2 /* write output in raw format */
16 
17 struct MapPoly {
18  char *url;
19  int num_pts;
20  int *x_pts;
21  int *y_pts;
22  struct MapPoly *next_poly;
23 };
24 
25 struct html_state {
26  char *last_text;
28  int type;
29  FILE *output;
30  struct MapPoly *head;
31  struct MapPoly **tail;
35 };
36 
37 extern struct html_state html;
38 
39 /* Draw.c */
40 extern void HTML_Begin(void);
41 extern void HTML_Move(double, double);
42 extern void HTML_Cont(double, double);
43 extern void HTML_Close(void);
44 extern void HTML_Fill(void);
45 extern void HTML_Stroke(void);
46 
47 /* Driver.c */
48 extern const struct driver *HTML_Driver(void);
49 
50 /* Graph_Clse.c */
51 extern void HTML_Graph_close(void);
52 
53 /* Graph_Set.c */
54 extern int HTML_Graph_set(void);
55 
56 /* Box.c */
57 extern void HTML_Box(double, double, double, double);
58 
59 /* Polygon.c */
60 extern void html_polygon(const struct path *);
61 
62 /* Text.c */
63 extern void HTML_Text(const char *);
const struct driver * HTML_Driver(void)
void HTML_Close(void)
void html_polygon(const struct path *)
int HTML_Graph_set(void)
void HTML_Begin(void)
void HTML_Stroke(void)
void HTML_Graph_close(void)
Definition: graph_clse.c:28
void HTML_Box(double, double, double, double)
Definition: htmldriver/box.c:3
void HTML_Text(const char *)
void HTML_Cont(double, double)
void HTML_Move(double, double)
struct html_state html
void HTML_Fill(void)
int * y_pts
Definition: htmlmap.h:21
int num_pts
Definition: htmlmap.h:19
int * x_pts
Definition: htmlmap.h:20
struct MapPoly * next_poly
Definition: htmlmap.h:22
char * url
Definition: htmlmap.h:18
Definition: driver.h:21
int MAX_POINTS
Definition: htmlmap.h:32
int type
Definition: htmlmap.h:28
struct MapPoly * head
Definition: htmlmap.h:30
char * last_text
Definition: htmlmap.h:26
int last_text_len
Definition: htmlmap.h:27
struct MapPoly ** tail
Definition: htmlmap.h:31
FILE * output
Definition: htmlmap.h:29
int MINIMUM_DIST
Definition: htmlmap.h:34
int BBOX_MINIMUM
Definition: htmlmap.h:33
Definition: path.h:15