source: git/src/export.h @ e24b7fb

RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernlogstereowalls-datawalls-data-hanging-as-warning
Last change on this file since e24b7fb was bc1fac5, checked in by Olly Betts <olly@…>, 11 years ago

lib/survex.pot,src/export.cc,src/export.h,src/printwx.cc: Add
"Origin in centre" and "Full coordinates" options to export

  • the latter fixes #10. GPX and PLT output force "full

coordinates".

  • Property mode set to 100644
File size: 1.8 KB
Line 
1/* export.h
2 * Export to CAD-like formats (DXF, Skencil, SVG, EPS, HPGL) and also Compass
3 * PLT.
4 */
5
6/* Copyright (C) 2004,2005,2012 Olly Betts
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
21 */
22
23#ifndef SURVEX_INCLUDED_EXPORT_H
24#define SURVEX_INCLUDED_EXPORT_H
25
26#include "wx.h"
27
28class MainFrm;
29
30typedef enum {
31    FMT_DXF,
32    FMT_EPS,
33    FMT_GPX,
34    FMT_HPGL,
35    FMT_PLT,
36    FMT_SK,
37    FMT_SVG
38} export_format;
39
40#define LEGS            0x00000001
41#define SURF            0x00000002
42#define STNS            0x00000004
43#define LABELS          0x00000008
44#define XSECT           0x00000010
45#define WALL1           0x00000020
46#define WALL2           0x00000040
47#define WALLS (WALL1|WALL2)
48#define PASG            0x00000080
49#define EXPORT_3D       0x10000000
50#define CENTRED         0x00000200
51#define ENTS            0x00000400
52#define FIXES           0x00000800
53#define EXPORTS         0x00001000
54#define PROJ            0x00002000
55#define GRID            0x00004000
56#define TEXT_HEIGHT     0x00008000
57#define MARKER_SIZE     0x00010000
58#define SCALE           0x00020000
59#define FULL_COORDS     0x00040000
60
61bool Export(const wxString &fnm_out, const wxString &title,
62            const MainFrm * mainfrm, double pan, double tilt, int show_mask,
63            export_format format,
64            double grid_, double text_height_, double marker_size_);
65
66#endif
Note: See TracBrowser for help on using the repository browser.