[1534ed9] | 1 | /* kml.h |
---|
| 2 | * Export from Aven as KML. |
---|
| 3 | */ |
---|
[d01b55a] | 4 | /* Copyright (C) 2005,2013,2014,2015,2016,2017,2018 Olly Betts |
---|
[1534ed9] | 5 | * |
---|
| 6 | * This program is free software; you can redistribute it and/or modify |
---|
| 7 | * it under the terms of the GNU General Public License as published by |
---|
| 8 | * the Free Software Foundation; either version 2 of the License, or |
---|
| 9 | * (at your option) any later version. |
---|
| 10 | * |
---|
| 11 | * This program is distributed in the hope that it will be useful, |
---|
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 14 | * GNU General Public License for more details. |
---|
| 15 | * |
---|
| 16 | * You should have received a copy of the GNU General Public License |
---|
| 17 | * along with this program; if not, write to the Free Software |
---|
| 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
---|
| 19 | */ |
---|
| 20 | |
---|
| 21 | #include "exportfilter.h" |
---|
| 22 | |
---|
[8719711] | 23 | #define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H 1 |
---|
[1534ed9] | 24 | #include <proj_api.h> |
---|
| 25 | |
---|
[f2cb101] | 26 | #include "vector3.h" |
---|
| 27 | |
---|
| 28 | #include <vector> |
---|
| 29 | |
---|
[1534ed9] | 30 | class KML : public ExportFilter { |
---|
[d01b55a] | 31 | projPJ pj_input = NULL, pj_output = NULL; |
---|
| 32 | bool in_linestring = false; |
---|
| 33 | bool in_wall = false; |
---|
[0939dcd] | 34 | bool in_passage = false; |
---|
[32a040e] | 35 | bool clamp_to_ground; |
---|
[9342f70] | 36 | Vector3 v1, v2; |
---|
[1534ed9] | 37 | public: |
---|
[32a040e] | 38 | KML(const char * input_datum, bool clamp_to_ground_); |
---|
[1534ed9] | 39 | ~KML(); |
---|
| 40 | const int * passes() const; |
---|
[55a861a] | 41 | void header(const char *, const char *, time_t, |
---|
| 42 | double, double, double, |
---|
| 43 | double, double, double); |
---|
[f03d89e] | 44 | void start_pass(int pass); |
---|
[a2c29c1] | 45 | void line(const img_point *, const img_point *, unsigned, bool); |
---|
[1534ed9] | 46 | void label(const img_point *, const char *, bool, int); |
---|
[e63994c] | 47 | void xsect(const img_point *, double, double, double); |
---|
| 48 | void wall(const img_point *, double, double); |
---|
[f2cb101] | 49 | void passage(const img_point *, double, double, double); |
---|
| 50 | void tube_end(); |
---|
[1534ed9] | 51 | void footer(); |
---|
| 52 | }; |
---|