|
OpenCPN Partial API docs
|
Public Member Functions | |
| opencpn_plugin_17 (void *pmgr) | |
| virtual bool | RenderOverlay (wxDC &dc, PlugIn_ViewPort *vp) |
| virtual bool | RenderGLOverlay (wxGLContext *pcontext, PlugIn_ViewPort *vp) |
| virtual void | SetPluginMessage (wxString &message_id, wxString &message_body) |
| virtual bool | RenderOverlay (wxMemoryDC *pmdc, PlugIn_ViewPort *vp) |
| Render plugin overlay graphics using standard device context. | |
Public Member Functions inherited from opencpn_plugin | |
| opencpn_plugin (void *pmgr) | |
| virtual int | Init (void) |
| Initialize the plugin and declare its capabilities. | |
| virtual bool | DeInit (void) |
| Clean up plugin resources. | |
| virtual int | GetAPIVersionMajor () |
| Returns the major version number of the plugin API that this plugin supports. | |
| virtual int | GetAPIVersionMinor () |
| Returns the minor version number of the plugin API that this plugin supports. | |
| virtual int | GetPlugInVersionMajor () |
| Returns the major version number of the plugin itself. | |
| virtual int | GetPlugInVersionMinor () |
| Returns the minor version number of the plugin itself. | |
| virtual wxBitmap * | GetPlugInBitmap () |
| Get the plugin's icon bitmap. | |
| virtual wxString | GetCommonName () |
| Get the plugin's common (short) name. | |
| virtual wxString | GetShortDescription () |
| Get a brief description of the plugin. | |
| virtual wxString | GetLongDescription () |
| Get detailed plugin information. | |
| virtual void | SetDefaults (void) |
| Sets plugin default options. | |
| virtual int | GetToolbarToolCount (void) |
| Returns the number of toolbar tools this plugin provides. | |
| virtual int | GetToolboxPanelCount (void) |
| Returns the number of preference pages this plugin provides. | |
| virtual void | SetupToolboxPanel (int page_sel, wxNotebook *pnotebook) |
| Creates a plugin preferences page. | |
| virtual void | OnCloseToolboxPanel (int page_sel, int ok_apply_cancel) |
| Handles preference page closure. | |
| virtual void | ShowPreferencesDialog (wxWindow *parent) |
| Shows the plugin preferences dialog. | |
| virtual void | SetCursorLatLon (double lat, double lon) |
| Receives cursor lat/lon position updates. | |
| virtual void | SetCurrentViewPort (PlugIn_ViewPort &vp) |
| Notifies plugin of viewport changes. | |
| virtual void | SetPositionFix (PlugIn_Position_Fix &pfix) |
| Updates plugin with current position fix data at regular intervals. | |
| 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) |
| Handles parent window resize events. | |
| virtual void | SetColorScheme (PI_ColorScheme cs) |
| Updates plugin color scheme. | |
| virtual void | OnToolbarToolCallback (int id) |
| Handles toolbar tool clicks. | |
| virtual void | OnContextMenuItemCallback (int id) |
| Handles context menu item selection. | |
| virtual void | UpdateAuiStatus (void) |
| Updates AUI manager status. | |
| virtual wxArrayString | GetDynamicChartClassNameArray (void) |
| Returns array of dynamically loaded chart class names. | |
Definition at line 1785 of file ocpn_plugin.h.
| opencpn_plugin_17::opencpn_plugin_17 | ( | void * | pmgr | ) |
Definition at line 158 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 160 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 166 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 162 of file ocpn_plugin.cpp.
|
virtual |
Render plugin overlay graphics using standard device context.
Called by OpenCPN during chart redraw to allow plugins to render custom visualization overlays on top of charts. Drawing is done through a device context abstraction (piDC) that handles both standard and OpenGL contexts.
Examples include:
Rendering order is determined by plugin load order in array for same priority level.
| dc | Reference to wxDC device context for drawing |
| vp | Pointer to current viewport settings (scale, position, rotation) |
Reimplemented from opencpn_plugin.
Definition at line 1548 of file ocpn_plugin.cpp.
|
virtual |
Definition at line 171 of file ocpn_plugin.cpp.