OpenCPN Partial API docs
opencpn_plugin Class Reference
Inheritance diagram for opencpn_plugin:
opencpn_plugin_16 opencpn_plugin_17 opencpn_plugin_18 opencpn_plugin_19 opencpn_plugin_110 opencpn_plugin_111 opencpn_plugin_112 opencpn_plugin_113 opencpn_plugin_114 opencpn_plugin_115 opencpn_plugin_116 opencpn_plugin_117 opencpn_plugin_118

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. More...
 
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)
 
virtual void SetAISSentence (wxString &sentence)
 
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)
 

Detailed Description

Definition at line 389 of file ocpn_plugin.h.

Member Function Documentation

◆ GetPlugInBitmap()

wxBitmap * opencpn_plugin::GetPlugInBitmap ( )
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); }

Definition at line 78 of file ocpn_plugin.cpp.


The documentation for this class was generated from the following files: