|
Version: 0.6.0
|
24 #include <wx/wxprec.h>
35 #include <wx/osx/private.h>
38 #if defined(HAVE_VISIBILITY)
39 # define WXEXPORT __attribute__ ((visibility("default")))
40 # define WXIMPORT __attribute__ ((visibility("default")))
41 #elif defined(__WINDOWS__)
46 # if defined(__VISUALC__) || defined(__BORLANDC__) || defined(__WATCOMC__)
47 # define WXEXPORT __declspec(dllexport)
48 # define WXIMPORT __declspec(dllimport)
56 # elif defined(__GNUC__) && !wxCHECK_GCC_VERSION(4, 5)
61 # define WXEXPORT __attribute__((dllexport))
62 # define WXIMPORT __attribute__((dllimport))
64 #elif defined(__WXPM__)
65 # if defined (__WATCOMC__)
66 # define WXEXPORT __declspec(dllexport)
72 # elif defined(__EMX__)
75 # elif (!(defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )))
76 # define WXEXPORT _Export
77 # define WXIMPORT _Export
79 #elif defined(__WXMAC__) || defined(__WXCOCOA__)
81 # define WXEXPORT __declspec(export)
82 # define WXIMPORT __declspec(import)
84 #elif defined(__CYGWIN__)
85 # define WXEXPORT __declspec(dllexport)
86 # define WXIMPORT __declspec(dllimport)
95 #ifdef WXMAKINGDLL_GIS_CORE
96 # define WXDLLIMPEXP_GIS_CORE WXEXPORT
97 # define WXDLLIMPEXP_DATA_GIS_CORE(type) WXEXPORT type
98 #elif defined(WXUSINGDLL)
99 # define WXDLLIMPEXP_GIS_CORE WXIMPORT
100 # define WXDLLIMPEXP_DATA_GIS_CORE(type) WXIMPORT type
102 # define WXDLLIMPEXP_GIS_CORE
103 # define WXDLLIMPEXP_DATA_GIS_CORE(type) type
106 #ifdef WXMAKINGDLL_GIS_FRW
107 # define WXDLLIMPEXP_GIS_FRW WXEXPORT
108 # define WXDLLIMPEXP_DATA_GIS_FRW(type) WXEXPORT type
109 #elif defined(WXUSINGDLL)
110 # define WXDLLIMPEXP_GIS_FRW WXIMPORT
111 # define WXDLLIMPEXP_DATA_GIS_FRW(type) WXIMPORT type
113 # define WXDLLIMPEXP_GIS_FRW
114 # define WXDLLIMPEXP_DATA_GIS_FRW(type) type
117 #ifdef WXMAKINGDLL_GIS_DSP
118 # define WXDLLIMPEXP_GIS_DSP WXEXPORT
119 # define WXDLLIMPEXP_DATA_GIS_DSP(type) WXEXPORT type
120 #elif defined(WXUSINGDLL)
121 # define WXDLLIMPEXP_GIS_DSP WXIMPORT
122 # define WXDLLIMPEXP_DATA_GIS_DSP(type) WXIMPORT type
124 # define WXDLLIMPEXP_GIS_DSP
125 # define WXDLLIMPEXP_DATA_GIS_DSP(type) type
128 #ifdef WXMAKINGDLL_GIS_CRT
129 # define WXDLLIMPEXP_GIS_CRT WXEXPORT
130 # define WXDLLIMPEXP_DATA_GIS_CRT(type) WXEXPORT type
131 #elif defined(WXUSINGDLL)
132 # define WXDLLIMPEXP_GIS_CRT WXIMPORT
133 # define WXDLLIMPEXP_DATA_GIS_CRT(type) WXIMPORT type
135 # define WXDLLIMPEXP_GIS_CRT
136 # define WXDLLIMPEXP_DATA_GIS_CRT(type) type
139 #ifdef WXMAKINGDLL_GIS_CTU
140 # define WXDLLIMPEXP_GIS_CTU WXEXPORT
141 # define WXDLLIMPEXP_DATA_GIS_CTU(type) WXEXPORT type
142 #elif defined(WXUSINGDLL)
143 # define WXDLLIMPEXP_GIS_CTU WXIMPORT
144 # define WXDLLIMPEXP_DATA_GIS_CTU(type) WXIMPORT type
146 # define WXDLLIMPEXP_GIS_CTU
147 # define WXDLLIMPEXP_DATA_GIS_CTU(type) type
150 #ifdef WXMAKINGDLL_GIS_CLT
151 # define WXDLLIMPEXP_GIS_CLT WXEXPORT
152 # define WXDLLIMPEXP_DATA_GIS_CLT(type) WXEXPORT type
153 #elif defined(WXUSINGDLL)
154 # define WXDLLIMPEXP_GIS_CLT WXIMPORT
155 # define WXDLLIMPEXP_DATA_GIS_CLT(type) WXIMPORT type
157 # define WXDLLIMPEXP_GIS_CLT
158 # define WXDLLIMPEXP_DATA_GIS_CLT(type) type
161 #ifdef WXMAKINGDLL_GIS_CLU
162 # define WXDLLIMPEXP_GIS_CLU WXEXPORT
163 # define WXDLLIMPEXP_DATA_GIS_CLU(type) WXEXPORT type
164 #elif defined(WXUSINGDLL)
165 # define WXDLLIMPEXP_GIS_CLU WXIMPORT
166 # define WXDLLIMPEXP_DATA_GIS_CLU(type) WXIMPORT type
168 # define WXDLLIMPEXP_GIS_CLU
169 # define WXDLLIMPEXP_DATA_GIS_CLU(type) type
183 #ifdef WXMAKINGDLL_GIS_DS
184 # define WXDLLIMPEXP_GIS_DS WXEXPORT
185 # define WXDLLIMPEXP_DATA_GIS_DS(type) WXEXPORT type
186 #elif defined(WXUSINGDLL)
187 # define WXDLLIMPEXP_GIS_DS WXIMPORT
188 # define WXDLLIMPEXP_DATA_GIS_DS(type) WXIMPORT type
190 # define WXDLLIMPEXP_GIS_DS
191 # define WXDLLIMPEXP_DATA_GIS_DS(type) type
194 #ifdef WXMAKINGDLL_GIS_GP
195 # define WXDLLIMPEXP_GIS_GP WXEXPORT
196 # define WXDLLIMPEXP_DATA_GIS_GP(type) WXEXPORT type
197 #elif defined(WXUSINGDLL)
198 # define WXDLLIMPEXP_GIS_GP WXIMPORT
199 # define WXDLLIMPEXP_DATA_GIS_GP(type) WXIMPORT type
201 # define WXDLLIMPEXP_GIS_GP
202 # define WXDLLIMPEXP_DATA_GIS_GP(type) type
205 #ifdef WXMAKINGDLL_GIS_GPU
206 # define WXDLLIMPEXP_GIS_GPU WXEXPORT
207 # define WXDLLIMPEXP_DATA_GIS_GPU(type) WXEXPORT type
208 #elif defined(WXUSINGDLL)
209 # define WXDLLIMPEXP_GIS_GPU WXIMPORT
210 # define WXDLLIMPEXP_DATA_GIS_GPU(type) WXIMPORT type
212 # define WXDLLIMPEXP_GIS_GPU
213 # define WXDLLIMPEXP_DATA_GIS_GPU(type) type
216 #ifdef WXMAKINGDLL_GIS_RS
217 # define WXDLLIMPEXP_GIS_RS WXEXPORT
218 # define WXDLLIMPEXP_DATA_GIS_RS(type) WXEXPORT type
219 #elif defined(WXUSINGDLL)
220 # define WXDLLIMPEXP_GIS_RS WXIMPORT
221 # define WXDLLIMPEXP_DATA_GIS_RS(type) WXIMPORT type
223 # define WXDLLIMPEXP_GIS_RS
224 # define WXDLLIMPEXP_DATA_GIS_RS(type) type
227 #ifdef WXMAKINGDLL_GIS_RSU
228 # define WXDLLIMPEXP_GIS_RSU WXEXPORT
229 # define WXDLLIMPEXP_DATA_GIS_RSU(type) WXEXPORT type
230 #elif defined(WXUSINGDLL)
231 # define WXDLLIMPEXP_GIS_RSU WXIMPORT
232 # define WXDLLIMPEXP_DATA_GIS_RSU(type) WXIMPORT type
234 # define WXDLLIMPEXP_GIS_RSU
235 # define WXDLLIMPEXP_DATA_GIS_RSU(type) type
238 #ifdef WXMAKINGDLL_GIS_NET
239 # define WXDLLIMPEXP_GIS_NET WXEXPORT
240 # define WXDLLIMPEXP_DATA_GIS_NET(type) WXEXPORT type
241 #elif defined(WXUSINGDLL)
242 # define WXDLLIMPEXP_GIS_NET WXIMPORT
243 # define WXDLLIMPEXP_DATA_GIS_NET(type) WXIMPORT type
245 # define WXDLLIMPEXP_GIS_NET
246 # define WXDLLIMPEXP_DATA_GIS_NET(type) type
249 #ifdef WXMAKINGDLL_GIS_MAPU
250 # define WXDLLIMPEXP_GIS_MAPU WXEXPORT
251 # define WXDLLIMPEXP_DATA_GIS_MAPU(type) WXEXPORT type
252 #elif defined(WXUSINGDLL)
253 # define WXDLLIMPEXP_GIS_MAPU WXIMPORT
254 # define WXDLLIMPEXP_DATA_GIS_MAPU(type) WXIMPORT type
256 # define WXDLLIMPEXP_GIS_MAPU
257 # define WXDLLIMPEXP_DATA_GIS_MAPU(type) type
260 #ifdef WXMAKINGDLL_GIS_MAP
261 # define WXDLLIMPEXP_GIS_MAP WXEXPORT
262 # define WXDLLIMPEXP_DATA_GIS_MAP(type) WXEXPORT type
263 #elif defined(WXUSINGDLL)
264 # define WXDLLIMPEXP_GIS_MAP WXIMPORT
265 # define WXDLLIMPEXP_DATA_GIS_MAP(type) WXIMPORT type
267 # define WXDLLIMPEXP_GIS_MAP
268 # define WXDLLIMPEXP_DATA_GIS_MAP(type) type
271 #ifdef WXMAKINGDLL_GIS_SRVNET
272 # define WXDLLIMPEXP_GIS_SRVNET WXEXPORT
273 # define WXDLLIMPEXP_DATA_GIS_SRVNET(type) WXEXPORT type
274 #elif defined(WXUSINGDLL)
275 # define WXDLLIMPEXP_GIS_SRVNET WXIMPORT
276 # define WXDLLIMPEXP_DATA_GIS_SRVNET(type) WXIMPORT type
278 # define WXDLLIMPEXP_GIS_SRVNET
279 # define WXDLLIMPEXP_DATA_GIS_SRVNET(type) type
282 #if defined(HAVE_VISIBILITY) || (defined(__WINDOWS__) && defined(__GNUC__))
283 #define WXDLLIMPEXP_FWD_GIS_CORE
284 #define WXDLLIMPEXP_FWD_GIS_FRW
285 #define WXDLLIMPEXP_FWD_GIS_DSP
286 #define WXDLLIMPEXP_FWD_GIS_CRT
287 #define WXDLLIMPEXP_FWD_GIS_CTU
288 #define WXDLLIMPEXP_FWD_GIS_CLT
289 #define WXDLLIMPEXP_FWD_GIS_CLU
291 #define WXDLLIMPEXP_FWD_GIS_DS
292 #define WXDLLIMPEXP_FWD_GIS_GP
293 #define WXDLLIMPEXP_FWD_GIS_GPU
294 #define WXDLLIMPEXP_FWD_GIS_RS
295 #define WXDLLIMPEXP_FWD_GIS_RSU
296 #define WXDLLIMPEXP_FWD_GIS_NET
297 #define WXDLLIMPEXP_FWD_GIS_MAPU
298 #define WXDLLIMPEXP_FWD_GIS_MAP
299 #define WXDLLIMPEXP_FWD_GIS_SRVNET
301 #define WXDLLIMPEXP_FWD_GIS_CORE WXDLLIMPEXP_GIS_CORE
302 #define WXDLLIMPEXP_FWD_GIS_FRW WXDLLIMPEXP_GIS_FRW
303 #define WXDLLIMPEXP_FWD_GIS_DSP WXDLLIMPEXP_GIS_DSP
304 #define WXDLLIMPEXP_FWD_GIS_CRT WXDLLIMPEXP_GIS_CRT
305 #define WXDLLIMPEXP_FWD_GIS_CTU WXDLLIMPEXP_GIS_CTU
306 #define WXDLLIMPEXP_FWD_GIS_CLT WXDLLIMPEXP_GIS_CLT
307 #define WXDLLIMPEXP_FWD_GIS_CLU WXDLLIMPEXP_GIS_CLU
309 #define WXDLLIMPEXP_FWD_GIS_DS WXDLLIMPEXP_GIS_DS
310 #define WXDLLIMPEXP_FWD_GIS_GP WXDLLIMPEXP_GIS_GP
311 #define WXDLLIMPEXP_FWD_GIS_GPU WXDLLIMPEXP_GIS_GPU
312 #define WXDLLIMPEXP_FWD_GIS_RS WXDLLIMPEXP_GIS_RS
313 #define WXDLLIMPEXP_FWD_GIS_RSU WXDLLIMPEXP_GIS_RSU
314 #define WXDLLIMPEXP_FWD_GIS_NET WXDLLIMPEXP_GIS_NET
315 #define WXDLLIMPEXP_FWD_GIS_MAPU WXDLLIMPEXP_GIS_MAPU
316 #define WXDLLIMPEXP_FWD_GIS_MAP WXDLLIMPEXP_GIS_MAP
317 #define WXDLLIMPEXP_FWD_GIS_SRVNET WXDLLIMPEXP_GIS_SRVNET
325 #define DEF wxT("~def~")
326 #define NON wxT("~non~")
327 #define ERR wxT("~err~")
328 #define NONAME _("no name")
329 #define CACHE_SIZE 3000
330 #define EPSILON std::numeric_limits<double>::epsilon() * 16
331 #define DELTA (EPSILON * 16)
333 #define PI 3.1415926535897932384626433832795
334 #define DOUBLEPI 6.283185307179586476925286766558
335 #define PIDEG 0.017453292519943295769236907684886
336 #define DEGPI 57.295779513082320876798155633941
347 #if defined(__VISUALC__) && (__VISUALC__ <= 1200)
348 #ifdef WXMAKINGDLL_BASE
349 #define WXDLLIMPEXP_TEMPLATE_INSTANCE_BASE(decl) \
350 template class WXDLLIMPEXP_BASE decl;
351 #define WXDLLIMPEXP_TEMPLATE_INSTANCE_CORE(decl) \
352 template class WXDLLIMPEXP_CORE decl;
360 #pragma warning(disable:4231)
362 #define WXDLLIMPEXP_TEMPLATE_INSTANCE_BASE(decl) \
363 extern template class WXDLLIMPEXP_BASE decl;
364 #define WXDLLIMPEXP_TEMPLATE_INSTANCE_CORE(decl) \
365 extern template class WXDLLIMPEXP_CORE decl;
368 #define WXDLLIMPEXP_TEMPLATE_INSTANCE_BASE(decl)
369 #define WXDLLIMPEXP_TEMPLATE_INSTANCE_CORE(decl)
372 #include "wxgisdefs.h"