~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to raster/r.le/r.le.setup/setup.h

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 ************************************************************
3
 
 * MODULE: r.le.setup/setup.h                               *
4
 
 *         Version 5.0beta            Oct. 1, 2001          *
5
 
 *                                                         *
6
 
 * AUTHOR: W.L. Baker, University of Wyoming                *
7
 
 *         BAKERWL@UWYO.EDU                                 *
8
 
 *                                                          *
9
 
 * PURPOSE: To set up sampling areas, which can can then    *
10
 
 *         be used to obtain data using the r.le.dist,      *
11
 
 *         r.le.patch, and r.le.pixel programs.  The        *
12
 
 *         setup.h code contains structure definitions      *
13
 
 *         and lists of modules in r.le.setup               *
14
 
 *                                                         *
15
 
 * COPYRIGHT: (C) 2001 by W.L. Baker                        *
16
 
 *                                                          *
17
 
 * This program is free software under the GNU General      *
18
 
 * Public License(>=v2).  Read the file COPYING that comes  *
19
 
 * with GRASS for details                                   *
20
 
 *                                                         *
21
 
 ************************************************************/
22
 
 
23
 
#include "stdio.h"
24
 
#include "math.h"
25
 
#include "signal.h"
26
 
#include "setjmp.h"
27
 
#include "ctype.h"
28
 
#include "stdlib.h"
29
 
#include "string.h"
30
 
#include <grass/gis.h>
31
 
#include "sys/types.h"
32
 
 
33
 
 
34
 
/* #include "dig_defines.h" */
35
 
/* #include "dig_structs.h" */
36
 
/* #include "dig_head.h" */
37
 
 
38
 
 
39
 
 
40
 
#define  SML   0.5
41
 
#define EQ(a, b)    (a-b < 0.01 && a-b > -0.01 )
42
 
#define BIG   1000000000.0
43
 
 
44
 
extern jmp_buf jmp;
45
 
 
46
 
/** sample.c **/
47
 
extern void sample(int t0, int b0, int l0, int r0, char *name, char *name1,
48
 
                   char *name2, double *msc);
49
 
extern void draw_box(int x0, int y0, int xp, int yp, int thick);
50
 
extern void draw_circle(int x0, int y0, int xp, int yp, int thick);
51
 
extern void numtrap(int n, double *a);
52
 
 
53
 
/** mv_wind.c **/
54
 
extern void mov_wind(int t, int b, int l, int r, char *n1, char *n2, char *n3,
55
 
                     double *mx);
56
 
 
57
 
/** ask_group.c **/
58
 
extern int ask_group(char **sel);
59
 
extern int get_group_drv(char **sel);
60
 
extern FILE *fopen0(char *name, char *flag);
61
 
 
62
 
/** setup.c **/
63
 
 
64
 
extern void set_map(char *name, char *name1, char *name2,
65
 
                    struct Cell_head window, int top, int bot, int left,
66
 
                    int right);
67
 
extern void paint_map(char *n1, char *n2, char *n3);