1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
|
/*
* Copyright (C) 2003 Martin Budaj
*
* $Date: $
* $RCSfile: $
* $Revision: $
*
* --------------------------------------------------------------------
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* --------------------------------------------------------------------
*/
#ifndef thpdfdata_h
#define thpdfdata_h
#include <string>
#include <list>
#include <map>
#include <set>
#include "thepsparse.h"
using namespace std;
struct surfpictrecord {
const char * filename, * type;
double dx, dy, xx, xy, yx, yy, width, height;
};
struct scraprecord {
string name,F,B,I,E,X,G,C,P; // name + files
converted_data Fc, Bc, Ic, Ec, Xc, Gc;
double S1,S2; // shift
int layer,level,sect; // Y, V, Z
double F1,F2,F3,F4, // bounding boxes
G1,G2,G3,G4,
B1,B2,B3,B4,
I1,I2,I3,I4,
E1,E2,E3,E4,
X1,X2,X3,X4;
double r,g,b;
list<surfpictrecord> SKETCHLIST;
scraprecord();
};
struct layerrecord {
set<int> U,D;
string N,T;
int Z;
int AltJump;
int minx, maxx, miny, maxy;
bool bookmark;
map< int,set<string> > scraps;
set<string> allscraps;
layerrecord();
};
struct legendrecord {
string name, fname, descr;
converted_data ldata;
unsigned idsym, idfig, idnum;
};
struct colorlegendrecord {
double R, G, B;
string texname, name;
};
struct paired {
double x,y;
paired();
};
paired rotatedaround(paired x,paired o, double th);
struct layout {
string excl_list,labelx,labely,
doc_author,doc_keywords,doc_subject,doc_title,doc_comment,
northarrow, scalebar,langstr;
bool excl_pages,title_pages,page_numbering,
transparency,map_grid,OCG,map_header_bg,colored_text,transparent_map_bg;
double hsize,vsize,overlap,
hgridsize, vgridsize,
hgridorigin, vgridorigin, gridrot,
nav_factor, XS,YS,XO,YO;
int nav_right,nav_up,own_pages,lang,legend_columns;
double hoffset, voffset, opacity, legend_width;
double background_r, background_g, background_b;
double foreground_r, foreground_g, foreground_b;
double preview_below_r, preview_below_g, preview_below_b;
double preview_above_r, preview_above_g, preview_above_b;
int surface, grid, proj, grid_coord_freq; // freq 0 no, 1 border, 2 all
string gridAA, gridAB, gridAC,
gridBA, gridBB, gridBC,
gridCA, gridCB, gridCC;
paired gridcell[9];
double surface_opacity;
paired calibration_local[9], calibration_latlong[9];
double calibration_hdist;
layout();
};
extern map<int,layerrecord> LAYERHASH;
extern set<int> MAP_PREVIEW_UP, MAP_PREVIEW_DOWN;
extern list<scraprecord> SCRAPLIST;
extern list<legendrecord> LEGENDLIST;
extern list<colorlegendrecord> COLORLEGENDLIST;
extern layout LAYOUT;
extern list<pattern> PATTERNLIST;
extern list<converted_data> GRIDLIST;
extern converted_data NArrow, ScBar;
extern list<surfpictrecord> SURFPICTLIST;
#endif
|