source: subversion/applications/editors/osm-editor/qt3/SRTMGeneral.h @ 16590

Last change on this file since 16590 was 1158, checked in by nick, 14 years ago

moved current version to qt3 directory in preparation for qt4

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
34namespace OpenStreetMap
35{
36
37// these are fairly crap but get the thing working first then refine...
38double min(double a,double b);
39double max(double a,double b); 
40double between(double a, double b, double c);
41double slope_angle(double x1,double y1,double x2,double y2);
42
43vector<vector<EarthPoint> > readcoast (char* filename,
44                                EarthPoint bottomLeft, EarthPoint topRight) throw(string);
45
46struct LINE
47{
48        ScreenPos p[2];
49};
50
51struct LATLON_TILE
52{
53        EarthPoint origin;
54        int top, left, right, bottom;
55};
56
57
58
59
60
61class Colour
62{
63public:
64        int r,g,b;
65        Colour(){}
66        Colour(int r,int g, int b)
67                { this->r=r; this->g=g; this->b=b; }
68};
69
70class DrawSurface
71{
72public:
73        virtual void drawContour(int x1,int y1,int x2,int y2,
74                                                                int r,int g,int b) = 0;
75
76        virtual void drawAngleText(int fontsize, double angle, 
77                                                int x,int y,int r,int g,int b, char*) = 0;
78
79        virtual void heightShading(int,int,int,int,int,int,int,int,int,int,int) = 0;
80};
81
82}
83
84#endif
Note: See TracBrowser for help on using the repository browser.