OpenCPN Partial API docs
Loading...
Searching...
No Matches
api_shim.cpp
1/***************************************************************************
2 *
3 * Project: OpenCPN
4 * Purpose: Plugin API shim providing linkage but no functionality.
5 * Author: Alec Leamas
6 *
7 ***************************************************************************
8 * Copyright (C) 2021 Alec Leamas *
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 * This program is distributed in the hope that it will be useful, *
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
18 * GNU General Public License for more details. *
19 * *
20 * You should have received a copy of the GNU General Public License *
21 * along with this program; if not, write to the *
22 * Free Software Foundation, Inc., *
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
24 **************************************************************************/
25#ifdef __WINDOWS__
26#include <windows.h>
27#endif
28
29#include <wx/wx.h>
30#include <wx/aui/framemanager.h>
31#include <wx/bitmap.h>
32#include <wx/fileconf.h>
33#include <wx/font.h>
34#include <wx/string.h>
35#include <wx/window.h>
36
37#include "config.h"
38#include "ocpn_plugin.h"
39#include "base_platform.h"
40
41extern BasePlatform* g_BasePlatform;
42
43typedef unsigned short OCushort;
44
45class GLUtesselator;
46extern "C" {
47typedef void (* _GLUfuncptr)();
48DECL_EXP GLUtesselator* gluNewTess(void) { return 0; }
49DECL_EXP void gluTessProperty(GLUtesselator* tess, unsigned which, double data) {}
50DECL_EXP void gluTessEndPolygon(GLUtesselator* tess) {}
51DECL_EXP void gluTessBeginPolygon(GLUtesselator* tess, void* data) {}
52DECL_EXP void gluTessNormal(GLUtesselator* tess, double X, double Y, double Z) {}
53DECL_EXP void gluTessVertex(GLUtesselator* tess, double *location, void* data) {}
54DECL_EXP void gluTessCallback(GLUtesselator* tess, unsigned which, _GLUfuncptr CallBackFunc) {}
55DECL_EXP const unsigned char* gluErrorString(unsigned error) { return reinterpret_cast<const unsigned char*>(""); }
56DECL_EXP void gluDeleteTess(GLUtesselator* tess) {}
57DECL_EXP void gluTessBeginContour(GLUtesselator* tess) {}
58DECL_EXP void gluTessEndContour(GLUtesselator* tess) {}
59DECL_EXP void glLineWidth(float width) {}
60
61DECL_EXP void glClearIndex( float c ) {}
62
63DECL_EXP void glClearColor( unsigned red, unsigned green, unsigned blue, unsigned alpha ) {}
64
65DECL_EXP void glClear( int mask ) {}
66
67DECL_EXP void glIndexMask( int mask ) {}
68
69DECL_EXP void glColorMask( bool red, bool green, bool blue, bool alpha ) {}
70
71DECL_EXP void glAlphaFunc( unsigned func, unsigned ref ) {}
72
73DECL_EXP void glBlendFunc( unsigned sfactor, unsigned dfactor ) {}
74
75DECL_EXP void glLogicOp( unsigned opcode ) {}
76
77DECL_EXP void glCullFace( unsigned mode ) {}
78
79DECL_EXP void glFrontFace( unsigned mode ) {}
80
81DECL_EXP void glPointSize( float size ) {}
82
83DECL_EXP void glLineStipple( int factor, OCushort pattern ) {}
84
85DECL_EXP void glPolygonMode( unsigned face, unsigned mode ) {}
86
87DECL_EXP void glPolygonOffset( float factor, float units ) {}
88
89DECL_EXP void glPolygonStipple( const unsigned char *mask ) {}
90
91DECL_EXP void glGetPolygonStipple( unsigned char *mask ) {}
92
93DECL_EXP void glEdgeFlag( bool flag ) {}
94
95DECL_EXP void glEdgeFlagv( const bool *flag ) {}
96
97DECL_EXP void glScissor( int x, int y, size_t width, size_t height) {}
98
99DECL_EXP void glClipPlane( unsigned plane, const double *equation ) {}
100
101DECL_EXP void glGetClipPlane( unsigned plane, double *equation ) {}
102
103DECL_EXP void glDrawBuffer( unsigned mode ) {}
104
105DECL_EXP void glReadBuffer( unsigned mode ) {}
106
107DECL_EXP void glEnable( unsigned cap ) {}
108
109DECL_EXP void glDisable( unsigned cap ) {}
110
111DECL_EXP bool glIsEnabled( unsigned cap ) { return true; }
112
113
114DECL_EXP void glEnableClientState( unsigned cap ) {} /* 1.1 */
115
116DECL_EXP void glDisableClientState( unsigned cap ) {} /* 1.1 */
117
118
119DECL_EXP void glGetBooleanv( unsigned pname, bool *params ) {}
120
121DECL_EXP void glGetDoublev( unsigned pname, double *params ) {}
122
123DECL_EXP void glGetFloatv( unsigned pname, float *params ) {}
124
125DECL_EXP void glGetIntegerv( unsigned pname, int *params ) {}
126
127
128DECL_EXP void glPushAttrib( int mask ) {}
129
130DECL_EXP void glPopAttrib( void ) {}
131
132
133DECL_EXP void glPushClientAttrib( int mask ) {} /* 1.1 */
134
135DECL_EXP void glPopClientAttrib( void ) {} /* 1.1 */
136
137
138DECL_EXP int glRenderMode( unsigned mode ) { return 0; }
139
140DECL_EXP unsigned glGetError( void ) { return 0; }
141
142DECL_EXP const unsigned char * glGetString( unsigned name ) { return reinterpret_cast<const unsigned char*>(""); }
143
144DECL_EXP void glFinish( void ) {}
145
146DECL_EXP void glFlush( void ) {}
147
148DECL_EXP void glHint( unsigned target, unsigned mode ) {}
149
150
151/*
152 * Depth Buffer
153 */
154
155DECL_EXP void glClearDepth( unsigned depth ) {}
156
157DECL_EXP void glDepthFunc( unsigned func ) {}
158
159DECL_EXP void glDepthMask( bool flag ) {}
160
161DECL_EXP void glDepthRange( unsigned near_val, unsigned far_val ) {}
162
163
164/*
165 * Accumulation Buffer
166 */
167
168DECL_EXP void glClearAccum( float red, float green, float blue, float alpha ) {}
169
170DECL_EXP void glAccum( unsigned op, float value ) {}
171
172
173/*
174 * Transformation
175 */
176
177DECL_EXP void glMatrixMode( unsigned mode ) {}
178
179DECL_EXP void glOrtho( double left, double right,
180 double bottom, double top,
181 double near_val, double far_val ) {}
182
183DECL_EXP void glFrustum( double left, double right,
184 double bottom, double top,
185 double near_val, double far_val ) {}
186
187DECL_EXP void glViewport( int x, int y,
188 size_t width, size_t height ) {}
189
190DECL_EXP void glPushMatrix( void ) {}
191
192DECL_EXP void glPopMatrix( void ) {}
193
194DECL_EXP void glLoadIdentity( void ) {}
195
196DECL_EXP void glLoadMatrixd( const double *m ) {}
197DECL_EXP void glLoadMatrixf( const float *m ) {}
198
199DECL_EXP void glMultMatrixd( const double *m ) {}
200DECL_EXP void glMultMatrixf( const float *m ) {}
201
202DECL_EXP void glRotated( double angle,
203 double x, double y, double z ) {}
204DECL_EXP void glRotatef( float angle,
205 float x, float y, float z ) {}
206
207DECL_EXP void glScaled( double x, double y, double z ) {}
208DECL_EXP void glScalef( float x, float y, float z ) {}
209
210DECL_EXP void glTranslated( double x, double y, double z ) {}
211DECL_EXP void glTranslatef( float x, float y, float z ) {}
212
213
214/*
215 * Display Lists
216 */
217
218DECL_EXP bool glIsList( int list ) { return true; }
219
220DECL_EXP void glDeleteLists( int list, size_t range ) {}
221
222DECL_EXP int glGenLists( size_t range ) { return 0; }
223
224DECL_EXP void glNewList( int list, unsigned mode ) {}
225
226DECL_EXP void glEndList( void ) {}
227
228DECL_EXP void glCallList( int list ) {}
229
230DECL_EXP void glCallLists( size_t n, unsigned type,
231 const void *lists ) {}
232
233DECL_EXP void glListBase( int base ) {}
234
235
236/*
237 * Drawing Functions
238 */
239
240DECL_EXP void glBegin( unsigned mode ) {}
241
242DECL_EXP void glEnd( void ) {}
243
244
245DECL_EXP void glVertex2d( double x, double y ) {}
246DECL_EXP void glVertex2f( float x, float y ) {}
247DECL_EXP void glVertex2i( int x, int y ) {}
248DECL_EXP void glVertex2s( short x, short y ) {}
249
250DECL_EXP void glVertex3d( double x, double y, double z ) {}
251DECL_EXP void glVertex3f( float x, float y, float z ) {}
252DECL_EXP void glVertex3i( int x, int y, int z ) {}
253DECL_EXP void glVertex3s( short x, short y, short z ) {}
254
255DECL_EXP void glVertex4d( double x, double y, double z, double w ) {}
256DECL_EXP void glVertex4f( float x, float y, float z, float w ) {}
257DECL_EXP void glVertex4i( int x, int y, int z, int w ) {}
258DECL_EXP void glVertex4s( short x, short y, short z, short w ) {}
259
260DECL_EXP void glVertex2dv( const double *v ) {}
261DECL_EXP void glVertex2fv( const float *v ) {}
262DECL_EXP void glVertex2iv( const int *v ) {}
263DECL_EXP void glVertex2sv( const short *v ) {}
264
265DECL_EXP void glVertex3dv( const double *v ) {}
266DECL_EXP void glVertex3fv( const float *v ) {}
267DECL_EXP void glVertex3iv( const int *v ) {}
268DECL_EXP void glVertex3sv( const short *v ) {}
269
270DECL_EXP void glVertex4dv( const double *v ) {}
271DECL_EXP void glVertex4fv( const float *v ) {}
272DECL_EXP void glVertex4iv( const int *v ) {}
273DECL_EXP void glVertex4sv( const short *v ) {}
274
275
276DECL_EXP void glNormal3b( unsigned char nx, unsigned char ny, unsigned char nz ) {}
277DECL_EXP void glNormal3d( double nx, double ny, double nz ) {}
278DECL_EXP void glNormal3f( float nx, float ny, float nz ) {}
279DECL_EXP void glNormal3i( int nx, int ny, int nz ) {}
280DECL_EXP void glNormal3s( short nx, short ny, short nz ) {}
281
282DECL_EXP void glNormal3bv( const unsigned char *v ) {}
283DECL_EXP void glNormal3dv( const double *v ) {}
284DECL_EXP void glNormal3fv( const float *v ) {}
285DECL_EXP void glNormal3iv( const int *v ) {}
286DECL_EXP void glNormal3sv( const short *v ) {}
287
288
289DECL_EXP void glIndexd( double c ) {}
290DECL_EXP void glIndexf( float c ) {}
291DECL_EXP void glIndexi( int c ) {}
292DECL_EXP void glIndexs( short c ) {}
293DECL_EXP void glIndexub( unsigned char c ) {} /* 1.1 */
294
295DECL_EXP void glIndexdv( const double *c ) {}
296DECL_EXP void glIndexfv( const float *c ) {}
297DECL_EXP void glIndexiv( const int *c ) {}
298DECL_EXP void glIndexsv( const short *c ) {}
299DECL_EXP void glIndexubv( const unsigned char *c ) {} /* 1.1 */
300
301DECL_EXP void glColor3b( unsigned char red, unsigned char green, unsigned char blue ) {}
302DECL_EXP void glColor3d( double red, double green, double blue ) {}
303DECL_EXP void glColor3f( float red, float green, float blue ) {}
304DECL_EXP void glColor3i( int red, int green, int blue ) {}
305DECL_EXP void glColor3s( short red, short green, short blue ) {}
306DECL_EXP void glColor3ub( unsigned char red, unsigned char green, unsigned char blue ) {}
307DECL_EXP void glColor3ui( int red, int green, int blue ) {}
308DECL_EXP void glColor3us( OCushort red, OCushort green, OCushort blue ) {}
309
310DECL_EXP void glColor4b( unsigned char red, unsigned char green,
311 unsigned char blue, unsigned char alpha ) {}
312DECL_EXP void glColor4d( double red, double green,
313 double blue, double alpha ) {}
314DECL_EXP void glColor4f( float red, float green,
315 float blue, float alpha ) {}
316DECL_EXP void glColor4i( int red, int green,
317 int blue, int alpha ) {}
318DECL_EXP void glColor4s( short red, short green,
319 short blue, short alpha ) {}
320DECL_EXP void glColor4ub( unsigned char red, unsigned char green,
321 unsigned char blue, unsigned char alpha ) {}
322DECL_EXP void glColor4ui( int red, int green,
323 int blue, int alpha ) {}
324DECL_EXP void glColor4us( OCushort red, OCushort green,
325 OCushort blue, OCushort alpha ) {}
326
327
328DECL_EXP void glColor3bv( const unsigned char *v ) {}
329DECL_EXP void glColor3dv( const double *v ) {}
330DECL_EXP void glColor3fv( const float *v ) {}
331DECL_EXP void glColor3iv( const int *v ) {}
332DECL_EXP void glColor3sv( const short *v ) {}
333DECL_EXP void glColor3ubv( const unsigned char *v ) {}
334DECL_EXP void glColor3uiv( const int *v ) {}
335DECL_EXP void glColor3usv( const OCushort *v ) {}
336
337DECL_EXP void glColor4bv( const unsigned char *v ) {}
338DECL_EXP void glColor4dv( const double *v ) {}
339DECL_EXP void glColor4fv( const float *v ) {}
340DECL_EXP void glColor4iv( const int *v ) {}
341DECL_EXP void glColor4sv( const short *v ) {}
342DECL_EXP void glColor4ubv( const unsigned char *v ) {}
343DECL_EXP void glColor4uiv( const int *v ) {}
344DECL_EXP void glColor4usv( const OCushort *v ) {}
345
346
347DECL_EXP void glTexCoord1d( double s ) {}
348DECL_EXP void glTexCoord1f( float s ) {}
349DECL_EXP void glTexCoord1i( int s ) {}
350DECL_EXP void glTexCoord1s( short s ) {}
351
352DECL_EXP void glTexCoord2d( double s, double t ) {}
353DECL_EXP void glTexCoord2f( float s, float t ) {}
354DECL_EXP void glTexCoord2i( int s, int t ) {}
355DECL_EXP void glTexCoord2s( short s, short t ) {}
356
357DECL_EXP void glTexCoord3d( double s, double t, double r ) {}
358DECL_EXP void glTexCoord3f( float s, float t, float r ) {}
359DECL_EXP void glTexCoord3i( int s, int t, int r ) {}
360DECL_EXP void glTexCoord3s( short s, short t, short r ) {}
361
362DECL_EXP void glTexCoord4d( double s, double t, double r, double q ) {}
363DECL_EXP void glTexCoord4f( float s, float t, float r, float q ) {}
364DECL_EXP void glTexCoord4i( int s, int t, int r, int q ) {}
365DECL_EXP void glTexCoord4s( short s, short t, short r, short q ) {}
366
367DECL_EXP void glTexCoord1dv( const double *v ) {}
368DECL_EXP void glTexCoord1fv( const float *v ) {}
369DECL_EXP void glTexCoord1iv( const int *v ) {}
370DECL_EXP void glTexCoord1sv( const short *v ) {}
371
372DECL_EXP void glTexCoord2dv( const double *v ) {}
373DECL_EXP void glTexCoord2fv( const float *v ) {}
374DECL_EXP void glTexCoord2iv( const int *v ) {}
375DECL_EXP void glTexCoord2sv( const short *v ) {}
376
377DECL_EXP void glTexCoord3dv( const double *v ) {}
378DECL_EXP void glTexCoord3fv( const float *v ) {}
379DECL_EXP void glTexCoord3iv( const int *v ) {}
380DECL_EXP void glTexCoord3sv( const short *v ) {}
381
382DECL_EXP void glTexCoord4dv( const double *v ) {}
383DECL_EXP void glTexCoord4fv( const float *v ) {}
384DECL_EXP void glTexCoord4iv( const int *v ) {}
385DECL_EXP void glTexCoord4sv( const short *v ) {}
386
387
388DECL_EXP void glRasterPos2d( double x, double y ) {}
389DECL_EXP void glRasterPos2f( float x, float y ) {}
390DECL_EXP void glRasterPos2i( int x, int y ) {}
391DECL_EXP void glRasterPos2s( short x, short y ) {}
392
393DECL_EXP void glRasterPos3d( double x, double y, double z ) {}
394DECL_EXP void glRasterPos3f( float x, float y, float z ) {}
395DECL_EXP void glRasterPos3i( int x, int y, int z ) {}
396DECL_EXP void glRasterPos3s( short x, short y, short z ) {}
397
398DECL_EXP void glRasterPos4d( double x, double y, double z, double w ) {}
399DECL_EXP void glRasterPos4f( float x, float y, float z, float w ) {}
400DECL_EXP void glRasterPos4i( int x, int y, int z, int w ) {}
401DECL_EXP void glRasterPos4s( short x, short y, short z, short w ) {}
402
403DECL_EXP void glRasterPos2dv( const double *v ) {}
404DECL_EXP void glRasterPos2fv( const float *v ) {}
405DECL_EXP void glRasterPos2iv( const int *v ) {}
406DECL_EXP void glRasterPos2sv( const short *v ) {}
407
408DECL_EXP void glRasterPos3dv( const double *v ) {}
409DECL_EXP void glRasterPos3fv( const float *v ) {}
410DECL_EXP void glRasterPos3iv( const int *v ) {}
411DECL_EXP void glRasterPos3sv( const short *v ) {}
412
413DECL_EXP void glRasterPos4dv( const double *v ) {}
414DECL_EXP void glRasterPos4fv( const float *v ) {}
415DECL_EXP void glRasterPos4iv( const int *v ) {}
416DECL_EXP void glRasterPos4sv( const short *v ) {}
417
418
419DECL_EXP void glRectd( double x1, double y1, double x2, double y2 ) {}
420DECL_EXP void glRectf( float x1, float y1, float x2, float y2 ) {}
421DECL_EXP void glRecti( int x1, int y1, int x2, int y2 ) {}
422DECL_EXP void glRects( short x1, short y1, short x2, short y2 ) {}
423
424
425DECL_EXP void glRectdv( const double *v1, const double *v2 ) {}
426DECL_EXP void glRectfv( const float *v1, const float *v2 ) {}
427DECL_EXP void glRectiv( const int *v1, const int *v2 ) {}
428DECL_EXP void glRectsv( const short *v1, const short *v2 ) {}
429
430
431DECL_EXP void glVertexPointer( int size, unsigned type,
432 size_t stride, const void *ptr ){}
433
434DECL_EXP void glNormalPointer( unsigned type, size_t stride,
435 const void *ptr ){}
436
437DECL_EXP void glColorPointer( int size, unsigned type,
438 size_t stride, const void *ptr ){}
439
440DECL_EXP void glIndexPointer( unsigned type, size_t stride,
441 const void *ptr ){}
442
443DECL_EXP void glTexCoordPointer( int size, unsigned type,
444 size_t stride, const void *ptr ){}
445
446DECL_EXP void glEdgeFlagPointer( size_t stride, const void *ptr ){}
447
448DECL_EXP void glGetPointerv( unsigned pname, void **params ){}
449
450DECL_EXP void glArrayElement( int i ){}
451
452DECL_EXP void glDrawArrays( unsigned mode, int first, size_t count ){}
453
454DECL_EXP void glDrawElements( unsigned mode, size_t count,
455 unsigned type, const void *indices ){}
456
457DECL_EXP void glInterleavedArrays( unsigned format, size_t stride,
458 const void *pointer ){}
459
460/*
461 * Lighting
462 */
463
464DECL_EXP void glShadeModel( unsigned mode ){}
465
466DECL_EXP void glLightf( unsigned light, unsigned pname, float param ){}
467DECL_EXP void glLighti( unsigned light, unsigned pname, int param ){}
468DECL_EXP void glLightfv( unsigned light, unsigned pname,
469 const float *params ){}
470DECL_EXP void glLightiv( unsigned light, unsigned pname,
471 const int *params ){}
472
473DECL_EXP void glGetLightfv( unsigned light, unsigned pname,
474 float *params ){}
475DECL_EXP void glGetLightiv( unsigned light, unsigned pname,
476 int *params ){}
477
478DECL_EXP void glLightModelf( unsigned pname, float param ){}
479DECL_EXP void glLightModeli( unsigned pname, int param ){}
480DECL_EXP void glLightModelfv( unsigned pname, const float *params ){}
481DECL_EXP void glLightModeliv( unsigned pname, const int *params ){}
482
483DECL_EXP void glMaterialf( unsigned face, unsigned pname, float param ){}
484DECL_EXP void glMateriali( unsigned face, unsigned pname, int param ){}
485DECL_EXP void glMaterialfv( unsigned face, unsigned pname, const float *params ){}
486DECL_EXP void glMaterialiv( unsigned face, unsigned pname, const int *params ){}
487
488DECL_EXP void glGetMaterialfv( unsigned face, unsigned pname, float *params ){}
489DECL_EXP void glGetMaterialiv( unsigned face, unsigned pname, int *params ){}
490
491DECL_EXP void glColorMaterial( unsigned face, unsigned mode ){}
492
493
494/*
495 * Raster functions
496 */
497
498DECL_EXP void glPixelZoom( float xfactor, float yfactor ){}
499
500DECL_EXP void glPixelStoref( unsigned pname, float param ){}
501DECL_EXP void glPixelStorei( unsigned pname, int param ){}
502
503DECL_EXP void glPixelTransferf( unsigned pname, float param ){}
504DECL_EXP void glPixelTransferi( unsigned pname, int param ){}
505
506DECL_EXP void glPixelMapfv( unsigned map, size_t mapsize,
507 const float *values ){}
508DECL_EXP void glPixelMapuiv( unsigned map, size_t mapsize,
509 const unsigned *values ){}
510DECL_EXP void glPixelMapusv( unsigned map, size_t mapsize,
511 const OCushort *values ){}
512
513DECL_EXP void glGetPixelMapfv( unsigned map, float *values ){}
514DECL_EXP void glGetPixelMapuiv( unsigned map, unsigned *values ){}
515DECL_EXP void glGetPixelMapusv( unsigned map, OCushort *values ){}
516
517DECL_EXP void glBitmap( size_t width, size_t height,
518 float xorig, float yorig,
519 float xmove, float ymove,
520 const unsigned char *bitmap ){}
521
522DECL_EXP void glReadPixels( int x, int y,
523 size_t width, size_t height,
524 unsigned format, unsigned type,
525 void *pixels ){}
526
527DECL_EXP void glDrawPixels( size_t width, size_t height,
528 unsigned format, unsigned type,
529 const void *pixels ){}
530
531DECL_EXP void glCopyPixels( int x, int y,
532 size_t width, size_t height,
533 unsigned type ){}
534
535/*
536 * Stenciling
537 */
538
539DECL_EXP void glStencilFunc( unsigned func, int ref, unsigned mask ){}
540
541DECL_EXP void glStencilMask( unsigned mask ){}
542
543DECL_EXP void glStencilOp( unsigned fail, unsigned zfail, unsigned zpass ){}
544
545DECL_EXP void glClearStencil( int s ){}
546
547
548
549/*
550 * Texture mapping
551 */
552
553DECL_EXP void glTexGend( unsigned coord, unsigned pname, double param ){}
554DECL_EXP void glTexGenf( unsigned coord, unsigned pname, float param ){}
555DECL_EXP void glTexGeni( unsigned coord, unsigned pname, int param ){}
556
557DECL_EXP void glTexGendv( unsigned coord, unsigned pname, const double *params ){}
558DECL_EXP void glTexGenfv( unsigned coord, unsigned pname, const float *params ){}
559DECL_EXP void glTexGeniv( unsigned coord, unsigned pname, const int *params ){}
560
561DECL_EXP void glGetTexGendv( unsigned coord, unsigned pname, double *params ){}
562DECL_EXP void glGetTexGenfv( unsigned coord, unsigned pname, float *params ){}
563DECL_EXP void glGetTexGeniv( unsigned coord, unsigned pname, int *params ){}
564
565
566DECL_EXP void glTexEnvf( unsigned target, unsigned pname, float param ){}
567DECL_EXP void glTexEnvi( unsigned target, unsigned pname, int param ){}
568
569DECL_EXP void glTexEnvfv( unsigned target, unsigned pname, const float *params ){}
570DECL_EXP void glTexEnviv( unsigned target, unsigned pname, const int *params ){}
571
572DECL_EXP void glGetTexEnvfv( unsigned target, unsigned pname, float *params ){}
573DECL_EXP void glGetTexEnviv( unsigned target, unsigned pname, int *params ){}
574
575
576DECL_EXP void glTexParameterf( unsigned target, unsigned pname, float param ){}
577DECL_EXP void glTexParameteri( unsigned target, unsigned pname, int param ){}
578
579DECL_EXP void glTexParameterfv( unsigned target, unsigned pname,
580 const float *params ){}
581DECL_EXP void glTexParameteriv( unsigned target, unsigned pname,
582 const int *params ){}
583
584DECL_EXP void glGetTexParameterfv( unsigned target,
585 unsigned pname, float *params){}
586DECL_EXP void glGetTexParameteriv( unsigned target,
587 unsigned pname, int *params ){}
588
589DECL_EXP void glGetTexLevelParameterfv( unsigned target, int level,
590 unsigned pname, float *params ){}
591DECL_EXP void glGetTexLevelParameteriv( unsigned target, int level,
592 unsigned pname, int *params ){}
593
594
595DECL_EXP void glTexImage1D( unsigned target, int level,
596 int internalFormat,
597 size_t width, int border,
598 unsigned format, unsigned type,
599 const void *pixels ){}
600
601DECL_EXP void glTexImage2D( unsigned target, int level,
602 int internalFormat,
603 size_t width, size_t height,
604 int border, unsigned format, unsigned type,
605 const void *pixels ){}
606
607DECL_EXP void glGetTexImage( unsigned target, int level,
608 unsigned format, unsigned type,
609 void *pixels ){}
610
611
612/* 1.1 functions */
613
614DECL_EXP void glGenTextures( size_t n, unsigned *textures ){}
615
616DECL_EXP void glDeleteTextures( size_t n, const unsigned *textures){}
617
618DECL_EXP void glBindTexture( unsigned target, unsigned texture ){}
619
620DECL_EXP void glPrioritizeTextures( size_t n,
621 const unsigned *textures,
622 const unsigned *priorities ){}
623
624DECL_EXP bool glAreTexturesResident( size_t n,
625 const unsigned *textures,
626 bool *residences ){ return true; }
627
628DECL_EXP bool glIsTexture( unsigned texture ){ return true; }
629
630
631DECL_EXP void glTexSubImage1D( unsigned target, int level,
632 int xoffset,
633 size_t width, unsigned format,
634 unsigned type, const void *pixels ){}
635
636
637DECL_EXP void glTexSubImage2D( unsigned target, int level,
638 int xoffset, int yoffset,
639 size_t width, size_t height,
640 unsigned format, unsigned type,
641 const void *pixels ){}
642
643
644DECL_EXP void glCopyTexImage1D( unsigned target, int level,
645 unsigned internalformat,
646 int x, int y,
647 size_t width, int border ){}
648
649
650DECL_EXP void glCopyTexImage2D( unsigned target, int level,
651 unsigned internalformat,
652 int x, int y,
653 size_t width, size_t height,
654 int border ){}
655
656
657DECL_EXP void glCopyTexSubImage1D( unsigned target, int level,
658 int xoffset, int x, int y,
659 size_t width ){}
660
661
662DECL_EXP void glCopyTexSubImage2D( unsigned target, int level,
663 int xoffset, int yoffset,
664 int x, int y,
665 size_t width, size_t height ){}
666
667
668/*
669 * Evaluators
670 */
671
672DECL_EXP void glMap1d( unsigned target, double u1, double u2,
673 int stride,
674 int order, const double *points ){}
675DECL_EXP void glMap1f( unsigned target, float u1, float u2,
676 int stride,
677 int order, const float *points ){}
678
679DECL_EXP void glMap2d( unsigned target,
680 double u1, double u2, int ustride, int uorder,
681 double v1, double v2, int vstride, int vorder,
682 const double *points ){}
683DECL_EXP void glMap2f( unsigned target,
684 float u1, float u2, int ustride, int uorder,
685 float v1, float v2, int vstride, int vorder,
686 const float *points ){}
687
688DECL_EXP void glGetMapdv( unsigned target, unsigned query, double *v ){}
689DECL_EXP void glGetMapfv( unsigned target, unsigned query, float *v ){}
690DECL_EXP void glGetMapiv( unsigned target, unsigned query, int *v ){}
691
692DECL_EXP void glEvalCoord1d( double u ){}
693DECL_EXP void glEvalCoord1f( float u ){}
694
695DECL_EXP void glEvalCoord1dv( const double *u ){}
696DECL_EXP void glEvalCoord1fv( const float *u ){}
697
698DECL_EXP void glEvalCoord2d( double u, double v ){}
699DECL_EXP void glEvalCoord2f( float u, float v ){}
700
701DECL_EXP void glEvalCoord2dv( const double *u ){}
702DECL_EXP void glEvalCoord2fv( const float *u ){}
703
704DECL_EXP void glMapGrid1d( int un, double u1, double u2 ){}
705DECL_EXP void glMapGrid1f( int un, float u1, float u2 ){}
706
707DECL_EXP void glMapGrid2d( int un, double u1, double u2,
708 int vn, double v1, double v2 ){}
709DECL_EXP void glMapGrid2f( int un, float u1, float u2,
710 int vn, float v1, float v2 ){}
711
712DECL_EXP void glEvalPoint1( int i ){}
713
714DECL_EXP void glEvalPoint2( int i, int j ){}
715
716DECL_EXP void glEvalMesh1( unsigned mode, int i1, int i2 ){}
717
718DECL_EXP void glEvalMesh2( unsigned mode, int i1, int i2, int j1, int j2 ){}
719
720
721/*
722 * Fog
723 */
724
725DECL_EXP void glFogf( unsigned pname, float param ){}
726
727DECL_EXP void glFogi( unsigned pname, int param ){}
728
729DECL_EXP void glFogfv( unsigned pname, const float *params ){}
730
731DECL_EXP void glFogiv( unsigned pname, const int *params ){}
732
733
734/*
735 * Selection and Feedback
736 */
737
738DECL_EXP void glFeedbackBuffer( size_t size, unsigned type, float *buffer ){}
739
740DECL_EXP void glPassThrough( float token ){}
741
742DECL_EXP void glSelectBuffer( size_t size, unsigned *buffer ){}
743
744DECL_EXP void glInitNames( void ){}
745
746DECL_EXP void glLoadName( unsigned name ){}
747
748DECL_EXP void glPushName( unsigned name ){}
749
750DECL_EXP void glPopName( void ){}
751
752
753
754/*
755 * OpenGL 1.2
756 */
757
758DECL_EXP void glDrawRangeElements( unsigned mode, unsigned start,
759 unsigned end, size_t count, unsigned type, const void *indices ){}
760
761DECL_EXP void glTexImage3D( unsigned target, int level,
762 int internalFormat,
763 size_t width, size_t height,
764 size_t depth, int border,
765 unsigned format, unsigned type,
766 const void *pixels ){}
767
768DECL_EXP void glTexSubImage3D( unsigned target, int level,
769 int xoffset, int yoffset,
770 int zoffset, size_t width,
771 size_t height, size_t depth,
772 unsigned format,
773 unsigned type, const void *pixels){}
774
775DECL_EXP void glCopyTexSubImage3D( unsigned target, int level,
776 int xoffset, int yoffset,
777 int zoffset, int x,
778 int y, size_t width,
779 size_t height ){}
780
781
782
783DECL_EXP void glColorTable( unsigned target, unsigned internalformat,
784 size_t width, unsigned format,
785 unsigned type, const void *table ){}
786
787DECL_EXP void glColorSubTable( unsigned target,
788 size_t start, size_t count,
789 unsigned format, unsigned type,
790 const void *data ){}
791
792DECL_EXP void glColorTableParameteriv(unsigned target, unsigned pname,
793 const int *params){}
794
795DECL_EXP void glColorTableParameterfv(unsigned target, unsigned pname,
796 const float *params){}
797
798DECL_EXP void glCopyColorSubTable( unsigned target, size_t start,
799 int x, int y, size_t width ){}
800
801DECL_EXP void glCopyColorTable( unsigned target, unsigned internalformat,
802 int x, int y, size_t width ){}
803
804DECL_EXP void glGetColorTable( unsigned target, unsigned format,
805 unsigned type, void *table ){}
806
807DECL_EXP void glGetColorTableParameterfv( unsigned target, unsigned pname,
808 float *params ){}
809
810DECL_EXP void glGetColorTableParameteriv( unsigned target, unsigned pname,
811 int *params ){}
812
813DECL_EXP void glBlendEquation( unsigned mode ){}
814
815DECL_EXP void glBlendColor( unsigned red, unsigned green,
816 unsigned blue, unsigned alpha ){}
817
818DECL_EXP void glHistogram( unsigned target, size_t width,
819 unsigned internalformat, bool sink ){}
820
821DECL_EXP void glResetHistogram( unsigned target ){}
822
823DECL_EXP void glGetHistogram( unsigned target, bool reset,
824 unsigned format, unsigned type,
825 void *values ){}
826
827DECL_EXP void glGetHistogramParameterfv( unsigned target, unsigned pname,
828 float *params ){}
829
830DECL_EXP void glGetHistogramParameteriv( unsigned target, unsigned pname,
831 int *params ){}
832
833DECL_EXP void glMinmax( unsigned target, unsigned internalformat,
834 bool sink ){}
835
836DECL_EXP void glResetMinmax( unsigned target ){}
837
838DECL_EXP void glGetMinmax( unsigned target, bool reset,
839 unsigned format, unsigned types,
840 void *values ){}
841
842DECL_EXP void glGetMinmaxParameterfv( unsigned target, unsigned pname,
843 float *params ){}
844
845DECL_EXP void glGetMinmaxParameteriv( unsigned target, unsigned pname,
846 int *params ){}
847
848DECL_EXP void glConvolutionFilter1D( unsigned target,
849 unsigned internalformat, size_t width, unsigned format, unsigned type,
850 const void *image ){}
851
852DECL_EXP void glConvolutionFilter2D( unsigned target,
853 unsigned internalformat, size_t width, size_t height, unsigned format,
854 unsigned type, const void *image ){}
855
856DECL_EXP void glConvolutionParameterf( unsigned target, unsigned pname,
857 float params ){}
858
859DECL_EXP void glConvolutionParameterfv( unsigned target, unsigned pname,
860 const float *params ){}
861
862DECL_EXP void glConvolutionParameteri( unsigned target, unsigned pname,
863 int params ){}
864
865DECL_EXP void glConvolutionParameteriv( unsigned target, unsigned pname,
866 const int *params ){}
867
868DECL_EXP void glCopyConvolutionFilter1D( unsigned target,
869 unsigned internalformat, int x, int y, size_t width ){}
870
871DECL_EXP void glCopyConvolutionFilter2D( unsigned target,
872 unsigned internalformat, int x, int y, size_t width,
873 size_t height){}
874
875DECL_EXP void glGetConvolutionFilter( unsigned target, unsigned format,
876 unsigned type, void *image ){}
877
878DECL_EXP void glGetConvolutionParameterfv( unsigned target, unsigned pname,
879 float *params ){}
880
881DECL_EXP void glGetConvolutionParameteriv( unsigned target, unsigned pname,
882 int *params ){}
883
884DECL_EXP void glSeparableFilter2D( unsigned target,
885 unsigned internalformat, size_t width, size_t height, unsigned format,
886 unsigned type, const void *row, const void *column ){}
887
888DECL_EXP void glGetSeparableFilter( unsigned target, unsigned format,
889 unsigned type, void *row, void *column, void *span ){}
890
891
892/*
893 * OpenGL 1.3
894 */
895
896/* multitexture */
897
898DECL_EXP void glActiveTexture( unsigned texture ){}
899
900DECL_EXP void glClientActiveTexture( unsigned texture ){}
901
902DECL_EXP void glCompressedTexImage1D( unsigned target, int level, unsigned internalformat, size_t width, int border, size_t imageSize, const void *data ){}
903
904DECL_EXP void glCompressedTexImage2D( unsigned target, int level, unsigned internalformat, size_t width, size_t height, int border, size_t imageSize, const void *data ){}
905
906DECL_EXP void glCompressedTexImage3D( unsigned target, int level, unsigned internalformat, size_t width, size_t height, size_t depth, int border, size_t imageSize, const void *data ){}
907
908DECL_EXP void glCompressedTexSubImage1D( unsigned target, int level, int xoffset, size_t width, unsigned format, size_t imageSize, const void *data ){}
909
910DECL_EXP void glCompressedTexSubImage2D( unsigned target, int level, int xoffset, int yoffset, size_t width, size_t height, unsigned format, size_t imageSize, const void *data ){}
911
912DECL_EXP void glCompressedTexSubImage3D( unsigned target, int level, int xoffset, int yoffset, int zoffset, size_t width, size_t height, size_t depth, unsigned format, size_t imageSize, const void *data ){}
913
914DECL_EXP void glGetCompressedTexImage( unsigned target, int lod, void *img ){}
915
916DECL_EXP void glMultiTexCoord1d( unsigned target, double s ){}
917
918DECL_EXP void glMultiTexCoord1dv( unsigned target, const double *v ){}
919
920DECL_EXP void glMultiTexCoord1f( unsigned target, float s ){}
921
922DECL_EXP void glMultiTexCoord1fv( unsigned target, const float *v ){}
923
924DECL_EXP void glMultiTexCoord1i( unsigned target, int s ){}
925
926DECL_EXP void glMultiTexCoord1iv( unsigned target, const int *v ){}
927
928DECL_EXP void glMultiTexCoord1s( unsigned target, short s ){}
929
930DECL_EXP void glMultiTexCoord1sv( unsigned target, const short *v ){}
931
932DECL_EXP void glMultiTexCoord2d( unsigned target, double s, double t ){}
933
934DECL_EXP void glMultiTexCoord2dv( unsigned target, const double *v ){}
935
936DECL_EXP void glMultiTexCoord2f( unsigned target, float s, float t ){}
937
938DECL_EXP void glMultiTexCoord2fv( unsigned target, const float *v ){}
939
940DECL_EXP void glMultiTexCoord2i( unsigned target, int s, int t ){}
941
942DECL_EXP void glMultiTexCoord2iv( unsigned target, const int *v ){}
943
944DECL_EXP void glMultiTexCoord2s( unsigned target, short s, short t ){}
945
946DECL_EXP void glMultiTexCoord2sv( unsigned target, const short *v ){}
947
948DECL_EXP void glMultiTexCoord3d( unsigned target, double s, double t, double r ){}
949
950DECL_EXP void glMultiTexCoord3dv( unsigned target, const double *v ){}
951
952DECL_EXP void glMultiTexCoord3f( unsigned target, float s, float t, float r ){}
953
954DECL_EXP void glMultiTexCoord3fv( unsigned target, const float *v ){}
955
956DECL_EXP void glMultiTexCoord3i( unsigned target, int s, int t, int r ){}
957
958DECL_EXP void glMultiTexCoord3iv( unsigned target, const int *v ){}
959
960DECL_EXP void glMultiTexCoord3s( unsigned target, short s, short t, short r ){}
961
962DECL_EXP void glMultiTexCoord3sv( unsigned target, const short *v ){}
963
964DECL_EXP void glMultiTexCoord4d( unsigned target, double s, double t, double r, double q ){}
965
966DECL_EXP void glMultiTexCoord4dv( unsigned target, const double *v ){}
967
968DECL_EXP void glMultiTexCoord4f( unsigned target, float s, float t, float r, float q ){}
969
970DECL_EXP void glMultiTexCoord4fv( unsigned target, const float *v ){}
971
972DECL_EXP void glMultiTexCoord4i( unsigned target, int s, int t, int r, int q ){}
973
974DECL_EXP void glMultiTexCoord4iv( unsigned target, const int *v ){}
975
976DECL_EXP void glMultiTexCoord4s( unsigned target, short s, short t, short r, short q ){}
977
978DECL_EXP void glMultiTexCoord4sv( unsigned target, const short *v ){}
979
980
981DECL_EXP void glLoadTransposeMatrixd( const double m[16] ){}
982
983DECL_EXP void glLoadTransposeMatrixf( const float m[16] ){}
984
985DECL_EXP void glMultTransposeMatrixd( const double m[16] ){}
986
987DECL_EXP void glMultTransposeMatrixf( const float m[16] ){}
988
989DECL_EXP void glSampleCoverage( unsigned value, bool invert ){}
990
991
992/*
993 * GL_ARB_multitexture (ARB extension 1 and OpenGL 1.2.1)
994 */
995DECL_EXP void glActiveTextureARB(unsigned texture){}
996DECL_EXP void glClientActiveTextureARB(unsigned texture){}
997DECL_EXP void glMultiTexCoord1dARB(unsigned target, double s){}
998DECL_EXP void glMultiTexCoord1dvARB(unsigned target, const double *v){}
999DECL_EXP void glMultiTexCoord1fARB(unsigned target, float s){}
1000DECL_EXP void glMultiTexCoord1fvARB(unsigned target, const float *v){}
1001DECL_EXP void glMultiTexCoord1iARB(unsigned target, int s){}
1002DECL_EXP void glMultiTexCoord1ivARB(unsigned target, const int *v){}
1003DECL_EXP void glMultiTexCoord1sARB(unsigned target, short s){}
1004DECL_EXP void glMultiTexCoord1svARB(unsigned target, const short *v){}
1005DECL_EXP void glMultiTexCoord2dARB(unsigned target, double s, double t){}
1006DECL_EXP void glMultiTexCoord2dvARB(unsigned target, const double *v){}
1007DECL_EXP void glMultiTexCoord2fARB(unsigned target, float s, float t){}
1008DECL_EXP void glMultiTexCoord2fvARB(unsigned target, const float *v){}
1009DECL_EXP void glMultiTexCoord2iARB(unsigned target, int s, int t){}
1010DECL_EXP void glMultiTexCoord2ivARB(unsigned target, const int *v){}
1011DECL_EXP void glMultiTexCoord2sARB(unsigned target, short s, short t){}
1012DECL_EXP void glMultiTexCoord2svARB(unsigned target, const short *v){}
1013DECL_EXP void glMultiTexCoord3dARB(unsigned target, double s, double t, double r){}
1014DECL_EXP void glMultiTexCoord3dvARB(unsigned target, const double *v){}
1015DECL_EXP void glMultiTexCoord3fARB(unsigned target, float s, float t, float r){}
1016DECL_EXP void glMultiTexCoord3fvARB(unsigned target, const float *v){}
1017DECL_EXP void glMultiTexCoord3iARB(unsigned target, int s, int t, int r){}
1018DECL_EXP void glMultiTexCoord3ivARB(unsigned target, const int *v){}
1019DECL_EXP void glMultiTexCoord3sARB(unsigned target, short s, short t, short r){}
1020DECL_EXP void glMultiTexCoord3svARB(unsigned target, const short *v){}
1021DECL_EXP void glMultiTexCoord4dARB(unsigned target, double s, double t, double r, double q){}
1022DECL_EXP void glMultiTexCoord4dvARB(unsigned target, const double *v){}
1023DECL_EXP void glMultiTexCoord4fARB(unsigned target, float s, float t, float r, float q){}
1024DECL_EXP void glMultiTexCoord4fvARB(unsigned target, const float *v){}
1025DECL_EXP void glMultiTexCoord4iARB(unsigned target, int s, int t, int r, int q){}
1026DECL_EXP void glMultiTexCoord4ivARB(unsigned target, const int *v){}
1027DECL_EXP void glMultiTexCoord4sARB(unsigned target, short s, short t, short r, short q){}
1028DECL_EXP void glMultiTexCoord4svARB(unsigned target, const short *v){}
1029
1030//DECL_EXP void glProgramCallbackMESA(unsigned target, GLprogramcallbackMESA callback, void *data){}
1031
1032DECL_EXP void glGetProgramRegisterfvMESA(unsigned target, size_t len, const unsigned char *name, float *v){}
1033
1034
1035DECL_EXP void glBlendEquationSeparateATI( unsigned modeRGB, unsigned modeA ){}
1036
1037} // extern "C"
1038
1039
1040void RemovePlugInTool(int tool_id) {}
1041DECL_EXP int InsertPlugInToolSVG(wxString label, wxString SVGfile,
1042 wxString SVGfileRollover, wxString SVGfileToggled,
1043 wxItemKind kind, wxString shortHelp, wxString longHelp,
1044 wxObject *clientData, int position, int tool_sel,
1045 opencpn_plugin *pplugin) { return 0; }
1046
1047DECL_EXP int InsertPlugInTool(wxString label, wxBitmap *bitmap, wxBitmap *bmpRollover,
1048 wxItemKind kind, wxString shortHelp, wxString longHelp,
1049 wxObject *clientData, int position, int tool_sel,
1050 opencpn_plugin *pplugin) { return 0; }
1051void DimeWindow(wxWindow* win) {}
1052wxFont* OCPNGetFont(wxString TextElement, int default_size) { return 0; }
1053void SetToolbarItemState(int item, bool toggle) {}
1054wxAuiManager *GetFrameAuiManager(void) { return 0; }
1055wxWindow *GetOCPNCanvasWindow() { return 0; }
1056
1057DECL_EXP int AddCanvasContextMenuItem(wxMenuItem *pitem,
1058 opencpn_plugin *pplugin) {
1059 return 1;
1060}
1061DECL_EXP void SetToolbarToolBitmaps(int item, wxBitmap *bitmap, wxBitmap *bmpRollover) {}
1062DECL_EXP void SetToolbarToolBitmapsSVG(int item, wxString SVGfile,
1063 wxString SVGfileRollover,
1064 wxString SVGfileToggled) {}
1065DECL_EXP void RemoveCanvasContextMenuItem(int item) {}
1066DECL_EXP void JumpToPosition(double lat, double lon, double scale){};
1067DECL_EXP void SetCanvasContextMenuItemViz(int item, bool viz) {}
1068DECL_EXP void SetCanvasContextMenuItemGrey(int item, bool grey) {}
1069DECL_EXP void RequestRefresh(wxWindow *) {}
1070DECL_EXP void DistanceBearingMercator_Plugin(double lat0, double lon0,
1071 double lat1, double lon1,
1072 double *brg, double *dist) {}
1073DECL_EXP void GetCanvasPixLL(PlugIn_ViewPort *vp, wxPoint *pp, double lat,
1074 double lon) {}
1075DECL_EXP void GetCanvasLLPix(PlugIn_ViewPort *vp, wxPoint p,
1076 double *plat, double *plon) {}
1077DECL_EXP void PushNMEABuffer(wxString str) {}
1078DECL_EXP void PositionBearingDistanceMercator_Plugin(double lat, double lon,
1079 double brg, double dist,
1080 double *dlat,
1081 double *dlon) {}
1082DECL_EXP double DistGreatCircle_Plugin(double slat, double slon, double dlat,
1083 double dlon) {
1084 return 0.0;
1085}
1086wxXmlDocument dummy_xml_doc;
1087DECL_EXP wxXmlDocument GetChartDatabaseEntryXML(int dbIndex, bool b_getGeom) {
1088 return dummy_xml_doc;
1089}
1090DECL_EXP bool UpdateChartDBInplace(wxArrayString dir_array, bool b_force_update,
1091 bool b_ProgressDialog) {
1092 return true;
1093}
1094wxArrayString dummy_array_string;
1095DECL_EXP wxArrayString GetChartDBDirArrayString() { return dummy_array_string; }
1096DECL_EXP void toTM_Plugin(float lat, float lon, float lat0, float lon0,
1097 double *x, double *y) {}
1098DECL_EXP void fromTM_Plugin(double x, double y, double lat0, double lon0,
1099 double *lat, double *lon) {}
1100DECL_EXP void toSM_Plugin(double lat, double lon, double lat0, double lon0,
1101 double *x, double *y) {}
1102DECL_EXP void fromSM_Plugin(double x, double y, double lat0, double lon0,
1103 double *lat, double *lon) {}
1104DECL_EXP void toSM_ECC_Plugin(double lat, double lon, double lat0, double lon0,
1105 double *x, double *y) {}
1106DECL_EXP void fromSM_ECC_Plugin(double x, double y, double lat0, double lon0,
1107 double *lat, double *lon) {}
1108DECL_EXP bool DecodeSingleVDOMessage(const wxString &str,
1110 wxString *acc) {
1111 return true;
1112}
1113DECL_EXP bool GetActiveRoutepointGPX(char *buffer, unsigned int buffer_length) {
1114 return true;
1115}
1116DECL_EXP int GetChartbarHeight(void) { return 1; }
1117void SendPluginMessage(wxString message_id, wxString message_body) {}
1118bool AddLocaleCatalog(wxString catalog) { return true; }
1119bool GetGlobalColor(wxString colorName, wxColour *pcolour) { return true; }
1120wxFileConfig *GetOCPNConfigObject(void) { return 0; }
1121
1122DECL_EXP wxScrolledWindow *AddOptionsPage(OptionsParentPI parent,
1123 wxString title) {
1124 return 0;
1125}
1126DECL_EXP bool DeleteOptionsPage(wxScrolledWindow *page) { return true; }
1127
1128DECL_EXP double toUsrDistance_Plugin(double nm_distance, int unit) {
1129 return 0.0;
1130}
1131DECL_EXP double fromUsrDistance_Plugin(double usr_distance, int unit) {
1132 return 0.0;
1133}
1134DECL_EXP double toUsrSpeed_Plugin(double kts_speed, int unit) { return 0.0; }
1135DECL_EXP double fromUsrSpeed_Plugin(double usr_speed, int unit) { return 0.0; }
1136DECL_EXP double toUsrTemp_Plugin(double cel_temp, int unit) { return 0.0; }
1137DECL_EXP double fromUsrTemp_Plugin(double usr_temp, int unit) { return 0.0; }
1138DECL_EXP wxString getUsrDistanceUnit_Plugin(int unit) { return ""; }
1139DECL_EXP wxString getUsrSpeedUnit_Plugin(int unit) { return ""; }
1140DECL_EXP wxString getUsrTempUnit_Plugin(int unit) { return ""; }
1141DECL_EXP wxString GetNewGUID() { return ""; }
1142DECL_EXP bool PlugIn_GSHHS_CrossesLand(double lat1, double lon1, double lat2,
1143 double lon2) {
1144 return true;
1145}
1146
1147DECL_EXP void PlugInPlaySound(wxString &sound_file){};
1148
1149// API 1.10 Route and Waypoint Support
1150DECL_EXP wxBitmap *FindSystemWaypointIcon(wxString &icon_name) { return 0; }
1151DECL_EXP bool AddCustomWaypointIcon(wxBitmap *pimage, wxString key,
1152 wxString description) {
1153 return false;
1154}
1155
1156DECL_EXP bool AddSingleWaypoint(PlugIn_Waypoint *pwaypoint, bool b_permanent) {
1157 return true;
1158}
1159DECL_EXP bool DeleteSingleWaypoint(wxString &GUID) { return true; }
1160DECL_EXP bool UpdateSingleWaypoint(PlugIn_Waypoint *pwaypoint) { return true; }
1161
1162DECL_EXP bool AddPlugInRoute(PlugIn_Route *proute, bool b_permanent) {
1163 return true;
1164}
1165DECL_EXP bool DeletePlugInRoute(wxString &GUID) { return true; }
1166DECL_EXP bool UpdatePlugInRoute(PlugIn_Route *proute) { return true; }
1167
1168DECL_EXP PlugIn_Track::PlugIn_Track() {}
1169DECL_EXP PlugIn_Track::~PlugIn_Track() {}
1170DECL_EXP bool AddPlugInTrack(PlugIn_Track *ptrack, bool b_permanent) {
1171 return true;
1172}
1173DECL_EXP bool DeletePlugInTrack(wxString &GUID) { return true; }
1174DECL_EXP bool UpdatePlugInTrack(PlugIn_Track *ptrack) { return true; }
1175
1176DECL_EXP wxColour GetBaseGlobalColor(wxString colorName) { return *wxRED; }
1177int DECL_EXP OCPNMessageBox_PlugIn(wxWindow *parent, const wxString &message,
1178 const wxString &caption, int style, int x,
1179 int y) {
1180 return 0;
1181}
1182
1183DECL_EXP wxString toSDMM_PlugIn(int NEflag, double a, bool hi_precision) {
1184 return "";
1185}
1186wxString dummy_string;
1187DECL_EXP wxString *GetpPrivateApplicationDataLocation() {
1188 return &dummy_string;
1189}
1190DECL_EXP wxString GetOCPN_ExePath(void) { return wxString(""); }
1191DECL_EXP wxString *GetpPlugInLocation() { return &dummy_string; }
1192DECL_EXP wxString GetPlugInPath(opencpn_plugin *pplugin) {
1193 return wxString("");
1194}
1195
1196DECL_EXP int AddChartToDBInPlace(wxString &full_path, bool b_RefreshCanvas) {
1197 return 0;
1198}
1199DECL_EXP int RemoveChartFromDBInPlace(wxString &full_path) { return 0; }
1200DECL_EXP wxString GetLocaleCanonicalName() { return wxString(""); }
1201
1202class PI_S57Obj;
1203PlugInChartBase::PlugInChartBase() {}
1204PlugInChartBase::~PlugInChartBase() {}
1205
1206wxString PlugInChartBase::GetFileSearchMask(void) { return wxString(""); }
1207
1208int PlugInChartBase::Init(const wxString &full_path, int init_flags) {
1209 return 0;
1210}
1211void PlugInChartBase::SetColorScheme(int cs, bool bApplyImmediate) {}
1212
1213double PlugInChartBase::GetNormalScaleMin(double canvas_scale_factor,
1214 bool b_allow_overzoom) {
1215 return 0.0;
1216}
1217double PlugInChartBase::GetNormalScaleMax(double canvas_scale_factor,
1218 int canvas_width) {
1219 return 0.0;
1220}
1221double PlugInChartBase::GetNearestPreferredScalePPM(double target_scale_ppm) {
1222 return 0.0;
1223}
1224
1225bool PlugInChartBase::GetChartExtent(ExtentPI *pext) { return true; }
1226
1227wxBitmap dummy_bitmap;
1228wxBitmap &PlugInChartBase::RenderRegionView(const PlugIn_ViewPort &VPoint,
1229 const wxRegion &Region) {
1230 return dummy_bitmap;
1231}
1232
1233bool PlugInChartBase::AdjustVP(PlugIn_ViewPort &vp_last,
1234 PlugIn_ViewPort &vp_proposed) {
1235 return true;
1236}
1237
1238void PlugInChartBase::GetValidCanvasRegion(const PlugIn_ViewPort &VPoint,
1239 wxRegion *pValidRegion) {}
1240
1241wxBitmap *PlugInChartBase::GetThumbnail(int tnx, int tny, int cs) {
1242 return &dummy_bitmap;
1243}
1244
1245void PlugInChartBase::ComputeSourceRectangle(const PlugIn_ViewPort &vp,
1246 wxRect *pSourceRect) {}
1247double PlugInChartBase::GetRasterScaleFactor() { return 0.0; }
1248bool PlugInChartBase::GetChartBits(wxRect &source, unsigned char *pPix,
1249 int sub_samp) {
1250 return true;
1251}
1252int PlugInChartBase::GetSize_X() { return 0; }
1253int PlugInChartBase::GetSize_Y() { return 0; }
1254void PlugInChartBase::latlong_to_chartpix(double lat, double lon, double &pixx,
1255 double &pixy) {}
1256void PlugInChartBase::chartpix_to_latlong(double pixx, double pixy,
1257 double *plat, double *plon) {}
1258
1259// ----------------------------------------------------------------------------
1260// PlugInChartBaseGL
1261// Derived from PlugInChartBase, add OpenGL Vector chart support
1262// ----------------------------------------------------------------------------
1263
1264PlugInChartBaseGL::PlugInChartBaseGL() {}
1265PlugInChartBaseGL::~PlugInChartBaseGL() {}
1266
1267int PlugInChartBaseGL::RenderRegionViewOnGL(const wxGLContext &glc,
1268 const PlugIn_ViewPort &VPoint,
1269 const wxRegion &Region,
1270 bool b_use_stencil) {
1271 return 0;
1272}
1273
1274ListOfPI_S57Obj *PlugInChartBaseGL::GetObjRuleListAtLatLon(
1275 float lat, float lon, float select_radius, PlugIn_ViewPort *VPoint) {
1276 return 0;
1277}
1278wxString PlugInChartBaseGL::CreateObjDescriptions(ListOfPI_S57Obj *obj_list) {
1279 return "";
1280}
1281
1282int PlugInChartBaseGL::GetNoCOVREntries() { return 0; }
1283int PlugInChartBaseGL::GetNoCOVRTablePoints(int iTable) { return 0; }
1284int PlugInChartBaseGL::GetNoCOVRTablenPoints(int iTable) { return 0; }
1285float *PlugInChartBaseGL::GetNoCOVRTableHead(int iTable) { return 0; }
1286
1287// ----------------------------------------------------------------------------
1288// PlugInChartBaseGLPlus2
1289// Derived from PlugInChartBaseGL, add additional chart management methods
1290// ----------------------------------------------------------------------------
1291
1292PlugInChartBaseGLPlus2::PlugInChartBaseGLPlus2() {}
1293PlugInChartBaseGLPlus2::~PlugInChartBaseGLPlus2() {}
1294
1295ListOfPI_S57Obj *PlugInChartBaseGLPlus2::GetLightsObjRuleListVisibleAtLatLon(
1296 float lat, float lon, PlugIn_ViewPort *VPoint) {
1297 return 0;
1298}
1299
1300// ----------------------------------------------------------------------------
1301// PlugInChartBaseExtended
1302// Derived from PlugInChartBase, add extended chart support methods
1303// ----------------------------------------------------------------------------
1304
1305PlugInChartBaseExtended::PlugInChartBaseExtended() {}
1306PlugInChartBaseExtended::~PlugInChartBaseExtended() {}
1307
1308int PlugInChartBaseExtended::RenderRegionViewOnGL(const wxGLContext &glc,
1309 const PlugIn_ViewPort &VPoint,
1310 const wxRegion &Region,
1311 bool b_use_stencil) {
1312 return 0;
1313}
1314wxBitmap &PlugInChartBaseExtended::RenderRegionViewOnDCNoText(
1315 const PlugIn_ViewPort &VPoint, const wxRegion &Region) {
1316 return dummy_bitmap;
1317}
1318bool PlugInChartBaseExtended::RenderRegionViewOnDCTextOnly(
1319 wxMemoryDC &dc, const PlugIn_ViewPort &VPoint, const wxRegion &Region) {
1320 return false;
1321}
1322
1323int PlugInChartBaseExtended::RenderRegionViewOnGLNoText(
1324 const wxGLContext &glc, const PlugIn_ViewPort &VPoint,
1325 const wxRegion &Region, bool b_use_stencil) {
1326 return 0;
1327}
1328
1329int PlugInChartBaseExtended::RenderRegionViewOnGLTextOnly(
1330 const wxGLContext &glc, const PlugIn_ViewPort &VPoint,
1331 const wxRegion &Region, bool b_use_stencil) {
1332 return 0;
1333}
1334
1335ListOfPI_S57Obj *PlugInChartBaseExtended::GetObjRuleListAtLatLon(
1336 float lat, float lon, float select_radius, PlugIn_ViewPort *VPoint) {
1337 return 0;
1338}
1339wxString PlugInChartBaseExtended::CreateObjDescriptions(
1340 ListOfPI_S57Obj *obj_list) {
1341 return wxString("");
1342}
1343
1344int PlugInChartBaseExtended::GetNoCOVREntries() { return 0; }
1345int PlugInChartBaseExtended::GetNoCOVRTablePoints(int iTable) { return 0; }
1346int PlugInChartBaseExtended::GetNoCOVRTablenPoints(int iTable) { return 0; }
1347float *PlugInChartBaseExtended::GetNoCOVRTableHead(int iTable) { return 0; }
1348
1349void PlugInChartBaseExtended::ClearPLIBTextList() {}
1350
1351// ----------------------------------------------------------------------------
1352// PlugInChartBaseExtendedPlus2
1353// Derived from PlugInChartBaseExtended, add additional extended chart support
1354// methods
1355// ----------------------------------------------------------------------------
1356
1357PlugInChartBaseExtendedPlus2::PlugInChartBaseExtendedPlus2() {}
1358PlugInChartBaseExtendedPlus2::~PlugInChartBaseExtendedPlus2() {}
1359ListOfPI_S57Obj *
1360PlugInChartBaseExtendedPlus2::GetLightsObjRuleListVisibleAtLatLon(
1361 float lat, float lon, PlugIn_ViewPort *VPoint) {
1362 return 0;
1363}
1364
1365class wxArrayOfS57attVal;
1366
1367PI_S57Obj::PI_S57Obj() {}
1368
1369DECL_EXP wxString PI_GetPLIBColorScheme() { return ""; }
1370DECL_EXP int PI_GetPLIBDepthUnitInt() { return 0; }
1371DECL_EXP int PI_GetPLIBSymbolStyle() { return 0; }
1372DECL_EXP int PI_GetPLIBBoundaryStyle() { return 0; }
1373DECL_EXP int PI_GetPLIBStateHash() { return 0; }
1374DECL_EXP double PI_GetPLIBMarinerSafetyContour() { return 0; }
1375DECL_EXP bool PI_GetObjectRenderBox(PI_S57Obj *pObj, double *lat_min,
1376 double *lat_max, double *lon_min,
1377 double *lon_max) {
1378 return true;
1379}
1380DECL_EXP void PI_UpdateContext(PI_S57Obj *pObj) {}
1381DECL_EXP bool PI_PLIBObjectRenderCheck(PI_S57Obj *pObj,
1382 PlugIn_ViewPort *vp) {
1383 return true;
1384}
1385DECL_EXP PI_LUPname PI_GetObjectLUPName(PI_S57Obj *pObj) {
1386 return PI_SIMPLIFIED;
1387}
1388DECL_EXP PI_DisPrio PI_GetObjectDisplayPriority(PI_S57Obj *pObj) {
1389 return PI_PRIO_NODATA;
1390}
1391DECL_EXP PI_DisCat PI_GetObjectDisplayCategory(PI_S57Obj *pObj) {
1392 return PI_DISPLAYBASE;
1393}
1394DECL_EXP void PI_PLIBSetLineFeaturePriority(PI_S57Obj *pObj, int prio) {}
1395DECL_EXP void PI_PLIBPrepareForNewRender(void) {}
1396DECL_EXP void PI_PLIBFreeContext(void *pContext) {}
1397DECL_EXP void PI_PLIBSetRenderCaps(unsigned int flags) {}
1398
1399DECL_EXP bool PI_PLIBSetContext(PI_S57Obj *pObj) { return true; }
1400DECL_EXP int PI_PLIBRenderObjectToDC(wxDC *pdc, PI_S57Obj *pObj,
1401 PlugIn_ViewPort *vp) {
1402 return 0;
1403}
1404DECL_EXP int PI_PLIBRenderAreaToDC(wxDC *pdc, PI_S57Obj *pObj,
1405 PlugIn_ViewPort *vp, wxRect rect,
1406 unsigned char *pixbuf) {
1407 return 0;
1408}
1409
1410DECL_EXP int PI_PLIBRenderAreaToGL(const wxGLContext &glcc, PI_S57Obj *pObj,
1411 PlugIn_ViewPort *vp, wxRect &render_rect) {
1412 return 0;
1413}
1414
1415DECL_EXP int PI_PLIBRenderObjectToGL(const wxGLContext &glcc, PI_S57Obj *pObj,
1416 PlugIn_ViewPort *vp, wxRect &render_rect) {
1417 return 0;
1418}
1419
1420DECL_EXP bool PlugInHasNormalizedViewPort(PlugIn_ViewPort *vp) { return false; }
1421DECL_EXP void PlugInMultMatrixViewport(PlugIn_ViewPort *vp, float lat,
1422 float lon) {}
1423DECL_EXP void PlugInNormalizeViewport(PlugIn_ViewPort *vp, float lat,
1424 float lon) {}
1425
1426class wxPoint2DDouble;
1427DECL_EXP void GetDoubleCanvasPixLL(PlugIn_ViewPort *vp, wxPoint2DDouble *pp,
1428 double lat, double lon) {}
1429
1430DECL_EXP double fromDMM_Plugin(wxString sdms) { return 0.0; }
1431DECL_EXP void SetCanvasRotation(double rotation) {}
1432DECL_EXP void SetCanvasProjection(int projection) {}
1433DECL_EXP bool GetSingleWaypoint(wxString GUID, PlugIn_Waypoint *pwaypoint) {
1434 return true;
1435}
1436DECL_EXP bool CheckEdgePan_PlugIn(int x, int y, bool dragging, int margin,
1437 int delta) {
1438 return true;
1439}
1440DECL_EXP wxBitmap GetIcon_PlugIn(const wxString &name) { return dummy_bitmap; }
1441DECL_EXP void SetCursor_PlugIn(wxCursor *pPlugin_Cursor) {}
1442DECL_EXP wxFont *GetOCPNScaledFont_PlugIn(wxString TextElement,
1443 int default_size) {
1444 return 0;
1445}
1446wxFont dummyFont;
1447DECL_EXP wxFont GetOCPNGUIScaledFont_PlugIn(wxString item) { return dummyFont; }
1448DECL_EXP double GetOCPNGUIToolScaleFactor_PlugIn(int GUIScaledFactor) {
1449 return 0.0;
1450}
1451DECL_EXP double GetOCPNGUIToolScaleFactor_PlugIn() { return 0.0; }
1452DECL_EXP float GetOCPNChartScaleFactor_Plugin() { return 0.0; }
1453DECL_EXP wxColour GetFontColour_PlugIn(wxString TextElement) { return *wxRED; }
1454
1455DECL_EXP double GetCanvasTilt() { return 0.0; }
1456DECL_EXP void SetCanvasTilt(double tilt) {}
1457
1463DECL_EXP bool PlugInPlaySoundEx(wxString &sound_file, int deviceIndex) {
1464 return true;
1465}
1466DECL_EXP void AddChartDirectory(wxString &path) {}
1467DECL_EXP void ForceChartDBUpdate() {}
1468DECL_EXP void ForceChartDBRebuild() {}
1469
1470DECL_EXP wxString GetWritableDocumentsDir(void) { return wxString(""); }
1471DECL_EXP wxDialog *GetActiveOptionsDialog() { return 0; }
1472DECL_EXP wxArrayString GetWaypointGUIDArray(void) { return dummy_array_string; }
1473DECL_EXP wxArrayString GetIconNameArray(void) { return dummy_array_string; }
1474
1475DECL_EXP bool AddPersistentFontKey(wxString TextElement) { return true; }
1476DECL_EXP wxString GetActiveStyleName() { return wxString(""); }
1477
1478DECL_EXP wxBitmap GetBitmapFromSVGFile(wxString filename, unsigned int width,
1479 unsigned int height) {
1480 return dummy_bitmap;
1481}
1482DECL_EXP bool IsTouchInterface_PlugIn(void) { return true; }
1483
1484/* Platform optimized File/Dir selector dialogs */
1485DECL_EXP int PlatformDirSelectorDialog(wxWindow *parent, wxString *file_spec,
1486 wxString Title, wxString initDir) {
1487 return 0;
1488}
1489
1490DECL_EXP int PlatformFileSelectorDialog(wxWindow *parent, wxString *file_spec,
1491 wxString Title, wxString initDir,
1492 wxString suggestedName,
1493 wxString wildcard) {
1494 return 0;
1495}
1496
1497/* OpenCPN HTTP File Download PlugIn Interface */
1498
1499/* Synchronous (Blocking) download of a single file */
1500
1501DECL_EXP wxEventType wxEVT_DOWNLOAD_EVENT = wxNewEventType();
1502
1503DECL_EXP _OCPN_DLStatus OCPN_downloadFile(
1504 const wxString &url, const wxString &outputFile, const wxString &title,
1505 const wxString &message, const wxBitmap &bitmap, wxWindow *parent,
1506 long style, int timeout_secs) {
1507 return OCPN_DL_UNKNOWN;
1508}
1509/* Asynchronous (Background) download of a single file */
1510
1511DECL_EXP _OCPN_DLStatus OCPN_downloadFileBackground(const wxString &url,
1512 const wxString &outputFile,
1513 wxEvtHandler *handler,
1514 long *handle) {
1515 return OCPN_DL_UNKNOWN;
1516}
1517
1518DECL_EXP void OCPN_cancelDownloadFileBackground(long handle) {}
1519
1520/* Synchronous (Blocking) HTTP POST operation for small amounts of data */
1521
1522DECL_EXP _OCPN_DLStatus OCPN_postDataHttp(const wxString &url,
1523 const wxString &parameters,
1524 wxString &result, int timeout_secs) {
1525 return OCPN_DL_UNKNOWN;
1526}
1527
1528/* Check whether connection to the Internet is working */
1529
1530DECL_EXP bool OCPN_isOnline() { return true; }
1531
1532OCPN_downloadEvent::OCPN_downloadEvent(wxEventType commandType, int id) {}
1533
1534OCPN_downloadEvent::~OCPN_downloadEvent() {}
1535
1536wxEvent *OCPN_downloadEvent::Clone() const { return 0; }
1537
1538/* API 1.14 */
1539/* API 1.14 adds some more common functions to avoid unnecessary code
1540 * duplication */
1541
1542bool LaunchDefaultBrowser_Plugin(wxString url) { return true; }
1543
1544// API 1.14 Extra canvas Support
1545
1546/* Allow drawing of objects onto other OpenGL canvases */
1547DECL_EXP void PlugInAISDrawGL(wxGLCanvas *glcanvas, const PlugIn_ViewPort &vp) {
1548}
1549DECL_EXP bool PlugInSetFontColor(const wxString TextElement,
1550 const wxColour color) {
1551 return true;
1552}
1553
1554// API 1.15
1555DECL_EXP double PlugInGetDisplaySizeMM() { return 0.0; }
1556
1557//
1558DECL_EXP wxFont *FindOrCreateFont_PlugIn(int point_size, wxFontFamily family,
1559 wxFontStyle style, wxFontWeight weight,
1560 bool ul, const wxString &face,
1561 wxFontEncoding enc) {
1562 return 0;
1563}
1564
1565DECL_EXP int PlugInGetMinAvailableGshhgQuality() { return 0; }
1566DECL_EXP int PlugInGetMaxAvailableGshhgQuality() { return 0; }
1567
1568DECL_EXP void PlugInHandleAutopilotRoute(bool enable) {}
1569
1570wxString *GetpSharedDataLocation(void) {
1571 return g_BasePlatform->GetSharedDataDirPtr();
1572}
1573DECL_EXP bool ShuttingDown(void) { return true; }
1574
1575DECL_EXP wxWindow *PluginGetFocusCanvas() { return 0; }
1576DECL_EXP wxWindow *PluginGetOverlayRenderCanvas() { return 0; }
1577
1578DECL_EXP void CanvasJumpToPosition(wxWindow *canvas, double lat, double lon,
1579 double scale) {}
1580DECL_EXP int AddCanvasMenuItem(wxMenuItem *pitem, opencpn_plugin *pplugin,
1581 const char *name) {
1582 return 0;
1583}
1584DECL_EXP void RemoveCanvasMenuItem(int item, const char *name) {}
1585DECL_EXP void SetCanvasMenuItemViz(int item, bool viz, const char *name) {}
1586DECL_EXP void SetCanvasMenuItemGrey(int item, bool grey, const char *name) {}
1587
1588DECL_EXP wxString GetSelectedWaypointGUID_Plugin() { return wxString(""); }
1589DECL_EXP wxString GetSelectedRouteGUID_Plugin() { return wxString(""); }
1590DECL_EXP wxString GetSelectedTrackGUID_Plugin() { return wxString(""); }
1591
1592DECL_EXP std::unique_ptr<PlugIn_Waypoint> GetWaypoint_Plugin(const wxString &) {
1593 return nullptr;
1594}
1595DECL_EXP std::unique_ptr<PlugIn_Route> GetRoute_Plugin(const wxString &) {
1596 return nullptr;
1597}
1598DECL_EXP std::unique_ptr<PlugIn_Track> GetTrack_Plugin(const wxString &) {
1599 return nullptr;
1600}
1601
1602DECL_EXP wxWindow *GetCanvasUnderMouse() { return 0; }
1603DECL_EXP int GetCanvasIndexUnderMouse() { return 0; }
1604DECL_EXP wxWindow *GetCanvasByIndex(int canvasIndex) { return 0; }
1605DECL_EXP int GetCanvasCount() { return 0; }
1606DECL_EXP bool CheckMUIEdgePan_PlugIn(int x, int y, bool dragging, int margin,
1607 int delta, int canvasIndex) {
1608 return true;
1609}
1610DECL_EXP void SetMUICursor_PlugIn(wxCursor *pCursor, int canvasIndex) {}
1611wxRect dummy_rectangle;
1612DECL_EXP wxRect GetMasterToolbarRect() { return dummy_rectangle; }
1613
1614DECL_EXP int GetLatLonFormat(void) { return 0; }
1615
1616DECL_EXP void ZeroXTE() {}
1617
1618DECL_EXP PlugIn_Waypoint::PlugIn_Waypoint() {}
1619DECL_EXP PlugIn_Waypoint::~PlugIn_Waypoint() {}
1620DECL_EXP PlugIn_Waypoint_Ex::PlugIn_Waypoint_Ex() {}
1621DECL_EXP PlugIn_Waypoint_Ex::PlugIn_Waypoint_Ex(
1622 double lat, double lon, const wxString &icon_ident, const wxString &wp_name,
1623 const wxString &GUID, const double ScaMin, const bool bNameVisible,
1624 const int nRanges, const double RangeDistance, const wxColor RangeColor) {}
1625DECL_EXP PlugIn_Waypoint_Ex::~PlugIn_Waypoint_Ex() {}
1626DECL_EXP void PlugIn_Waypoint_Ex::InitDefaults() {}
1627
1628DECL_EXP bool PlugIn_Waypoint_Ex::GetFSStatus() { return true; }
1629
1630DECL_EXP int PlugIn_Waypoint_Ex::GetRouteMembershipCount() { return 0; }
1631
1632DECL_EXP PlugIn_Route::PlugIn_Route(void) {}
1633DECL_EXP PlugIn_Route::~PlugIn_Route(void) {}
1634
1635DECL_EXP PlugIn_Route_Ex::PlugIn_Route_Ex(void) {}
1636DECL_EXP PlugIn_Route_Ex::~PlugIn_Route_Ex(void) {}
1637
1638DECL_EXP wxArrayString GetRouteGUIDArray(void) { return dummy_array_string; }
1639DECL_EXP wxArrayString GetTrackGUIDArray(void) { return dummy_array_string; }
1640
1641DECL_EXP bool GetSingleWaypointEx(wxString GUID,
1642 PlugIn_Waypoint_Ex *pwaypoint) {
1643 return true;
1644}
1645
1646DECL_EXP bool AddSingleWaypointEx(PlugIn_Waypoint_Ex *pwaypoint,
1647 bool b_permanent) {
1648 return true;
1649}
1650DECL_EXP bool UpdateSingleWaypointEx(PlugIn_Waypoint_Ex *pwaypoint) {
1651 return true;
1652}
1653
1654DECL_EXP bool AddPlugInRouteEx(PlugIn_Route_Ex *proute, bool b_permanent) {
1655 return true;
1656}
1657DECL_EXP bool UpdatePlugInRouteEx(PlugIn_Route_Ex *proute) { return true; }
1658
1659DECL_EXP std::unique_ptr<PlugIn_Waypoint_Ex> GetWaypointEx_Plugin(
1660 const wxString &) {
1661 return nullptr;
1662}
1663DECL_EXP std::unique_ptr<PlugIn_Route_Ex> GetRouteEx_Plugin(const wxString &) {
1664 return nullptr;
1665}
1666
1667DECL_EXP wxString GetActiveWaypointGUID(void) { return wxString(""); }
1668DECL_EXP wxString GetActiveRouteGUID(void) { return wxString(""); }
Definition: Quilt.cpp:864