OpenCPN Partial API docs
|
Public Member Functions | |
opencpn_plugin (void *pmgr) | |
virtual int | Init (void) |
virtual bool | DeInit (void) |
virtual int | GetAPIVersionMajor () |
virtual int | GetAPIVersionMinor () |
virtual int | GetPlugInVersionMajor () |
virtual int | GetPlugInVersionMinor () |
virtual wxBitmap * | GetPlugInBitmap () |
FIXME static wxBitmap* LoadSVG(const wxString filename, unsigned int width,
unsigned int height) { if (!gFrame) return new wxBitmap(width, height); // We are headless. | |
virtual wxString | GetCommonName () |
virtual wxString | GetShortDescription () |
virtual wxString | GetLongDescription () |
virtual void | SetDefaults (void) |
virtual int | GetToolbarToolCount (void) |
virtual int | GetToolboxPanelCount (void) |
virtual void | SetupToolboxPanel (int page_sel, wxNotebook *pnotebook) |
virtual void | OnCloseToolboxPanel (int page_sel, int ok_apply_cancel) |
virtual void | ShowPreferencesDialog (wxWindow *parent) |
virtual bool | RenderOverlay (wxMemoryDC *pmdc, PlugIn_ViewPort *vp) |
virtual void | SetCursorLatLon (double lat, double lon) |
virtual void | SetCurrentViewPort (PlugIn_ViewPort &vp) |
virtual void | SetPositionFix (PlugIn_Position_Fix &pfix) |
virtual void | SetNMEASentence (wxString &sentence) |
Receive all NMEA 0183 sentences from OpenCPN. | |
virtual void | SetAISSentence (wxString &sentence) |
Receive all AIS sentences from OpenCPN. | |
virtual void | ProcessParentResize (int x, int y) |
virtual void | SetColorScheme (PI_ColorScheme cs) |
virtual void | OnToolbarToolCallback (int id) |
virtual void | OnContextMenuItemCallback (int id) |
virtual void | UpdateAuiStatus (void) |
virtual wxArrayString | GetDynamicChartClassNameArray (void) |
Definition at line 444 of file ocpn_plugin.h.
|
inline |
Definition at line 446 of file ocpn_plugin.h.
|
virtual |
Definition at line 82 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 86 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 88 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 90 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 96 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 143 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 102 of file ocpn_plugin.cpp.
|
virtual |
FIXME static wxBitmap* LoadSVG(const wxString filename, unsigned int width, unsigned int height) { if (!gFrame) return new wxBitmap(width, height); // We are headless.
#ifdef ANDROID return loadAndroidSVG(filename, width, height); #elif defined(ocpnUSE_SVG) wxSVGDocument svgDoc; if (svgDoc.Load(filename)) return new wxBitmap(svgDoc.Render(width, height, NULL, true, true)); else return new wxBitmap(width, height); #else return new wxBitmap(width, height); #endif }
wxBitmap* opencpn_plugin::GetPlugInBitmap() { auto bitmap = PluginLoader::getInstance()->GetPluginDefaultIcon(); return const_cast<wxBitmap*>(bitmap); }
Reimplemented in chartdldr_pi, dashboard_pi, grib_pi, and wmm_pi.
Definition at line 76 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 92 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 94 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 98 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 113 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 115 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 84 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 119 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 125 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 123 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 137 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 127 of file ocpn_plugin.cpp.
|
virtual |
Receive all AIS sentences from OpenCPN.
Plugins can implement this method to receive all AIS sentences. They must set the WANTS_AIS_SENTENCES capability flag to receive updates.
sentence | The AIS sentence in standard NMEA 0183 VDM/VDO format (e.g., "!AIVDM,1,1,,B,15MwkRUOidG?GElEa<iQk1JV06Jd,0*1D") These sentences contain binary encoded AIS messages that follow the ITU-R M.1371 standard. |
Definition at line 111 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 139 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 133 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 131 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 135 of file ocpn_plugin.cpp.
|
virtual |
Receive all NMEA 0183 sentences from OpenCPN.
Plugins can implement this method to receive all NMEA 0183 sentences. They must set the WANTS_NMEA_SENTENCES capability flag to receive updates.
sentence | The NMEA 0183 sentence |
Reimplemented in dashboard_pi.
Definition at line 109 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 107 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 117 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 121 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 141 of file ocpn_plugin.cpp.