source: subversion/applications/utils/srtm2shp/SRTMGeneral.h @ 34385

Last change on this file since 34385 was 6182, checked in by nick, 12 years ago

new and internationally-capable srtm2shp added

File size: 1.9 KB
Line 
1/*
2    Copyright (C) 2005 Nick Whitelegg, Hogweed Software, nick@hogweed.org
3
4    This program is free software; you can redistribute it and/or modify
5    it under the terms of the GNU Lesser General Public License as published by
6    the Free Software Foundation; either version 2 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU Lesser General Public License for more details.
13
14    You should have received a copy of the GNU Lesser General Public License
15    along with this program; if not, write to the Free Software
16    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA
17
18 */
19#ifndef SRTMGENERAL_H
20#define SRTMGENERAL_H
21
22#include <iostream>
23#include <vector>
24#include <map>
25#include <string>
26using std::cout;
27using std::cerr;
28using std::endl;
29using std::vector;
30using std::string;
31
32#include "Map.h"
33
34
35// these are fairly crap but get the thing working first then refine...
36double min(double a,double b);
37double max(double a,double b); 
38double between(double a, double b, double c);
39double slope_angle(double x1,double y1,double x2,double y2);
40
41vector<vector<EarthPoint> > readcoast (char* filename,
42                                EarthPoint bottomLeft, EarthPoint topRight) throw(string);
43
44struct LINE
45{
46        Point p[2];
47};
48
49struct LATLON_TILE
50{
51        EarthPoint origin;
52        int top, left, right, bottom;
53};
54
55
56
57
58
59class Colour
60{
61public:
62        int r,g,b;
63        Colour(){}
64        Colour(int r,int g, int b)
65                { this->r=r; this->g=g; this->b=b; }
66};
67
68class DrawSurface
69{
70public:
71        virtual void drawContour(int x1,int y1,int x2,int y2,
72                                                                int r,int g,int b) = 0;
73
74        virtual void drawAngleText(int fontsize, double angle, 
75                                                int x,int y,int r,int g,int b, char*) = 0;
76
77        virtual void heightShading(int,int,int,int,int,int,int,int,int,int,int) = 0;
78};
79
80
81#endif
Note: See TracBrowser for help on using the repository browser.