OpenCPN Partial API docs
|
PlugIn GUI API Functions. More...
#include "dychart.h"
#include <wx/wx.h>
#include <wx/arrstr.h>
#include <wx/dc.h>
#include <wx/dcmemory.h>
#include <wx/event.h>
#include <wx/glcanvas.h>
#include <wx/notebook.h>
#include <wx/string.h>
#include <wx/window.h>
#include "model/ais_decoder.h"
#include "model/comm_navmsg_bus.h"
#include "model/idents.h"
#include "model/multiplexer.h"
#include "model/notification_manager.h"
#include "model/own_ship.h"
#include "model/plugin_comm.h"
#include "model/route.h"
#include "model/track.h"
#include "ais.h"
#include "chartdb.h"
#include "chcanv.h"
#include "ConfigMgr.h"
#include "FontMgr.h"
#include "glChartCanvas.h"
#include "gui_lib.h"
#include "navutil.h"
#include "ocpn_app.h"
#include "OCPN_AUIManager.h"
#include "ocpn_frame.h"
#include "OCPNPlatform.h"
#include "ocpn_plugin.h"
#include "options.h"
#include "piano.h"
#include "pluginmanager.h"
#include "routemanagerdialog.h"
#include "routeman_gui.h"
#include "s52plib.h"
#include "SoundFactory.h"
#include "svg_utils.h"
#include "SystemCmdSound.h"
#include "toolbar.h"
#include "waypointman_gui.h"
#include "shapefile_basemap.h"
#include "model/navobj_db.h"
#include <wx/listimpl.cpp>
Go to the source code of this file.
Functions | |
WX_DEFINE_ARRAY_PTR (ChartCanvas *, arrayofCanvasPtr) | |
void | NotifySetupOptionsPlugin (const PlugInData *pic) |
int | InsertPlugInTool (wxString label, wxBitmap *bitmap, wxBitmap *bmpRollover, wxItemKind kind, wxString shortHelp, wxString longHelp, wxObject *clientData, int position, int tool_sel, opencpn_plugin *pplugin) |
Adds a tool to OpenCPN's toolbar. | |
void | RemovePlugInTool (int tool_id) |
Removes a tool from OpenCPN's toolbar. | |
void | SetToolbarToolViz (int item, bool viz) |
Temporarily changes toolbar tool visibility. | |
void | SetToolbarItemState (int item, bool toggle) |
Sets toolbar item toggle state. | |
void | SetToolbarToolBitmaps (int item, wxBitmap *bitmap, wxBitmap *bmpRollover) |
Updates toolbar tool bitmaps. | |
int | InsertPlugInToolSVG (wxString label, wxString SVGfile, wxString SVGfileRollover, wxString SVGfileToggled, wxItemKind kind, wxString shortHelp, wxString longHelp, wxObject *clientData, int position, int tool_sel, opencpn_plugin *pplugin) |
Adds a tool using SVG graphics. | |
void | SetToolbarToolBitmapsSVG (int item, wxString SVGfile, wxString SVGfileRollover, wxString SVGfileToggled) |
Updates SVG graphics for toolbar tool. | |
int | AddCanvasMenuItem (wxMenuItem *pitem, opencpn_plugin *pplugin, const char *name) |
Adds item to canvas context menu. | |
void | SetCanvasMenuItemViz (int item, bool viz, const char *name) |
Temporarily changes context menu item visibility. | |
void | SetCanvasMenuItemGrey (int item, bool grey, const char *name) |
Sets menu item enabled/disabled state. | |
void | RemoveCanvasMenuItem (int item, const char *name) |
Removes a context menu item completely. | |
int | AddCanvasContextMenuItem (wxMenuItem *pitem, opencpn_plugin *pplugin) |
Adds item to chart canvas context menu. | |
void | SetCanvasContextMenuItemViz (int item, bool viz) |
Temporarily changes context menu item visibility. | |
void | SetCanvasContextMenuItemGrey (int item, bool grey) |
Sets menu item enabled/disabled state. | |
void | RemoveCanvasContextMenuItem (int item) |
Removes a context menu item completely. | |
wxFileConfig * | GetOCPNConfigObject (void) |
Gets OpenCPN's configuration object. | |
wxWindow * | GetOCPNCanvasWindow () |
Gets OpenCPN's main canvas window. | |
void | RequestRefresh (wxWindow *win) |
Requests window refresh. | |
void | GetCanvasPixLL (PlugIn_ViewPort *vp, wxPoint *pp, double lat, double lon) |
Converts lat/lon to canvas physical pixel coordinates. | |
void | GetDoubleCanvasPixLL (PlugIn_ViewPort *vp, wxPoint2DDouble *pp, double lat, double lon) |
Converts lat/lon to canvas pixels with double precision. | |
void | GetCanvasLLPix (PlugIn_ViewPort *vp, wxPoint p, double *plat, double *plon) |
Converts canvas physical pixel coordinates to lat/lon. | |
bool | GetGlobalColor (wxString colorName, wxColour *pcolour) |
Gets a global color value. | |
wxFont * | OCPNGetFont (wxString TextElement, int default_size) |
Gets a font for UI elements. | |
wxFont * | GetOCPNScaledFont_PlugIn (wxString TextElement, int default_size) |
double | GetOCPNGUIToolScaleFactor_PlugIn (int GUIScaleFactor) |
Gets GUI scaling factor for a specific scaling level. | |
double | GetOCPNGUIToolScaleFactor_PlugIn () |
Gets current global GUI scaling factor. | |
float | GetOCPNChartScaleFactor_Plugin () |
Gets chart rendering scale factor. | |
wxFont | GetOCPNGUIScaledFont_PlugIn (wxString item) |
Gets a uniquely scaled font copy for responsive UI elements. | |
bool | AddPersistentFontKey (wxString TextElement) |
Registers a new font configuration element. | |
wxString | GetActiveStyleName () |
Gets name of currently active style sheet. | |
wxBitmap | GetBitmapFromSVGFile (wxString filename, unsigned int width, unsigned int height) |
Creates bitmap from SVG file. | |
bool | IsTouchInterface_PlugIn (void) |
Checks if touch interface mode is enabled. | |
wxColour | GetFontColour_PlugIn (wxString TextElement) |
Gets color configured for a UI text element. | |
wxString * | GetpSharedDataLocation (void) |
Gets shared application data location. | |
ArrayOfPlugIn_AIS_Targets * | GetAISTargetArray (void) |
Gets array of AIS targets. | |
wxAuiManager * | GetFrameAuiManager (void) |
Gets main frame AUI manager. | |
void | SendPluginMessage (wxString message_id, wxString message_body) |
Sends message to other plugins. | |
void | DimeWindow (wxWindow *win) |
Applies system color scheme to window. | |
void | JumpToPosition (double lat, double lon, double scale) |
Centers chart display on specified position at given scale. | |
bool | AddLocaleCatalog (wxString catalog) |
Adds a locale catalog for translations. | |
wxString | GetLocaleCanonicalName () |
Gets system locale canonical name. | |
void | PushNMEABuffer (wxString buf) |
Pushes NMEA sentence to the system. | |
wxXmlDocument | GetChartDatabaseEntryXML (int dbIndex, bool b_getGeom) |
Gets chart database entry as XML. | |
bool | UpdateChartDBInplace (wxArrayString dir_array, bool b_force_update, bool b_ProgressDialog) |
Updates chart database in place. | |
wxArrayString | GetChartDBDirArrayString () |
Gets chart database directory list. | |
int | AddChartToDBInPlace (wxString &full_path, bool b_RefreshCanvas) |
Adds a chart to the database without full rebuild. | |
int | RemoveChartFromDBInPlace (wxString &full_path) |
Removes a chart from database without full rebuild. | |
wxScrolledWindow * | AddOptionsPage (OptionsParentPI parent, wxString title) |
Adds a new preferences page to OpenCPN options dialog. | |
bool | DeleteOptionsPage (wxScrolledWindow *page) |
Remove a previously added options page. | |
bool | DecodeSingleVDOMessage (const wxString &str, PlugIn_Position_Fix_Ex *pos, wxString *accumulator) |
Decodes a single VDO (Own Ship AIS) message. | |
int | GetChartbarHeight (void) |
Gets height of chart bar in pixels. | |
bool | GetRoutepointGPX (RoutePoint *pRoutePoint, char *buffer, unsigned int buffer_length) |
bool | GetActiveRoutepointGPX (char *buffer, unsigned int buffer_length) |
Gets GPX representation of active route waypoint. | |
void | PositionBearingDistanceMercator_Plugin (double lat, double lon, double brg, double dist, double *dlat, double *dlon) |
Calculates destination point given start point, bearing and distance. | |
void | DistanceBearingMercator_Plugin (double lat0, double lon0, double lat1, double lon1, double *brg, double *dist) |
Calculates bearing and distance between two points. | |
double | DistGreatCircle_Plugin (double slat, double slon, double dlat, double dlon) |
Calculates great circle distance between two points. | |
void | toTM_Plugin (float lat, float lon, float lat0, float lon0, double *x, double *y) |
Converts geographic coordinates to Transverse Mercator projection. | |
void | fromTM_Plugin (double x, double y, double lat0, double lon0, double *lat, double *lon) |
Converts Transverse Mercator coordinates to geographic. | |
void | toSM_Plugin (double lat, double lon, double lat0, double lon0, double *x, double *y) |
Converts geographic coordinates to Simple Mercator projection. | |
void | fromSM_Plugin (double x, double y, double lat0, double lon0, double *lat, double *lon) |
Converts Simple Mercator coordinates to geographic. | |
void | toSM_ECC_Plugin (double lat, double lon, double lat0, double lon0, double *x, double *y) |
Converts geographic coordinates to Elliptical Simple Mercator projection. | |
void | fromSM_ECC_Plugin (double x, double y, double lat0, double lon0, double *lat, double *lon) |
Converts Elliptical Simple Mercator coordinates to geographic. | |
double | toUsrDistance_Plugin (double nm_distance, int unit) |
Converts nautical miles to user's preferred distance unit. | |
double | fromUsrDistance_Plugin (double usr_distance, int unit) |
Converts from user's preferred distance unit to nautical miles. | |
double | toUsrSpeed_Plugin (double kts_speed, int unit) |
Converts knots to user's preferred speed unit. | |
double | toUsrWindSpeed_Plugin (double kts_speed, int unit) |
Converts knots to user's preferred wind speed unit. | |
double | fromUsrSpeed_Plugin (double usr_speed, int unit) |
Converts from user's preferred speed unit to knots. | |
double | fromUsrWindSpeed_Plugin (double usr_wspeed, int unit) |
Converts from user's preferred wind speed unit to knots. | |
double | toUsrTemp_Plugin (double cel_temp, int unit) |
Converts Celsius to user's preferred temperature unit. | |
double | fromUsrTemp_Plugin (double usr_temp, int unit) |
Converts from user's preferred temperature unit to Celsius. | |
wxString | getUsrDistanceUnit_Plugin (int unit) |
Gets display string for user's preferred distance unit. | |
wxString | getUsrSpeedUnit_Plugin (int unit) |
Gets display string for user's preferred speed unit. | |
wxString | getUsrWindSpeedUnit_Plugin (int unit) |
Gets display string for user's preferred wind speed unit. | |
wxString | getUsrTempUnit_Plugin (int unit) |
Gets display string for user's preferred temperature unit. | |
double | toUsrDepth_Plugin (double m_depth, int unit) |
Converts meters to user's preferred depth unit. | |
double | fromUsrDepth_Plugin (double usr_depth, int unit) |
Converts from user's preferred depth unit to meters. | |
wxString | getUsrDepthUnit_Plugin (int unit) |
Gets display string for user's preferred depth unit. | |
double | fromDMM_PlugIn (wxString sdms) |
Parse a formatted coordinate string to get decimal degrees. | |
bool | PlugIn_GSHHS_CrossesLand (double lat1, double lon1, double lat2, double lon2) |
Checks if a great circle route crosses land. | |
void | PlugInPlaySound (wxString &sound_file) |
Plays a sound file asynchronously. | |
wxString | GetNewGUID (void) |
Generates a new globally unique identifier (GUID). | |
bool | AddCustomWaypointIcon (wxBitmap *pimage, wxString key, wxString description) |
Adds a custom waypoint icon. | |
bool | AddSingleWaypoint (PlugIn_Waypoint *pwaypoint, bool b_permanent) |
Adds a single waypoint. | |
bool | DeleteSingleWaypoint (wxString &GUID) |
Deletes a single waypoint. | |
bool | UpdateSingleWaypoint (PlugIn_Waypoint *pwaypoint) |
Updates a single waypoint. | |
bool | GetSingleWaypoint (wxString GUID, PlugIn_Waypoint *pwaypoint) |
Gets waypoint data by GUID. | |
wxArrayString | GetWaypointGUIDArray (void) |
Gets array of all waypoint/marks GUIDs. | |
wxArrayString | GetRouteGUIDArray (void) |
Gets array of route GUIDs. | |
wxArrayString | GetTrackGUIDArray (void) |
Gets array of track GUIDs. | |
wxArrayString | GetWaypointGUIDArray (OBJECT_LAYER_REQ req) |
Gets array of waypoint/track GUIDs with layer filtering. | |
wxArrayString | GetRouteGUIDArray (OBJECT_LAYER_REQ req) |
Gets array of route GUIDs with layer filtering. | |
wxArrayString | GetTrackGUIDArray (OBJECT_LAYER_REQ req) |
Gets array of track GUIDs with layer filtering. | |
wxArrayString | GetIconNameArray (void) |
Gets array of available waypoint icons. | |
bool | AddPlugInRoute (PlugIn_Route *proute, bool b_permanent) |
Adds a new route. | |
bool | DeletePlugInRoute (wxString &GUID) |
Deletes a route. | |
bool | UpdatePlugInRoute (PlugIn_Route *proute) |
Updates an existing route. | |
bool | AddPlugInTrack (PlugIn_Track *ptrack, bool b_permanent) |
Adds a new track. | |
bool | DeletePlugInTrack (wxString &GUID) |
Deletes a track. | |
bool | UpdatePlugInTrack (PlugIn_Track *ptrack) |
Updates an existing track. | |
bool | PlugInHasNormalizedViewPort (PlugIn_ViewPort *vp) |
Checks if viewport has been normalized. | |
void | PlugInMultMatrixViewport (PlugIn_ViewPort *vp, float lat, float lon) |
Applies viewport transformation matrix. | |
void | PlugInNormalizeViewport (PlugIn_ViewPort *vp, float lat, float lon) |
Normalizes viewport parameters. | |
PlugIn_AIS_Target * | Create_PI_AIS_Target (AisTargetData *ptarget) |
double | fromDMM_Plugin (wxString sdms) |
Converts degrees/decimal minutes string to decimal degrees. | |
void | SetCanvasRotation (double rotation) |
Sets chart display rotation angle. | |
double | GetCanvasTilt () |
Gets current canvas tilt angle. | |
void | SetCanvasTilt (double tilt) |
Gets current canvas tilt angle. | |
void | SetCanvasProjection (int projection) |
Sets chart projection type. | |
bool | PlugInPlaySoundEx (wxString &sound_file, int deviceIndex) |
Start playing a sound file asynchronously. | |
bool | CheckEdgePan_PlugIn (int x, int y, bool dragging, int margin, int delta) |
Checks if chart should pan when cursor near edge. | |
wxBitmap | GetIcon_PlugIn (const wxString &name) |
Gets icon bitmap by name. | |
void | SetCursor_PlugIn (wxCursor *pCursor) |
Sets mouse cursor. | |
void | AddChartDirectory (wxString &path) |
Adds a chart directory to OpenCPN's chart database. | |
void | ForceChartDBUpdate () |
Forces an update of the chart database. | |
void | ForceChartDBRebuild () |
Forces complete rebuild of chart database. | |
wxDialog * | GetActiveOptionsDialog () |
Gets pointer to active options dialog. | |
int | PlatformDirSelectorDialog (wxWindow *parent, wxString *file_spec, wxString Title, wxString initDir) |
Shows platform-optimized directory selector dialog. | |
int | PlatformFileSelectorDialog (wxWindow *parent, wxString *file_spec, wxString Title, wxString initDir, wxString suggestedName, wxString wildcard) |
Shows platform-optimized file selector dialog. | |
ViewPort | CreateCompatibleViewportEx (const PlugIn_ViewPort &pivp) |
void | PlugInAISDrawGL (wxGLCanvas *glcanvas, const PlugIn_ViewPort &vp) |
Renders AIS targets on a secondary OpenGL canvas. | |
bool | PlugInSetFontColor (const wxString TextElement, const wxColour color) |
Sets text color for a UI element. | |
double | PlugInGetDisplaySizeMM () |
Gets physical display size in millimeters. | |
wxFont * | FindOrCreateFont_PlugIn (int point_size, wxFontFamily family, wxFontStyle style, wxFontWeight weight, bool underline, const wxString &facename, wxFontEncoding encoding) |
Creates or finds a font in the font cache. | |
int | PluginGetMinAvailableGshhgQuality () |
int | PluginGetMaxAvailableGshhgQuality () |
void | PlugInHandleAutopilotRoute (bool enable) |
Controls autopilot route handling. | |
bool | LaunchDefaultBrowser_Plugin (wxString url) |
wxString | GetSelectedWaypointGUID_Plugin () |
Gets GUID of currently selected waypoint. | |
wxString | GetSelectedRouteGUID_Plugin () |
Gets GUID of currently selected route. | |
wxString | GetSelectedTrackGUID_Plugin () |
Gets GUID of currently selected track. | |
std::unique_ptr< PlugIn_Waypoint > | GetWaypoint_Plugin (const wxString &GUID) |
Gets waypoint details by GUID. | |
std::unique_ptr< PlugIn_Route > | GetRoute_Plugin (const wxString &GUID) |
Gets route details by GUID. | |
std::unique_ptr< PlugIn_Track > | GetTrack_Plugin (const wxString &GUID) |
Gets track details by GUID. | |
wxWindow * | PluginGetFocusCanvas () |
Gets the currently focused chart canvas. | |
wxWindow * | PluginGetOverlayRenderCanvas () |
Gets the canvas currently designated for overlay rendering. | |
void | CanvasJumpToPosition (wxWindow *canvas, double lat, double lon, double scale) |
Centers specified canvas on given position at given scale. | |
bool | ShuttingDown (void) |
Checks if OpenCPN is in shutdown process. | |
wxWindow * | GetCanvasUnderMouse (void) |
Gets canvas window under mouse cursor. | |
int | GetCanvasIndexUnderMouse (void) |
Gets index of chart canvas under mouse cursor. | |
wxWindow * | GetCanvasByIndex (int canvasIndex) |
Gets chart canvas window by index. | |
bool | CheckMUIEdgePan_PlugIn (int x, int y, bool dragging, int margin, int delta, int canvasIndex) |
Checks if chart should pan when cursor near edge. | |
void | SetMUICursor_PlugIn (wxCursor *pCursor, int canvasIndex) |
Sets mouse cursor for specific canvas. | |
int | GetCanvasCount () |
Gets total number of chart canvases. | |
int | GetLatLonFormat () |
Gets currently selected latitude/longitude display format. | |
wxRect | GetMasterToolbarRect () |
Gets bounding rectangle of master toolbar. | |
void | ZeroXTE () |
Resets cross track error to zero. | |
bool | GetSingleWaypointExV2 (wxString GUID, PlugIn_Waypoint_ExV2 *pwaypoint) |
Gets extended waypoint data by GUID. | |
RoutePoint * | CreateNewPoint (const PlugIn_Waypoint_ExV2 *src, bool b_permanent) |
bool | AddSingleWaypointExV2 (PlugIn_Waypoint_ExV2 *pwaypointex, bool b_permanent) |
Adds a waypoint with extended V2 properties. | |
bool | UpdateSingleWaypointExV2 (PlugIn_Waypoint_ExV2 *pwaypoint) |
Updates an existing extended V2 waypoint. | |
std::unique_ptr< PlugIn_Waypoint_ExV2 > | GetWaypointExV2_Plugin (const wxString &GUID) |
Gets complete waypoint details by GUID. | |
bool | AddPlugInRouteExV2 (PlugIn_Route_ExV2 *proute, bool b_permanent) |
Adds a new route with V2 waypoints. | |
bool | UpdatePlugInRouteExV2 (PlugIn_Route_ExV2 *proute) |
Updates existing route with V2 waypoints. | |
std::unique_ptr< PlugIn_Route_ExV2 > | GetRouteExV2_Plugin (const wxString &GUID) |
Gets route details with V2 waypoints by GUID. | |
RoutePoint * | CreateNewPoint (const PlugIn_Waypoint_Ex *src, bool b_permanent) |
bool | GetSingleWaypointEx (wxString GUID, PlugIn_Waypoint_Ex *pwaypoint) |
Gets extended waypoint data by GUID. | |
bool | AddSingleWaypointEx (PlugIn_Waypoint_Ex *pwaypointex, bool b_permanent) |
Adds a waypoint with extended properties. | |
bool | UpdateSingleWaypointEx (PlugIn_Waypoint_Ex *pwaypoint) |
Updates an existing extended waypoint. | |
bool | AddPlugInRouteEx (PlugIn_Route_Ex *proute, bool b_permanent) |
Adds a route with extended features. | |
bool | UpdatePlugInRouteEx (PlugIn_Route_Ex *proute) |
Updates an existing extended route. | |
std::unique_ptr< PlugIn_Waypoint_Ex > | GetWaypointEx_Plugin (const wxString &GUID) |
Gets extended waypoint by GUID. | |
std::unique_ptr< PlugIn_Route_Ex > | GetRouteEx_Plugin (const wxString &GUID) |
Gets extended route by GUID. | |
wxString | GetActiveWaypointGUID (void) |
Gets GUID of currently active waypoint. | |
wxString | GetActiveRouteGUID (void) |
Gets GUID of currently active route. | |
int | GetGlobalWatchdogTimoutSeconds () |
Comm Global Watchdog Query | |
std::vector< std::string > | GetPriorityMaps () |
Comm Priority query support methods | |
void | UpdateAndApplyPriorityMaps (std::vector< std::string > map) |
Sets and applies new priority mapping scheme. | |
std::vector< std::string > | GetActivePriorityIdentifiers () |
Gets list of active priority identifiers. | |
double | OCPN_GetDisplayContentScaleFactor () |
Gets content scaling factor for current display. | |
double | OCPN_GetWinDIPScaleFactor () |
Gets Windows-specific DPI scaling factor. | |
void | ExitOCPN () |
Exits OpenCPN application. | |
bool | GetFullScreen () |
Gets full screen state. | |
void | SetFullScreen (bool set_full_screen_on) |
Sets full screen mode. | |
void | EnableMUIBar (bool enable, int CanvasIndex) |
Controls visibility of MUI (Mobile/Touch User Interface) bar. | |
bool | GetEnableMUIBar (int CanvasIndex) |
Gets MUI bar visibility state. | |
void | EnableCompassGPSIcon (bool enable, int CanvasIndex) |
Controls visibility of compass/GPS status icon. | |
bool | GetEnableCompassGPSIcon (int CanvasIndex) |
Gets compass icon visibility state. | |
void | EnableStatusBar (bool enable) |
Shows/hides the status bar. | |
bool | GetEnableStatusBar () |
Gets status bar visibility state. | |
void | EnableChartBar (bool enable, int CanvasIndex) |
Controls visibility of chart info bar. | |
bool | GetEnableChartBar (int CanvasIndex) |
Gets chart bar visibility state. | |
void | EnableMenu (bool enable) |
Shows/hides the main menu bar. | |
bool | GetEnableMenu () |
Gets menu bar visibility state. | |
void | SetGlobalColor (std::string table, std::string name, wxColor color) |
Sets a color in the global color scheme. | |
wxColor | GetGlobalColorD (std::string map_name, std::string name) |
Gets a color from the global color scheme. | |
void | EnableLatLonGrid (bool enable, int CanvasIndex) |
Controls latitude/longitude grid display. | |
void | EnableChartOutlines (bool enable, int CanvasIndex) |
Controls chart outline display. | |
void | EnableDepthUnitDisplay (bool enable, int CanvasIndex) |
Controls depth unit display. | |
void | EnableAisTargetDisplay (bool enable, int CanvasIndex) |
Controls AIS target display. | |
void | EnableTideStationsDisplay (bool enable, int CanvasIndex) |
Controls tide station icon display. | |
void | EnableCurrentStationsDisplay (bool enable, int CanvasIndex) |
Controls current station icon display. | |
void | EnableENCTextDisplay (bool enable, int CanvasIndex) |
Controls ENC text label display. | |
void | EnableENCDepthSoundingsDisplay (bool enable, int CanvasIndex) |
Controls ENC depth sounding display. | |
void | EnableBuoyLightLabelsDisplay (bool enable, int CanvasIndex) |
Controls buoy/light name label display. | |
void | EnableLightsDisplay (bool enable, int CanvasIndex) |
Controls light icon display. | |
void | EnableLightDescriptionsDisplay (bool enable, int CanvasIndex) |
Controls light description text display. | |
void | SetENCDisplayCategory (PI_DisCat cat, int CanvasIndex) |
Sets ENC (Electronic Navigation Chart) feature display category. | |
PI_DisCat | GetENCDisplayCategory (int CanvasIndex) |
Gets current ENC display category. | |
void | SetNavigationMode (PI_NavMode mode, int CanvasIndex) |
Sets the navigation mode for a specific chart canvas. | |
PI_NavMode | GetNavigationMode (int CanvasIndex) |
Gets current navigation mode for a canvas. | |
bool | GetEnableLatLonGrid (int CanvasIndex) |
Gets latitude/longitude grid visibility state. | |
bool | GetEnableChartOutlines (int CanvasIndex) |
Gets chart outline visibility state. | |
bool | GetEnableDepthUnitDisplay (int CanvasIndex) |
Gets depth unit display state. | |
bool | GetEnableAisTargetDisplay (int CanvasIndex) |
Gets AIS target display state. | |
bool | GetEnableTideStationsDisplay (int CanvasIndex) |
Gets tide station icon visibility. | |
bool | GetEnableCurrentStationsDisplay (int CanvasIndex) |
Gets current station icon visibility. | |
bool | GetEnableENCTextDisplay (int CanvasIndex) |
Gets ENC text label visibility. | |
bool | GetEnableENCDepthSoundingsDisplay (int CanvasIndex) |
Gets ENC depth sounding visibility. | |
bool | GetEnableBuoyLightLabelsDisplay (int CanvasIndex) |
Gets buoy/light label visibility. | |
bool | GetEnableLightsDisplay (int CanvasIndex) |
Gets light icon visibility. | |
bool | GetShowENCLightDesc (int CanvasIndex) |
void | EnableTouchMode (bool enable) |
Enables/disables touch interface mode. | |
bool | GetTouchMode () |
Gets touch interface mode state. | |
void | EnableLookaheadMode (bool enable, int CanvasIndex) |
Enables/disables look-ahead mode for a canvas. | |
bool | GetEnableLookaheadMode (int CanvasIndex) |
Gets look-ahead mode state for a canvas. | |
void | SetTrackingMode (bool enable) |
Enable or disable tracking mode. | |
bool | GetTrackingMode () |
Get the current tracking mode status. | |
void | SetAppColorScheme (PI_ColorScheme cs) |
Set the application color scheme. | |
PI_ColorScheme | GetAppColorScheme () |
Get the current application color scheme. | |
void | RequestWindowRefresh (wxWindow *win, bool eraseBackground) |
Requests window refresh. | |
void | EnableSplitScreenLayout (bool enable) |
Enable or disable the split-screen layout. | |
void | PluginZoomCanvas (int CanvasIndex, double factor) |
Zoom a specific chart canvas by the given factor. | |
bool | GetEnableMainToolbar () |
Check if the main toolbar is enabled. | |
void | SetEnableMainToolbar (bool enable) |
Show or hide the main toolbar. | |
void | ShowGlobalSettingsDialog () |
Display the global settings dialog. | |
void | PluginCenterOwnship (int CanvasIndex) |
Center the chart view on the own ship position for a specific canvas. | |
void | PluginSetFollowMode (int CanvasIndex, bool enable_follow) |
Set follow mode for a specific canvas. | |
bool | PluginGetFollowMode (int CanvasIndex) |
Get the current follow mode status for a specific canvas. | |
void | EnableCanvasFocusBar (bool enable, int CanvasIndex) |
Controls visibility of canvas focus indicator. | |
bool | GetEnableCanvasFocusBar (int CanvasIndex) |
Gets focus indicator visibility state. | |
bool | GetEnableTenHertzUpdate () |
Check if 10 Hz update rate is enabled. | |
void | EnableTenHertzUpdate (bool enable) |
Enable or disable 10 Hz update rate. | |
void | ConfigFlushAndReload () |
Flush configuration changes to disk and reload settings. | |
void | EnableNotificationCanvasIcon (bool enable) |
Plugin Notification Framework GUI support. | |
PlugIn GUI API Functions.
Definition in file ocpn_plugin_gui.cpp.
int AddCanvasContextMenuItem | ( | wxMenuItem * | pitem, |
opencpn_plugin * | pplugin | ||
) |
Adds item to chart canvas context menu.
This method adds a menu item to the right-click context menu.
pitem | Menu item to add |
pplugin | Pointer to plugin instance |
Definition at line 213 of file ocpn_plugin_gui.cpp.
int AddCanvasMenuItem | ( | wxMenuItem * | pitem, |
opencpn_plugin * | pplugin, | ||
const char * | name = "" |
||
) |
Adds item to canvas context menu.
pitem | Menu item to add |
pplugin | Pointer to plugin instance |
name | Optional canvas name for multi-canvas configs |
Definition at line 193 of file ocpn_plugin_gui.cpp.
void AddChartDirectory | ( | wxString & | path | ) |
Adds a chart directory to OpenCPN's chart database.
Registers a new directory containing charts for OpenCPN to scan and include in its database.
path | Full path to directory containing charts |
Definition at line 1452 of file ocpn_plugin_gui.cpp.
int AddChartToDBInPlace | ( | wxString & | full_path, |
bool | b_RefreshCanvas | ||
) |
Adds a chart to the database without full rebuild.
Adds a single chart to OpenCPN's database and optionally refreshes display.
full_path | Full path to chart file |
b_RefreshCanvas | True to refresh display after adding |
Definition at line 485 of file ocpn_plugin_gui.cpp.
bool AddCustomWaypointIcon | ( | wxBitmap * | pimage, |
wxString | key, | ||
wxString | description | ||
) |
Adds a custom waypoint icon.
Registers a new custom waypoint icon for use in OpenCPN.
pimage | Bitmap image for the icon |
key | Unique identifier for the icon |
description | User-friendly description |
Definition at line 830 of file ocpn_plugin_gui.cpp.
bool AddLocaleCatalog | ( | wxString | catalog | ) |
Adds a locale catalog for translations.
Adds a plugin's translation catalog to OpenCPN's locale system.
catalog | Path to translation catalog file |
Definition at line 418 of file ocpn_plugin_gui.cpp.
wxScrolledWindow * AddOptionsPage | ( | OptionsParentPI | parent, |
wxString | title | ||
) |
Adds a new preferences page to OpenCPN options dialog.
Creates a new panel in the specified section of the options dialog. Plugin should populate the returned wxScrolledWindow with preference controls.
parent | Parent section to add page to (see OptionsParentPI enum) |
title | Title shown for the new page |
Definition at line 551 of file ocpn_plugin_gui.cpp.
bool AddPersistentFontKey | ( | wxString | TextElement | ) |
Registers a new font configuration element.
Allows plugins to define custom UI elements needing font configuration, beyond the standard elements defined in OCPNGetFont().
TextElement | New UI element identifier to register |
Definition at line 330 of file ocpn_plugin_gui.cpp.
bool AddPlugInRoute | ( | PlugIn_Route * | proute, |
bool | b_permanent = true |
||
) |
Adds a new route.
Creates a new route and adds it to OpenCPN's route management system.
proute | Route to add |
b_permanent | True to save persistently, false for temporary |
Definition at line 1149 of file ocpn_plugin_gui.cpp.
bool AddPlugInRouteEx | ( | PlugIn_Route_Ex * | proute, |
bool | b_permanent = true |
||
) |
Adds a route with extended features.
proute | Extended route data to add |
b_permanent | True to save persistently, false for temporary |
Definition at line 2584 of file ocpn_plugin_gui.cpp.
bool AddPlugInRouteExV2 | ( | PlugIn_Route_ExV2 * | proute, |
bool | b_permanent = true |
||
) |
Adds a new route with V2 waypoints.
proute | Route to add |
Definition at line 2248 of file ocpn_plugin_gui.cpp.
bool AddPlugInTrack | ( | PlugIn_Track * | ptrack, |
bool | b_permanent = true |
||
) |
Adds a new track.
Creates a new track and adds it to OpenCPN's track manager.
ptrack | Track to add |
b_permanent | True to save persistently, false for temporary |
Definition at line 1235 of file ocpn_plugin_gui.cpp.
bool AddSingleWaypoint | ( | PlugIn_Waypoint * | pwaypoint, |
bool | b_permanent = true |
||
) |
Adds a single waypoint.
Creates a new waypoint and adds it to OpenCPN's waypoint management system.
pwaypoint | Waypoint to add |
b_permanent | True to save persistently, false for temporary |
Definition at line 858 of file ocpn_plugin_gui.cpp.
bool AddSingleWaypointEx | ( | PlugIn_Waypoint_Ex * | pwaypoint, |
bool | b_permanent = true |
||
) |
Adds a waypoint with extended properties.
pwaypoint | Extended waypoint data to add |
b_permanent | True to save persistently, false for temporary |
Definition at line 2479 of file ocpn_plugin_gui.cpp.
bool AddSingleWaypointExV2 | ( | PlugIn_Waypoint_ExV2 * | pwaypoint, |
bool | b_permanent = true |
||
) |
Adds a waypoint with extended V2 properties.
pwaypoint | Extended V2 waypoint data to add |
b_permanent | True to save persistently, false for temporary |
Definition at line 2124 of file ocpn_plugin_gui.cpp.
void CanvasJumpToPosition | ( | wxWindow * | canvas, |
double | lat, | ||
double | lon, | ||
double | scale | ||
) |
Centers specified canvas on given position at given scale.
canvas | Canvas window to adjust view for |
lat | Target latitude in decimal degrees |
lon | Target longitude in decimal degrees |
scale | Display scale factor (larger = more zoomed in) |
Definition at line 1661 of file ocpn_plugin_gui.cpp.
bool CheckEdgePan_PlugIn | ( | int | x, |
int | y, | ||
bool | dragging, | ||
int | margin, | ||
int | delta | ||
) |
Checks if chart should pan when cursor near edge.
Tests if automatic chart panning should occur based on cursor position.
x | Cursor X coordinate |
y | Cursor Y coordinate |
dragging | True if mouse is being dragged |
margin | Edge margin width in pixels |
delta | Pan amount in pixels |
Definition at line 1438 of file ocpn_plugin_gui.cpp.
bool CheckMUIEdgePan_PlugIn | ( | int | x, |
int | y, | ||
bool | dragging, | ||
int | margin, | ||
int | delta, | ||
int | canvasIndex | ||
) |
Checks if chart should pan when cursor near edge.
Tests if automatic chart panning should occur based on cursor position for a specific canvas.
x | Cursor X coordinate in canvas space |
y | Cursor Y coordinate in canvas space |
dragging | True if mouse is being dragged |
margin | Edge margin width in pixels |
delta | Pan amount in pixels |
canvasIndex | Index of canvas to check |
Definition at line 1703 of file ocpn_plugin_gui.cpp.
void ConfigFlushAndReload | ( | ) |
Flush configuration changes to disk and reload settings.
Forces immediate saving of any pending configuration changes and reloads all settings.
Definition at line 3224 of file ocpn_plugin_gui.cpp.
PlugIn_AIS_Target * Create_PI_AIS_Target | ( | AisTargetData * | ptarget | ) |
Definition at line 1359 of file ocpn_plugin_gui.cpp.
ViewPort CreateCompatibleViewportEx | ( | const PlugIn_ViewPort & | pivp | ) |
Definition at line 1489 of file ocpn_plugin_gui.cpp.
RoutePoint * CreateNewPoint | ( | const PlugIn_Waypoint_Ex * | src, |
bool | b_permanent | ||
) |
Definition at line 2438 of file ocpn_plugin_gui.cpp.
RoutePoint * CreateNewPoint | ( | const PlugIn_Waypoint_ExV2 * | src, |
bool | b_permanent | ||
) |
Definition at line 2083 of file ocpn_plugin_gui.cpp.
bool DecodeSingleVDOMessage | ( | const wxString & | str, |
PlugIn_Position_Fix_Ex * | pos, | ||
wxString * | acc | ||
) |
Decodes a single VDO (Own Ship AIS) message.
Parses a VDO sentence and extracts position and accuracy information.
str | The raw VDO sentence |
pos | Will receive decoded position data |
acc | Will receive accuracy information |
Definition at line 589 of file ocpn_plugin_gui.cpp.
bool DeleteOptionsPage | ( | wxScrolledWindow * | page | ) |
Remove a previously added options page.
Should be called from plugin's DeInit() method.
page | Pointer to page previously returned by AddOptionsPage() |
Definition at line 584 of file ocpn_plugin_gui.cpp.
bool DeletePlugInRoute | ( | wxString & | GUID | ) |
Deletes a route.
Removes route identified by GUID from OpenCPN.
GUID | Unique identifier of route to delete |
Definition at line 1206 of file ocpn_plugin_gui.cpp.
bool DeletePlugInTrack | ( | wxString & | GUID | ) |
Deletes a track.
Removes track identified by GUID from OpenCPN.
GUID | Unique identifier of track to delete |
Definition at line 1277 of file ocpn_plugin_gui.cpp.
bool DeleteSingleWaypoint | ( | wxString & | GUID | ) |
Deletes a single waypoint.
Removes waypoint identified by GUID from OpenCPN.
GUID | Unique identifier of waypoint to delete |
Definition at line 904 of file ocpn_plugin_gui.cpp.
void DimeWindow | ( | wxWindow * | win | ) |
Applies system color scheme to window.
Adjusts window colors to match OpenCPN's color scheme.
window | Window to adjust colors for |
Definition at line 411 of file ocpn_plugin_gui.cpp.
void DistanceBearingMercator_Plugin | ( | double | lat0, |
double | lon0, | ||
double | lat1, | ||
double | lon1, | ||
double * | brg, | ||
double * | dist | ||
) |
Calculates bearing and distance between two points.
Uses Mercator projection math.
lat0 | Start latitude in decimal degrees |
lon0 | Start longitude in decimal degrees |
lat1 | End latitude in decimal degrees |
lon1 | End longitude in decimal degrees |
brg | Bearing in degrees true (output) |
dist | Distance in nautical miles (output) |
Definition at line 665 of file ocpn_plugin_gui.cpp.
double DistGreatCircle_Plugin | ( | double | slat, |
double | slon, | ||
double | dlat, | ||
double | dlon | ||
) |
Calculates great circle distance between two points.
slat | Start latitude in decimal degrees |
slon | Start longitude in decimal degrees |
dlat | End latitude in decimal degrees |
dlon | End longitude in decimal degrees |
Definition at line 670 of file ocpn_plugin_gui.cpp.
void EnableAisTargetDisplay | ( | bool | enable, |
int | CanvasIndex | ||
) |
Controls AIS target display.
enable | True to show AIS targets |
CanvasIndex | Index of target canvas |
Definition at line 2901 of file ocpn_plugin_gui.cpp.
void EnableBuoyLightLabelsDisplay | ( | bool | enable, |
int | CanvasIndex | ||
) |
Controls buoy/light name label display.
enable | True to show buoy/light names |
CanvasIndex | Index of target canvas |
Definition at line 2936 of file ocpn_plugin_gui.cpp.
void EnableCanvasFocusBar | ( | bool | enable, |
int | CanvasIndex | ||
) |
Controls visibility of canvas focus indicator.
Shows which canvas currently has input focus.
enable | True to show focus indicator |
CanvasIndex | Index of target canvas |
Definition at line 3206 of file ocpn_plugin_gui.cpp.
void EnableChartBar | ( | bool | enable, |
int | CanvasIndex | ||
) |
Controls visibility of chart info bar.
enable | True to show chart bar |
CanvasIndex | Index of target canvas |
Definition at line 2831 of file ocpn_plugin_gui.cpp.
void EnableChartOutlines | ( | bool | enable, |
int | CanvasIndex | ||
) |
Controls chart outline display.
enable | True to show available chart boundaries |
CanvasIndex | Index of target canvas |
Definition at line 2887 of file ocpn_plugin_gui.cpp.
void EnableCompassGPSIcon | ( | bool | enable, |
int | CanvasIndex | ||
) |
Controls visibility of compass/GPS status icon.
enable | True to show compass icon |
CanvasIndex | Index of target canvas |
Definition at line 2805 of file ocpn_plugin_gui.cpp.
void EnableCurrentStationsDisplay | ( | bool | enable, |
int | CanvasIndex | ||
) |
Controls current station icon display.
enable | True to show current station markers |
CanvasIndex | Index of target canvas |
Definition at line 2915 of file ocpn_plugin_gui.cpp.
void EnableDepthUnitDisplay | ( | bool | enable, |
int | CanvasIndex | ||
) |
Controls depth unit display.
enable | True to show depth unit indicators |
CanvasIndex | Index of target canvas |
Definition at line 2894 of file ocpn_plugin_gui.cpp.
void EnableENCDepthSoundingsDisplay | ( | bool | enable, |
int | CanvasIndex | ||
) |
Controls ENC depth sounding display.
enable | True to show depth soundings |
CanvasIndex | Index of target canvas |
Definition at line 2929 of file ocpn_plugin_gui.cpp.
void EnableENCTextDisplay | ( | bool | enable, |
int | CanvasIndex | ||
) |
Controls ENC text label display.
enable | True to show ENC feature text labels |
CanvasIndex | Index of target canvas |
Definition at line 2922 of file ocpn_plugin_gui.cpp.
void EnableLatLonGrid | ( | bool | enable, |
int | CanvasIndex | ||
) |
Controls latitude/longitude grid display.
enable | True to show lat/lon grid lines |
CanvasIndex | Index of target canvas |
Definition at line 2880 of file ocpn_plugin_gui.cpp.
void EnableLightDescriptionsDisplay | ( | bool | enable, |
int | CanvasIndex | ||
) |
Controls light description text display.
enable | True to show light descriptions |
CanvasIndex | Index of target canvas |
Definition at line 2950 of file ocpn_plugin_gui.cpp.
void EnableLightsDisplay | ( | bool | enable, |
int | CanvasIndex | ||
) |
Controls light icon display.
enable | True to show light icons |
CanvasIndex | Index of target canvas |
Definition at line 2943 of file ocpn_plugin_gui.cpp.
void EnableLookaheadMode | ( | bool | enable, |
int | CanvasIndex | ||
) |
Enables/disables look-ahead mode for a canvas.
Look-ahead mode shifts chart view ahead of vessel position.
enable | True to enable look-ahead |
CanvasIndex | Index of target canvas |
Definition at line 3101 of file ocpn_plugin_gui.cpp.
void EnableMenu | ( | bool | enable | ) |
Shows/hides the main menu bar.
enable | True to show menu bar, false to hide |
Definition at line 2849 of file ocpn_plugin_gui.cpp.
void EnableMUIBar | ( | bool | enable, |
int | CanvasIndex | ||
) |
Controls visibility of MUI (Mobile/Touch User Interface) bar.
enable | True to show MUI bar |
CanvasIndex | Index of target canvas |
Definition at line 2784 of file ocpn_plugin_gui.cpp.
void EnableNotificationCanvasIcon | ( | bool | enable | ) |
Plugin Notification Framework GUI support.
Definition at line 3246 of file ocpn_plugin_gui.cpp.
void EnableSplitScreenLayout | ( | bool | enable = true | ) |
Enable or disable the split-screen layout.
Controls whether OpenCPN uses multiple chart canvases in a split-screen configuration.
enable | True to enable split-screen layout, false for single canvas mode. |
Definition at line 3136 of file ocpn_plugin_gui.cpp.
void EnableStatusBar | ( | bool | enable | ) |
Shows/hides the status bar.
enable | True to show status bar, false to hide |
Definition at line 2824 of file ocpn_plugin_gui.cpp.
void EnableTenHertzUpdate | ( | bool | enable | ) |
Enable or disable 10 Hz update rate.
Controls the frequency of position updates and screen redraws.
enable | True to enable 10 Hz updates, false for standard update rate. |
Definition at line 3222 of file ocpn_plugin_gui.cpp.
void EnableTideStationsDisplay | ( | bool | enable, |
int | CanvasIndex | ||
) |
Controls tide station icon display.
enable | True to show tide station markers |
CanvasIndex | Index of target canvas |
Definition at line 2908 of file ocpn_plugin_gui.cpp.
void EnableTouchMode | ( | bool | enable | ) |
Enables/disables touch interface mode.
enable | True to enable touch optimized interface |
Definition at line 3097 of file ocpn_plugin_gui.cpp.
void ExitOCPN | ( | ) |
Exits OpenCPN application.
Triggers a clean shutdown of OpenCPN.
Definition at line 2771 of file ocpn_plugin_gui.cpp.
wxFont * FindOrCreateFont_PlugIn | ( | int | point_size, |
wxFontFamily | family, | ||
wxFontStyle | style, | ||
wxFontWeight | weight, | ||
bool | underline = false , |
||
const wxString & | facename = wxEmptyString , |
||
wxFontEncoding | encoding = wxFONTENCODING_DEFAULT |
||
) |
Creates or finds a font in the font cache.
point_size | Font size in points |
family | Font family (wxFONTFAMILY_SWISS etc) |
style | Style flags (wxFONTSTYLE_NORMAL etc) |
weight | Weight flags (wxFONTWEIGHT_NORMAL etc) |
underline | True for underlined font |
facename | Font face name, empty for default |
encoding | Font encoding, wxFONTENCODING_DEFAULT for default |
Definition at line 1535 of file ocpn_plugin_gui.cpp.
void ForceChartDBRebuild | ( | ) |
Forces complete rebuild of chart database.
Triggers OpenCPN to do a full rebuild of its chart database by rescanning all configured chart directories from scratch.
Definition at line 1465 of file ocpn_plugin_gui.cpp.
void ForceChartDBUpdate | ( | ) |
Forces an update of the chart database.
Triggers OpenCPN to scan configured chart directories for new or removed charts and update the database accordingly.
Definition at line 1458 of file ocpn_plugin_gui.cpp.
double fromDMM_PlugIn | ( | wxString | sdms | ) |
Parse a formatted coordinate string to get decimal degrees.
This function attempts to parse a wide variety of formatted coordinate strings and convert them to decimal degrees. It handles formats like:
sdms | The formatted coordinate string to parse |
Definition at line 762 of file ocpn_plugin_gui.cpp.
double fromDMM_Plugin | ( | wxString | sdms | ) |
Converts degrees/decimal minutes string to decimal degrees.
Parses position strings in DDMMss format like "4930.000N".
sdms | Position string in degrees/decimal minutes format |
Definition at line 1401 of file ocpn_plugin_gui.cpp.
void fromSM_ECC_Plugin | ( | double | x, |
double | y, | ||
double | lat0, | ||
double | lon0, | ||
double * | lat, | ||
double * | lon | ||
) |
Converts Elliptical Simple Mercator coordinates to geographic.
x | Easting coordinate |
y | Northing coordinate |
lat0 | Reference latitude |
lon0 | Central meridian |
lat | Latitude in decimal degrees (output) |
lon | Longitude in decimal degrees (output) |
Definition at line 700 of file ocpn_plugin_gui.cpp.
void fromSM_Plugin | ( | double | x, |
double | y, | ||
double | lat0, | ||
double | lon0, | ||
double * | lat, | ||
double * | lon | ||
) |
Converts Simple Mercator coordinates to geographic.
x | Easting coordinate |
y | Northing coordinate |
lat0 | Reference latitude |
lon0 | Central meridian |
lat | Latitude in decimal degrees (output) |
lon | Longitude in decimal degrees (output) |
Definition at line 690 of file ocpn_plugin_gui.cpp.
void fromTM_Plugin | ( | double | x, |
double | y, | ||
double | lat0, | ||
double | lon0, | ||
double * | lat, | ||
double * | lon | ||
) |
Converts Transverse Mercator coordinates to geographic.
x | Easting coordinate |
y | Northing coordinate |
lat0 | Reference latitude |
lon0 | Central meridian |
lat | Latitude in decimal degrees (output) |
lon | Longitude in decimal degrees (output) |
Definition at line 680 of file ocpn_plugin_gui.cpp.
double fromUsrDepth_Plugin | ( | double | usr_depth, |
int | unit = -1 |
||
) |
Converts from user's preferred depth unit to meters.
usr_depth | Depth in user's unit |
unit | Override unit choice (-1 for user preference): 0=feet, 1=meters, 2=fathoms |
Definition at line 756 of file ocpn_plugin_gui.cpp.
double fromUsrDistance_Plugin | ( | double | usr_distance, |
int | unit = -1 |
||
) |
Converts from user's preferred distance unit to nautical miles.
usr_distance | Distance value in user's unit |
unit | Override unit choice (-1 for user preference): 0=nm, 1=km, 2=mi, 3=fathoms |
Definition at line 709 of file ocpn_plugin_gui.cpp.
double fromUsrSpeed_Plugin | ( | double | usr_speed, |
int | unit = -1 |
||
) |
Converts from user's preferred speed unit to knots.
usr_speed | Speed value in user's unit |
unit | Override unit choice (-1 for user preference): 0=knots, 1=km/h, 2=mph, 3=m/s |
Definition at line 721 of file ocpn_plugin_gui.cpp.
double fromUsrTemp_Plugin | ( | double | usr_temp, |
int | unit = -1 |
||
) |
Converts from user's preferred temperature unit to Celsius.
usr_temp | Temperature in user's unit |
unit | Override unit choice (-1 for user preference): 0=Celsius, 1=Fahrenheit |
Definition at line 733 of file ocpn_plugin_gui.cpp.
double fromUsrWindSpeed_Plugin | ( | double | usr_wspeed, |
int | unit = -1 |
||
) |
Converts from user's preferred wind speed unit to knots.
usr_wspeed | Wind speed in user's unit |
unit | Override unit choice (-1 for user preference): 0=knots, 1=m/s, 2=mph, 3=km/h |
Definition at line 725 of file ocpn_plugin_gui.cpp.
wxDialog * GetActiveOptionsDialog | ( | ) |
Gets pointer to active options dialog.
Definition at line 1471 of file ocpn_plugin_gui.cpp.
std::vector< std::string > GetActivePriorityIdentifiers | ( | ) |
Gets list of active priority identifiers.
Returns list of currently active data source priority identifiers.
Definition at line 2728 of file ocpn_plugin_gui.cpp.
wxString GetActiveRouteGUID | ( | void | ) |
Gets GUID of currently active route.
Definition at line 2705 of file ocpn_plugin_gui.cpp.
bool GetActiveRoutepointGPX | ( | char * | buffer, |
unsigned int | buffer_length | ||
) |
Gets GPX representation of active route waypoint.
Retrieves an XML/GPX format description of the currently active route waypoint. The buffer will contain a GPX formatted waypoint like:
<?xml version="1.0"?> <wpt lat="50.123456" lon="-4.123456"> <name>Waypoint Name</name> <sym>triangle</sym> <type>WPT</type> <time>2024-03-12T10:30:00Z</time> <extensions> <opencpn:guid>12345678-1234-1234-1234-123456789012</opencpn:guid> <opencpn:viz>1</opencpn:viz> <opencpn:viz_name>0</opencpn:viz_name> </extensions> </wpt>
buffer | Pre-allocated char buffer to receive GPX data |
buffer_length | Size of provided buffer in bytes |
Definition at line 651 of file ocpn_plugin_gui.cpp.
wxString GetActiveStyleName | ( | ) |
Gets name of currently active style sheet.
Returns the name of the currently selected S52 presentation library style. Style sheets control the overall appearance of vector chart features.
Definition at line 334 of file ocpn_plugin_gui.cpp.
wxString GetActiveWaypointGUID | ( | void | ) |
Gets GUID of currently active waypoint.
Definition at line 2696 of file ocpn_plugin_gui.cpp.
ArrayOfPlugIn_AIS_Targets * GetAISTargetArray | ( | void | ) |
Gets array of AIS targets.
Returns array of all currently tracked AIS targets.
Definition at line 373 of file ocpn_plugin_gui.cpp.
PI_ColorScheme GetAppColorScheme | ( | ) |
Get the current application color scheme.
Definition at line 3128 of file ocpn_plugin_gui.cpp.
wxBitmap GetBitmapFromSVGFile | ( | wxString | filename, |
unsigned int | width, | ||
unsigned int | height | ||
) |
Creates bitmap from SVG file.
Renders an SVG file to a bitmap at the specified dimensions. Useful for creating resolution-independent toolbar icons and other graphics.
filename | Full path to SVG file |
width | Desired bitmap width in pixels |
height | Desired bitmap height in pixels |
Definition at line 341 of file ocpn_plugin_gui.cpp.
wxWindow * GetCanvasByIndex | ( | int | canvasIndex | ) |
Gets chart canvas window by index.
Retrieves pointer to a specific canvas window by its index number in multi-canvas configurations.
canvasIndex | Index of canvas to get (0-based) |
Definition at line 1692 of file ocpn_plugin_gui.cpp.
int GetCanvasCount | ( | ) |
Gets total number of chart canvases.
Returns the number of active chart canvas windows.
Definition at line 1728 of file ocpn_plugin_gui.cpp.
int GetCanvasIndexUnderMouse | ( | ) |
Gets index of chart canvas under mouse cursor.
Returns the index of the canvas window that the mouse cursor is currently positioned over in multi-canvas configurations. Note that having the mouse over a canvas does not automatically give that canvas focus - it merely indicates mouse position.
Definition at line 1671 of file ocpn_plugin_gui.cpp.
void GetCanvasLLPix | ( | PlugIn_ViewPort * | vp, |
wxPoint | p, | ||
double * | plat, | ||
double * | plon | ||
) |
Converts canvas physical pixel coordinates to lat/lon.
Transforms screen physical pixels to geographic coordinates for the given viewport.
vp | Current viewport |
p | Physical pixel coordinates |
plat | Will receive latitude in decimal degrees |
plon | Will receive longitude in decimal degrees |
Definition at line 283 of file ocpn_plugin_gui.cpp.
void GetCanvasPixLL | ( | PlugIn_ViewPort * | vp, |
wxPoint * | pp, | ||
double | lat, | ||
double | lon | ||
) |
Converts lat/lon to canvas physical pixel coordinates.
Transforms geographic coordinates to screen physical pixels for the given viewport.
vp | Current viewport |
pp | Will receive physical pixel coordinates |
lat | Latitude in decimal degrees |
lon | Longitude in decimal degrees |
Definition at line 250 of file ocpn_plugin_gui.cpp.
double GetCanvasTilt | ( | ) |
Gets current canvas tilt angle.
Returns the tilt angle of the chart display canvas in degrees. Tilt provides a 3D perspective view of the chart.
Definition at line 1407 of file ocpn_plugin_gui.cpp.
wxWindow * GetCanvasUnderMouse | ( | ) |
Gets canvas window under mouse cursor.
Definition at line 1669 of file ocpn_plugin_gui.cpp.
int GetChartbarHeight | ( | void | ) |
Gets height of chart bar in pixels.
Definition at line 615 of file ocpn_plugin_gui.cpp.
wxXmlDocument GetChartDatabaseEntryXML | ( | int | dbIndex, |
bool | b_getGeom | ||
) |
Gets chart database entry as XML.
Retrieves XML representation of chart database entry.
dbIndex | Index of chart in database |
b_getGeom | True to include chart geometry info |
Definition at line 457 of file ocpn_plugin_gui.cpp.
wxArrayString GetChartDBDirArrayString | ( | ) |
Gets chart database directory list.
Returns array of chart directories in database.
Definition at line 481 of file ocpn_plugin_gui.cpp.
void GetDoubleCanvasPixLL | ( | PlugIn_ViewPort * | vp, |
wxPoint2DDouble * | pp, | ||
double | lat, | ||
double | lon | ||
) |
Converts lat/lon to canvas pixels with double precision.
High-precision version of GetCanvasPixLL() for accurate positioning. Transforms geographic coordinates to canvas pixel coordinates.
vp | Current viewport settings |
pp | Will receive pixel coordinates as doubles |
lat | Latitude in decimal degrees |
lon | Longitude in decimal degrees |
Definition at line 267 of file ocpn_plugin_gui.cpp.
bool GetEnableAisTargetDisplay | ( | int | CanvasIndex | ) |
Gets AIS target display state.
CanvasIndex | Index of canvas to query |
Definition at line 3033 of file ocpn_plugin_gui.cpp.
bool GetEnableBuoyLightLabelsDisplay | ( | int | CanvasIndex | ) |
Gets buoy/light label visibility.
CanvasIndex | Index of canvas to query |
Definition at line 3073 of file ocpn_plugin_gui.cpp.
bool GetEnableCanvasFocusBar | ( | int | CanvasIndex | ) |
Gets focus indicator visibility state.
CanvasIndex | Index of canvas to query |
Definition at line 3212 of file ocpn_plugin_gui.cpp.
bool GetEnableChartBar | ( | int | CanvasIndex | ) |
Gets chart bar visibility state.
CanvasIndex | Index of canvas to query |
Definition at line 2846 of file ocpn_plugin_gui.cpp.
bool GetEnableChartOutlines | ( | int | CanvasIndex | ) |
Gets chart outline visibility state.
CanvasIndex | Index of canvas to query |
Definition at line 3017 of file ocpn_plugin_gui.cpp.
bool GetEnableCompassGPSIcon | ( | int | CanvasIndex | ) |
Gets compass icon visibility state.
CanvasIndex | Index of canvas to query |
Definition at line 2812 of file ocpn_plugin_gui.cpp.
bool GetEnableCurrentStationsDisplay | ( | int | CanvasIndex | ) |
Gets current station icon visibility.
CanvasIndex | Index of canvas to query |
Definition at line 3049 of file ocpn_plugin_gui.cpp.
bool GetEnableDepthUnitDisplay | ( | int | CanvasIndex | ) |
Gets depth unit display state.
CanvasIndex | Index of canvas to query |
Definition at line 3025 of file ocpn_plugin_gui.cpp.
bool GetEnableENCDepthSoundingsDisplay | ( | int | CanvasIndex | ) |
Gets ENC depth sounding visibility.
CanvasIndex | Index of canvas to query |
Definition at line 3065 of file ocpn_plugin_gui.cpp.
bool GetEnableENCTextDisplay | ( | int | CanvasIndex | ) |
Gets ENC text label visibility.
CanvasIndex | Index of canvas to query |
Definition at line 3057 of file ocpn_plugin_gui.cpp.
bool GetEnableLatLonGrid | ( | int | CanvasIndex | ) |
Gets latitude/longitude grid visibility state.
CanvasIndex | Index of canvas to query |
Definition at line 3009 of file ocpn_plugin_gui.cpp.
bool GetEnableLightsDisplay | ( | int | CanvasIndex | ) |
Gets light icon visibility.
CanvasIndex | Index of canvas to query |
Definition at line 3081 of file ocpn_plugin_gui.cpp.
bool GetEnableLookaheadMode | ( | int | CanvasIndex | ) |
Gets look-ahead mode state for a canvas.
CanvasIndex | Index of canvas to query |
Definition at line 3108 of file ocpn_plugin_gui.cpp.
bool GetEnableMainToolbar | ( | ) |
Check if the main toolbar is enabled.
Definition at line 3165 of file ocpn_plugin_gui.cpp.
bool GetEnableMenu | ( | ) |
Gets menu bar visibility state.
Definition at line 2865 of file ocpn_plugin_gui.cpp.
bool GetEnableMUIBar | ( | int | CanvasIndex | ) |
Gets MUI bar visibility state.
CanvasIndex | Index of canvas to query |
Definition at line 2803 of file ocpn_plugin_gui.cpp.
bool GetEnableStatusBar | ( | ) |
Gets status bar visibility state.
Definition at line 2829 of file ocpn_plugin_gui.cpp.
bool GetEnableTenHertzUpdate | ( | ) |
Check if 10 Hz update rate is enabled.
When enabled, position updates and screen redraws occur at approximately 10 times per second.
Definition at line 3220 of file ocpn_plugin_gui.cpp.
bool GetEnableTideStationsDisplay | ( | int | CanvasIndex | ) |
Gets tide station icon visibility.
CanvasIndex | Index of canvas to query |
Definition at line 3041 of file ocpn_plugin_gui.cpp.
PI_DisCat GetENCDisplayCategory | ( | int | CanvasIndex | ) |
Gets current ENC display category.
CanvasIndex | Index of canvas to query |
Definition at line 2981 of file ocpn_plugin_gui.cpp.
wxColour GetFontColour_PlugIn | ( | wxString | TextElement | ) |
Gets color configured for a UI text element.
TextElement | UI element ID like "AISTargetAlert" |
Definition at line 365 of file ocpn_plugin_gui.cpp.
wxAuiManager * GetFrameAuiManager | ( | void | ) |
Gets main frame AUI manager.
Provides access to wxAuiManager controlling OpenCPN's main frame layout. Used by plugins that need to add/manage dockable windows.
Definition at line 395 of file ocpn_plugin_gui.cpp.
bool GetFullScreen | ( | ) |
Gets full screen state.
Definition at line 2773 of file ocpn_plugin_gui.cpp.
bool GetGlobalColor | ( | wxString | colorName, |
wxColour * | pcolour | ||
) |
Gets a global color value.
Retrieves color values from OpenCPN's color scheme system.
colorName | Name of the color to retrieve |
pcolour | Pointer to wxColour to receive the color value |
Definition at line 299 of file ocpn_plugin_gui.cpp.
wxColor GetGlobalColorD | ( | std::string | map_name, |
std::string | name | ||
) |
Gets a color from the global color scheme.
map_name | Color scheme name ("DAY", "DUSK", "NIGHT") |
name | Color identifier within scheme |
Definition at line 2871 of file ocpn_plugin_gui.cpp.
int GetGlobalWatchdogTimoutSeconds | ( | ) |
Comm Global Watchdog Query
Gets global watchdog timeout value.
Definition at line 2715 of file ocpn_plugin_gui.cpp.
wxBitmap GetIcon_PlugIn | ( | const wxString & | name | ) |
Gets icon bitmap by name.
Retrieves standard OpenCPN toolbar icon bitmap by name.
name | Name/identifier of icon to get |
Definition at line 1443 of file ocpn_plugin_gui.cpp.
wxArrayString GetIconNameArray | ( | void | ) |
Gets array of available waypoint icons.
Definition at line 1139 of file ocpn_plugin_gui.cpp.
int GetLatLonFormat | ( | void | ) |
Gets currently selected latitude/longitude display format.
Returns the coordinate format currently configured in OpenCPN settings.
Definition at line 1734 of file ocpn_plugin_gui.cpp.
wxString GetLocaleCanonicalName | ( | ) |
Gets system locale canonical name.
Returns the canonical name of current system locale (e.g. "en_US"). Used for localization and translations.
Definition at line 431 of file ocpn_plugin_gui.cpp.
wxRect GetMasterToolbarRect | ( | ) |
Gets bounding rectangle of master toolbar.
Returns the screen coordinates and size of OpenCPN's main toolbar. Useful for positioning plugin UI elements relative to the toolbar.
Definition at line 1736 of file ocpn_plugin_gui.cpp.
PI_NavMode GetNavigationMode | ( | int | CanvasIndex | ) |
Gets current navigation mode for a canvas.
CanvasIndex | Index of canvas to query |
Definition at line 3001 of file ocpn_plugin_gui.cpp.
wxString GetNewGUID | ( | ) |
Generates a new globally unique identifier (GUID).
Creates a unique string identifier suitable for waypoints, routes, etc. Format is RFC 4122 compliant UUID string.
Definition at line 828 of file ocpn_plugin_gui.cpp.
wxWindow * GetOCPNCanvasWindow | ( | ) |
Gets OpenCPN's main canvas window.
Provides access to the main chart display window.
Definition at line 237 of file ocpn_plugin_gui.cpp.
float GetOCPNChartScaleFactor_Plugin | ( | ) |
Gets chart rendering scale factor.
Returns the scaling factor used for chart display. This may differ from the GUI scaling factor to optimize chart rendering and readability.
Definition at line 322 of file ocpn_plugin_gui.cpp.
wxFileConfig * GetOCPNConfigObject | ( | void | ) |
Gets OpenCPN's configuration object.
Provides access to OpenCPN's wxFileConfig object for reading/writing settings.
Definition at line 229 of file ocpn_plugin_gui.cpp.
wxFont GetOCPNGUIScaledFont_PlugIn | ( | wxString | item | ) |
Gets a uniquely scaled font copy for responsive UI elements.
Like GetOCPNScaledFont_PlugIn() but scales font size more aggressively based on OpenCPN's responsive/touchscreen mode settings. Used by GUI tools and windows that need larger fonts for touch usability. Always ensures minimum 3mm physical size regardless of configured point size.
item | UI element name to get font for |
Definition at line 326 of file ocpn_plugin_gui.cpp.
double GetOCPNGUIToolScaleFactor_PlugIn | ( | ) |
Gets current global GUI scaling factor.
Returns the display scaling factor currently in use for the OpenCPN GUI. Used to scale plugin UI elements to match core application.
Definition at line 318 of file ocpn_plugin_gui.cpp.
double GetOCPNGUIToolScaleFactor_PlugIn | ( | int | GUIScaledFactor | ) |
Gets GUI scaling factor for a specific scaling level.
Returns the display scaling factor to use for GUI elements at a given scaling level. Used to scale toolbar icons and other UI elements.
GUIScaledFactor | Base scaling factor level (typically 0-5) |
Definition at line 314 of file ocpn_plugin_gui.cpp.
wxFont * GetOCPNScaledFont_PlugIn | ( | wxString | TextElement, |
int | default_size | ||
) |
Definition at line 310 of file ocpn_plugin_gui.cpp.
std::vector< std::string > GetPriorityMaps | ( | ) |
Comm Priority query support methods
Gets list of configured priority mapping schemes.
Definition at line 2718 of file ocpn_plugin_gui.cpp.
wxString * GetpSharedDataLocation | ( | ) |
Gets shared application data location.
Returns path to OpenCPN's shared data directory containing resources like:
Definition at line 369 of file ocpn_plugin_gui.cpp.
std::unique_ptr< PlugIn_Route > GetRoute_Plugin | ( | const wxString & | GUID | ) |
Gets route details by GUID.
guid | GUID of route to get |
Definition at line 1594 of file ocpn_plugin_gui.cpp.
std::unique_ptr< PlugIn_Route_Ex > GetRouteEx_Plugin | ( | const wxString & | GUID | ) |
Gets extended route by GUID.
Returns smart pointer to route with extended properties.
guid | GUID of route to get |
Definition at line 2663 of file ocpn_plugin_gui.cpp.
std::unique_ptr< PlugIn_Route_ExV2 > GetRouteExV2_Plugin | ( | const wxString & | GUID | ) |
Gets route details with V2 waypoints by GUID.
Returns comprehensive route object with all V2 waypoint properties.
GUID | Unique identifier of route to retrieve |
Definition at line 2321 of file ocpn_plugin_gui.cpp.
wxArrayString GetRouteGUIDArray | ( | OBJECT_LAYER_REQ | req | ) |
Gets array of route GUIDs with layer filtering.
Returns list of globally unique identifiers for routes, filtered by layer requirements.
req | Filter option:
|
Definition at line 1095 of file ocpn_plugin_gui.cpp.
wxArrayString GetRouteGUIDArray | ( | void | ) |
Gets array of route GUIDs.
Returns list of globally unique identifiers for all routes.
Definition at line 1046 of file ocpn_plugin_gui.cpp.
bool GetRoutepointGPX | ( | RoutePoint * | pRoutePoint, |
char * | buffer, | ||
unsigned int | buffer_length | ||
) |
Definition at line 626 of file ocpn_plugin_gui.cpp.
wxString GetSelectedRouteGUID_Plugin | ( | ) |
Gets GUID of currently selected route.
Definition at line 1572 of file ocpn_plugin_gui.cpp.
wxString GetSelectedTrackGUID_Plugin | ( | ) |
Gets GUID of currently selected track.
Definition at line 1580 of file ocpn_plugin_gui.cpp.
wxString GetSelectedWaypointGUID_Plugin | ( | ) |
Gets GUID of currently selected waypoint.
Definition at line 1564 of file ocpn_plugin_gui.cpp.
bool GetShowENCLightDesc | ( | int | CanvasIndex | ) |
Definition at line 3089 of file ocpn_plugin_gui.cpp.
bool GetSingleWaypoint | ( | wxString | GUID, |
PlugIn_Waypoint * | pwaypoint | ||
) |
Gets waypoint data by GUID.
Retrieves details for a specific waypoint.
GUID | Unique identifier of waypoint to get |
pwaypoint | Pointer to receive waypoint data |
Definition at line 1020 of file ocpn_plugin_gui.cpp.
bool GetSingleWaypointEx | ( | wxString | GUID, |
PlugIn_Waypoint_Ex * | pwaypoint | ||
) |
Gets extended waypoint data by GUID.
GUID | Unique identifier of waypoint to get |
pwaypoint | Pointer to receive waypoint data |
Definition at line 2468 of file ocpn_plugin_gui.cpp.
bool GetSingleWaypointExV2 | ( | wxString | GUID, |
PlugIn_Waypoint_ExV2 * | pwaypoint | ||
) |
Gets extended waypoint data by GUID.
GUID | Unique identifier of waypoint to get |
pwaypoint | Pointer to receive waypoint data |
Definition at line 2050 of file ocpn_plugin_gui.cpp.
bool GetTouchMode | ( | ) |
Gets touch interface mode state.
Definition at line 3099 of file ocpn_plugin_gui.cpp.
std::unique_ptr< PlugIn_Track > GetTrack_Plugin | ( | const wxString & | GUID | ) |
Gets track details by GUID.
guid | GUID of track to get |
Definition at line 1624 of file ocpn_plugin_gui.cpp.
wxArrayString GetTrackGUIDArray | ( | OBJECT_LAYER_REQ | req | ) |
Gets array of track GUIDs with layer filtering.
Returns list of globally unique identifiers for tracks, filtered by layer requirements.
req | Filter option:
|
Definition at line 1120 of file ocpn_plugin_gui.cpp.
wxArrayString GetTrackGUIDArray | ( | void | ) |
Gets array of track GUIDs.
Returns list of globally unique identifiers for all tracks.
Definition at line 1061 of file ocpn_plugin_gui.cpp.
bool GetTrackingMode | ( | ) |
Get the current tracking mode status.
Definition at line 3123 of file ocpn_plugin_gui.cpp.
wxString getUsrDepthUnit_Plugin | ( | int | unit = -1 | ) |
Gets display string for user's preferred depth unit.
unit | Override unit choice (-1 for user preference): 0=feet, 1=meters, 2=fathoms |
Definition at line 760 of file ocpn_plugin_gui.cpp.
wxString getUsrDistanceUnit_Plugin | ( | int | unit = -1 | ) |
Gets display string for user's preferred distance unit.
unit | Override unit choice (-1 for user preference): 0=nm, 1=km, 2=mi, 3=fathoms |
Definition at line 737 of file ocpn_plugin_gui.cpp.
wxString getUsrSpeedUnit_Plugin | ( | int | unit = -1 | ) |
Gets display string for user's preferred speed unit.
unit | Override unit choice (-1 for user preference): 0=knots, 1=km/h, 2=mph, 3=m/s |
Definition at line 741 of file ocpn_plugin_gui.cpp.
wxString getUsrTempUnit_Plugin | ( | int | unit = -1 | ) |
Gets display string for user's preferred temperature unit.
unit | Override unit choice (-1 for user preference): 0=Celsius, 1=Fahrenheit, 2=Kelvin |
Definition at line 747 of file ocpn_plugin_gui.cpp.
wxString getUsrWindSpeedUnit_Plugin | ( | int | unit = -1 | ) |
Gets display string for user's preferred wind speed unit.
unit | Override unit choice (-1 for user preference): 0=knots, 1=m/s, 2=mph, 3=km/h |
Definition at line 743 of file ocpn_plugin_gui.cpp.
std::unique_ptr< PlugIn_Waypoint > GetWaypoint_Plugin | ( | const wxString & | GUID | ) |
Gets waypoint details by GUID.
guid | GUID of waypoint to get |
Definition at line 1588 of file ocpn_plugin_gui.cpp.
std::unique_ptr< PlugIn_Waypoint_Ex > GetWaypointEx_Plugin | ( | const wxString & | GUID | ) |
Gets extended waypoint by GUID.
Returns smart pointer to waypoint with extended properties.
guid | GUID of waypoint to get |
Definition at line 2657 of file ocpn_plugin_gui.cpp.
std::unique_ptr< PlugIn_Waypoint_ExV2 > GetWaypointExV2_Plugin | ( | const wxString & | GUID | ) |
Gets complete waypoint details by GUID.
Returns a comprehensive waypoint object with all V2 properties.
GUID | Unique identifier of waypoint to retrieve |
Definition at line 2241 of file ocpn_plugin_gui.cpp.
wxArrayString GetWaypointGUIDArray | ( | OBJECT_LAYER_REQ | req | ) |
Gets array of waypoint/track GUIDs with layer filtering.
Returns list of globally unique identifiers for waypoints, filtered by layer requirements.
req | Filter option:
|
Definition at line 1070 of file ocpn_plugin_gui.cpp.
wxArrayString GetWaypointGUIDArray | ( | void | ) |
Gets array of all waypoint/marks GUIDs.
Can be used in conjunction with GetSingleWaypoint() or GetSingleWaypointEx to retrieve waypoint/mark details by GUID.
Definition at line 1031 of file ocpn_plugin_gui.cpp.
int InsertPlugInTool | ( | wxString | label, |
wxBitmap * | bitmap, | ||
wxBitmap * | bmpRollover, | ||
wxItemKind | kind, | ||
wxString | shortHelp, | ||
wxString | longHelp, | ||
wxObject * | clientData, | ||
int | position, | ||
int | tool_sel, | ||
opencpn_plugin * | pplugin | ||
) |
Adds a tool to OpenCPN's toolbar.
This method creates and adds a new tool button to OpenCPN's main toolbar.
label | Tool identifier and internal name |
bitmap | Normal state bitmap |
bmpRollover | Bitmap shown on mouseover (optional) |
kind | Tool type (normal, toggle, radio button etc) |
shortHelp | Tooltip text |
longHelp | Detailed help text |
clientData | Optional user data pointer |
position | Position in toolbar (-1 for end) |
tool_sel | Tool selection mode |
pplugin | Pointer to plugin instance |
Definition at line 143 of file ocpn_plugin_gui.cpp.
int InsertPlugInToolSVG | ( | wxString | label, |
wxString | SVGfile, | ||
wxString | SVGfileRollover, | ||
wxString | SVGfileToggled, | ||
wxItemKind | kind, | ||
wxString | shortHelp, | ||
wxString | longHelp, | ||
wxObject * | clientData, | ||
int | position, | ||
int | tool_sel, | ||
opencpn_plugin * | pplugin | ||
) |
Adds a tool using SVG graphics.
Like InsertPlugInTool but using SVG files for scalable graphics.
label | Tool identifier and internal name |
SVGfile | Normal state SVG file path |
SVGfileRollover | Rollover state SVG file path |
SVGfileToggled | Toggled state SVG file path |
kind | Tool type (normal, toggle etc) |
shortHelp | Tooltip text |
longHelp | Detailed help text |
clientData | Optional user data |
position | Position in toolbar (-1 for end) |
tool_sel | Tool selection mode |
pplugin | Pointer to plugin instance |
Definition at line 171 of file ocpn_plugin_gui.cpp.
bool IsTouchInterface_PlugIn | ( | void | ) |
Checks if touch interface mode is enabled.
Returns whether OpenCPN is currently operating in touch-optimized mode. Touch mode affects UI element sizes and interaction behaviors.
Definition at line 363 of file ocpn_plugin_gui.cpp.
void JumpToPosition | ( | double | lat, |
double | lon, | ||
double | scale | ||
) |
Centers chart display on specified position at given scale.
lat | Latitude in decimal degrees |
lon | Longitude in decimal degrees |
scale | Display scale factor |
Definition at line 413 of file ocpn_plugin_gui.cpp.
bool LaunchDefaultBrowser_Plugin | ( | wxString | url | ) |
Definition at line 1555 of file ocpn_plugin_gui.cpp.
void NotifySetupOptionsPlugin | ( | const PlugInData * | pic | ) |
Definition at line 1588 of file pluginmanager.cpp.
double OCPN_GetDisplayContentScaleFactor | ( | ) |
Gets content scaling factor for current display.
Returns the display scaling factor used for scaling UI content on high DPI displays. Common on GTK3 and Mac Retina displays.
Definition at line 2748 of file ocpn_plugin_gui.cpp.
double OCPN_GetWinDIPScaleFactor | ( | ) |
Gets Windows-specific DPI scaling factor.
Returns Windows DPI scaling factor configured in display settings.
Definition at line 2756 of file ocpn_plugin_gui.cpp.
wxFont * OCPNGetFont | ( | wxString | TextElement, |
int | default_size = 0 |
||
) |
Gets a font for UI elements.
Plugins can use this to access OpenCPN's font management system which supports locale-dependent fonts and colors. Font configurations are cached and shared to minimize memory usage.
TextElement | UI element identifier. Supported values:
|
default_size | Font size in points, 0 to use system default size |
Definition at line 306 of file ocpn_plugin_gui.cpp.
int PlatformDirSelectorDialog | ( | wxWindow * | parent, |
wxString * | file_spec, | ||
wxString | Title, | ||
wxString | initDir | ||
) |
Shows platform-optimized directory selector dialog.
Displays a platform-native directory selection dialog that is optimized for each operating system's conventions and capabilities.
parent | Parent window for the dialog |
file_spec | Will receive selected directory path |
Title | Dialog title text |
initDir | Initial directory to show |
Definition at line 1473 of file ocpn_plugin_gui.cpp.
int PlatformFileSelectorDialog | ( | wxWindow * | parent, |
wxString * | file_spec, | ||
wxString | Title, | ||
wxString | initDir, | ||
wxString | suggestedName, | ||
wxString | wildcard | ||
) |
Shows platform-optimized file selector dialog.
Displays a platform-native file selection dialog that is optimized for each operating system's conventions and capabilities.
parent | Parent window for the dialog |
file_spec | Will receive selected file path |
Title | Dialog title text |
initDir | Initial directory to show |
suggestedName | Suggested filename |
wildcard | File type filter (e.g. "*.txt") |
Definition at line 1478 of file ocpn_plugin_gui.cpp.
bool PlugIn_GSHHS_CrossesLand | ( | double | lat1, |
double | lon1, | ||
double | lat2, | ||
double | lon2 | ||
) |
Checks if a great circle route crosses land.
Tests if a direct path between two points intersects with land using GSHHS (Global Self-consistent Hierarchical High-resolution Shorelines) data.
lat1 | Start latitude in decimal degrees |
lon1 | Start longitude in decimal degrees |
lat2 | End latitude in decimal degrees |
lon2 | End longitude in decimal degrees |
Definition at line 764 of file ocpn_plugin_gui.cpp.
void PlugInAISDrawGL | ( | wxGLCanvas * | glcanvas, |
const PlugIn_ViewPort & | vp | ||
) |
Renders AIS targets on a secondary OpenGL canvas.
This function allows plugins to render AIS targets on additional OpenGL canvases beyond the main chart display. This is useful for creating auxiliary navigation views that need to show vessel traffic.
glcanvas | The OpenGL canvas to draw on |
vp | Current viewport settings for the canvas |
Definition at line 1516 of file ocpn_plugin_gui.cpp.
void PluginCenterOwnship | ( | int | CanvasIndex | ) |
Center the chart view on the own ship position for a specific canvas.
CanvasIndex | Index of the target canvas (0 for the first canvas). |
Definition at line 3175 of file ocpn_plugin_gui.cpp.
double PlugInGetDisplaySizeMM | ( | ) |
Gets physical display size in millimeters.
Returns the physical display dimensions to allow proper scaling of navigation elements like range rings, which need to maintain true physical size regardless of screen resolution.
Definition at line 1533 of file ocpn_plugin_gui.cpp.
wxWindow * PluginGetFocusCanvas | ( | ) |
Gets the currently focused chart canvas.
Returns the chart canvas window that currently has input focus in multi-canvas configurations. A canvas gains focus when:
Focus determines which canvas:
Definition at line 1653 of file ocpn_plugin_gui.cpp.
bool PluginGetFollowMode | ( | int | CanvasIndex | ) |
Get the current follow mode status for a specific canvas.
CanvasIndex | Index of the target canvas (0 for the first canvas). |
Definition at line 3198 of file ocpn_plugin_gui.cpp.
int PluginGetMaxAvailableGshhgQuality | ( | ) |
Definition at line 1546 of file ocpn_plugin_gui.cpp.
int PluginGetMinAvailableGshhgQuality | ( | ) |
Definition at line 1543 of file ocpn_plugin_gui.cpp.
wxWindow * PluginGetOverlayRenderCanvas | ( | ) |
Gets the canvas currently designated for overlay rendering.
Returns the chart canvas window that should receive plugin overlay graphics in multi-canvas configurations.
Definition at line 1655 of file ocpn_plugin_gui.cpp.
void PlugInHandleAutopilotRoute | ( | bool | enable | ) |
Controls autopilot route handling.
Enables or disables sending of active route information to autopilot. When enabled, OpenCPN will send route waypoints and other navigation data to connected autopilot devices.
enable | True to enable autopilot route updates, false to disable |
Definition at line 1551 of file ocpn_plugin_gui.cpp.
bool PlugInHasNormalizedViewPort | ( | PlugIn_ViewPort * | vp | ) |
Checks if viewport has been normalized.
Tests whether the viewport parameters have been adjusted to a normalized form suitable for OpenGL rendering.
vp | Viewport to check |
Definition at line 1312 of file ocpn_plugin_gui.cpp.
void PlugInMultMatrixViewport | ( | PlugIn_ViewPort * | vp, |
float | lat = 0 , |
||
float | lon = 0 |
||
) |
Applies viewport transformation matrix.
Applies rotation, scaling and translation to viewport based on reference point. Used with OpenGL display lists for efficient rendering.
vp | Viewport to transform |
lat | Optional reference latitude (default 0) |
lon | Optional reference longitude (default 0) |
Definition at line 1323 of file ocpn_plugin_gui.cpp.
void PlugInNormalizeViewport | ( | PlugIn_ViewPort * | vp, |
float | lat = 0 , |
||
float | lon = 0 |
||
) |
Normalizes viewport parameters.
Adjusts viewport parameters to a normalized form for consistent OpenGL rendering. The normalized form simplifies transformations and coordinates.
vp | Viewport to normalize |
lat | Optional reference latitude (default 0) |
lon | Optional reference longitude (default 0) |
Definition at line 1340 of file ocpn_plugin_gui.cpp.
void PlugInPlaySound | ( | wxString & | sound_file | ) |
Plays a sound file asynchronously.
sound_file | Path to audio file to play |
Definition at line 780 of file ocpn_plugin_gui.cpp.
bool PlugInPlaySoundEx | ( | wxString & | sound_file, |
int | deviceIndex = -1 |
||
) |
Start playing a sound file asynchronously.
Supported formats depends on sound backend. The deviceIx is only used on platforms using the portaudio sound backend where -1 indicates the default device.
Definition at line 1421 of file ocpn_plugin_gui.cpp.
void PluginSetFollowMode | ( | int | CanvasIndex, |
bool | enable_follow | ||
) |
Set follow mode for a specific canvas.
When follow mode is enabled, the chart will automatically move with the vessel position.
CanvasIndex | Index of the target canvas (0 for the first canvas). |
enable_follow | True to enable follow mode, false to disable. |
Definition at line 3189 of file ocpn_plugin_gui.cpp.
bool PlugInSetFontColor | ( | const wxString | TextElement, |
const wxColour | color | ||
) |
Sets text color for a UI element.
TextElement | UI element ID. See OCPNGetFont() |
color | New text color to use |
Definition at line 1525 of file ocpn_plugin_gui.cpp.
void PluginZoomCanvas | ( | int | CanvasIndex, |
double | factor | ||
) |
Zoom a specific chart canvas by the given factor.
Values greater than 1.0 zoom in, values less than 1.0 zoom out.
CanvasIndex | Index of the target canvas (0 for the first canvas). |
factor | Zoom factor to apply. |
Definition at line 3158 of file ocpn_plugin_gui.cpp.
void PositionBearingDistanceMercator_Plugin | ( | double | lat, |
double | lon, | ||
double | brg, | ||
double | dist, | ||
double * | dlat, | ||
double * | dlon | ||
) |
Calculates destination point given start point, bearing and distance.
Uses Mercator projection math.
lat | Start latitude in decimal degrees |
lon | Start longitude in decimal degrees |
brg | Bearing in degrees true |
dist | Distance in nautical miles |
dlat | Destination latitude (output) |
dlon | Destination longitude (output) |
Definition at line 659 of file ocpn_plugin_gui.cpp.
void PushNMEABuffer | ( | wxString | str | ) |
Pushes NMEA sentence to the system.
Adds an NMEA sentence to OpenCPN's data stream as if received from device.
str | Complete NMEA sentence including checksum |
Definition at line 434 of file ocpn_plugin_gui.cpp.
void RemoveCanvasContextMenuItem | ( | int | item | ) |
Removes a context menu item completely.
Unlike SetCanvasContextMenuItemViz(), this permanently removes the menu item.
item | Menu item ID returned from AddCanvasContextMenuItem() |
Definition at line 226 of file ocpn_plugin_gui.cpp.
void RemoveCanvasMenuItem | ( | int | item, |
const char * | name = "" |
||
) |
Removes a context menu item completely.
Unlike SetCanvasMenuItemViz(), this permanently removes the menu item.
item | Menu item ID returned from AddCanvasMenuItem() |
name | Optional canvas name for multi-canvas configs (empty for default) |
Definition at line 209 of file ocpn_plugin_gui.cpp.
int RemoveChartFromDBInPlace | ( | wxString & | full_path | ) |
Removes a chart from database without full rebuild.
full_path | Full path to chart file to remove |
Definition at line 520 of file ocpn_plugin_gui.cpp.
void RemovePlugInTool | ( | int | tool_id | ) |
Removes a tool from OpenCPN's toolbar.
This method removes a previously added plugin tool from the toolbar.
tool_id | Tool ID returned by InsertPlugInTool() |
Definition at line 155 of file ocpn_plugin_gui.cpp.
void RequestRefresh | ( | wxWindow * | win | ) |
Requests window refresh.
Triggers a redraw of the specified window.
window | Window to refresh |
Definition at line 246 of file ocpn_plugin_gui.cpp.
void RequestWindowRefresh | ( | wxWindow * | win, |
bool | eraseBackground | ||
) |
Requests window refresh.
Triggers a redraw of the specified window.
win | Window to refresh |
eraseBackground | True to erase background before redraw |
Definition at line 3132 of file ocpn_plugin_gui.cpp.
void SendPluginMessage | ( | wxString | message_id, |
wxString | message_body | ||
) |
Sends message to other plugins.
Broadcasts a message that other plugins can receive.
message_id | Message identifier |
message_body | Message content |
Definition at line 397 of file ocpn_plugin_gui.cpp.
void SetAppColorScheme | ( | PI_ColorScheme | cs | ) |
Set the application color scheme.
Changes the color scheme for the entire application including charts, UI elements, and plugin displays.
cs | The color scheme to apply (DAY, DUSK, or NIGHT). |
Definition at line 3125 of file ocpn_plugin_gui.cpp.
void SetCanvasContextMenuItemGrey | ( | int | item, |
bool | grey | ||
) |
Sets menu item enabled/disabled state.
Greys out (disables) or enables a context menu item.
item | Menu item ID to modify |
grey | True to disable (grey out), false to enable |
Definition at line 222 of file ocpn_plugin_gui.cpp.
void SetCanvasContextMenuItemViz | ( | int | item, |
bool | viz | ||
) |
Temporarily changes context menu item visibility.
Hides or shows a context menu item without removing it.
item | Menu item ID to modify |
viz | True to show item, false to hide |
Definition at line 218 of file ocpn_plugin_gui.cpp.
void SetCanvasMenuItemGrey | ( | int | item, |
bool | grey, | ||
const char * | name = "" |
||
) |
Sets menu item enabled/disabled state.
Greys out (disables) or enables a context menu item.
item | Menu item ID to modify |
grey | True to disable (grey out), false to enable |
name | Optional canvas name (empty for default) |
Definition at line 205 of file ocpn_plugin_gui.cpp.
void SetCanvasMenuItemViz | ( | int | item, |
bool | viz, | ||
const char * | name = "" |
||
) |
Temporarily changes context menu item visibility.
Hides or shows a context menu item without removing it.
item | Menu item ID to modify |
viz | True to show item, false to hide |
name | Optional canvas name (empty for default) |
Definition at line 201 of file ocpn_plugin_gui.cpp.
void SetCanvasProjection | ( | int | projection | ) |
Sets chart projection type.
Changes the projection used for chart display.
projection | Projection type from PI_ProjectionType enum:
|
Definition at line 1413 of file ocpn_plugin_gui.cpp.
void SetCanvasRotation | ( | double | rotation | ) |
Sets chart display rotation angle.
Rotates the chart display by the specified angle.
rotation | Rotation angle in degrees (0-360) 0 = North up 90 = East up etc. |
Definition at line 1403 of file ocpn_plugin_gui.cpp.
void SetCanvasTilt | ( | double | tilt | ) |
Gets current canvas tilt angle.
Returns the tilt angle of the chart display canvas in degrees. Tilt provides a 3D perspective view of the chart.
Definition at line 1409 of file ocpn_plugin_gui.cpp.
void SetCursor_PlugIn | ( | wxCursor * | pPlugin_Cursor = NULL | ) |
Sets mouse cursor.
Changes the mouse cursor displayed over chart window.
pPlugin_Cursor | Pointer to cursor to use, NULL for default |
Definition at line 1448 of file ocpn_plugin_gui.cpp.
void SetEnableMainToolbar | ( | bool | enable | ) |
Show or hide the main toolbar.
enable | True to show the toolbar, false to hide it. |
Definition at line 3166 of file ocpn_plugin_gui.cpp.
void SetENCDisplayCategory | ( | PI_DisCat | cat, |
int | CanvasIndex | ||
) |
Sets ENC (Electronic Navigation Chart) feature display category.
cat | Display category to use (BASE, STANDARD, OTHER, etc) |
CanvasIndex | Index of target canvas |
Definition at line 2957 of file ocpn_plugin_gui.cpp.
void SetFullScreen | ( | bool | full_screen_on | ) |
Sets full screen mode.
full_screen_on | True to enable full screen mode, false for windowed |
Definition at line 2775 of file ocpn_plugin_gui.cpp.
void SetGlobalColor | ( | std::string | table, |
std::string | name, | ||
wxColor | color | ||
) |
Sets a color in the global color scheme.
table | Color scheme name ("DAY", "DUSK", "NIGHT") |
name | Color identifier within scheme |
color | New color value to set |
Definition at line 2867 of file ocpn_plugin_gui.cpp.
void SetMUICursor_PlugIn | ( | wxCursor * | pCursor, |
int | canvasIndex | ||
) |
Sets mouse cursor for specific canvas.
Changes the mouse cursor displayed over a specific chart canvas window.
pCursor | Pointer to cursor to use, NULL for default |
canvasIndex | Index of target canvas |
Definition at line 1718 of file ocpn_plugin_gui.cpp.
void SetNavigationMode | ( | PI_NavMode | mode, |
int | CanvasIndex | ||
) |
Sets the navigation mode for a specific chart canvas.
mode | Navigation mode to set:
|
CanvasIndex | Index of target canvas (0-based) |
Definition at line 2989 of file ocpn_plugin_gui.cpp.
void SetToolbarItemState | ( | int | item, |
bool | toggle | ||
) |
Sets toolbar item toggle state.
Sets the pressed/unpressed state for toggle type tools.
item | Tool ID to modify |
toggle | True for pressed state, false for unpressed |
Definition at line 163 of file ocpn_plugin_gui.cpp.
void SetToolbarToolBitmaps | ( | int | item, |
wxBitmap * | bitmap, | ||
wxBitmap * | bmpRollover | ||
) |
Updates toolbar tool bitmaps.
Changes the normal and rollover bitmaps for an existing tool.
item | Tool ID to modify |
bitmap | New normal state bitmap |
bmpRollover | New rollover bitmap |
Definition at line 167 of file ocpn_plugin_gui.cpp.
void SetToolbarToolBitmapsSVG | ( | int | item, |
wxString | SVGfile, | ||
wxString | SVGfileRollover, | ||
wxString | SVGfileToggled | ||
) |
Updates SVG graphics for toolbar tool.
Changes the SVG files used for a tool's different states.
item | Tool ID to modify |
SVGfile | Normal state SVG file |
SVGfileRollover | Rollover state SVG file |
SVGfileToggled | Toggled state SVG file |
Definition at line 184 of file ocpn_plugin_gui.cpp.
void SetToolbarToolViz | ( | int | item, |
bool | viz | ||
) |
Temporarily changes toolbar tool visibility.
Shows or hides a toolbar tool without removing it.
item | Tool ID to modify |
viz | True to show tool, false to hide |
Definition at line 159 of file ocpn_plugin_gui.cpp.
void SetTrackingMode | ( | bool | enable | ) |
Enable or disable tracking mode.
When tracking mode is enabled, the vessel's position is recorded in the active track.
enable | True to enable tracking, false to disable. |
Definition at line 3117 of file ocpn_plugin_gui.cpp.
void ShowGlobalSettingsDialog | ( | ) |
Display the global settings dialog.
Opens the main OpenCPN options/preferences dialog.
Definition at line 3171 of file ocpn_plugin_gui.cpp.
bool ShuttingDown | ( | void | ) |
Checks if OpenCPN is in shutdown process.
Definition at line 1667 of file ocpn_plugin_gui.cpp.
void toSM_ECC_Plugin | ( | double | lat, |
double | lon, | ||
double | lat0, | ||
double | lon0, | ||
double * | x, | ||
double * | y | ||
) |
Converts geographic coordinates to Elliptical Simple Mercator projection.
lat | Latitude in decimal degrees |
lon | Longitude in decimal degrees |
lat0 | Reference latitude |
lon0 | Central meridian |
x | Easting coordinate (output) |
y | Northing coordinate (output) |
Definition at line 695 of file ocpn_plugin_gui.cpp.
void toSM_Plugin | ( | double | lat, |
double | lon, | ||
double | lat0, | ||
double | lon0, | ||
double * | x, | ||
double * | y | ||
) |
Converts geographic coordinates to Simple Mercator projection.
lat | Latitude in decimal degrees |
lon | Longitude in decimal degrees |
lat0 | Reference latitude |
lon0 | Central meridian |
x | Easting coordinate (output) |
y | Northing coordinate (output) |
Definition at line 685 of file ocpn_plugin_gui.cpp.
void toTM_Plugin | ( | float | lat, |
float | lon, | ||
float | lat0, | ||
float | lon0, | ||
double * | x, | ||
double * | y | ||
) |
Converts geographic coordinates to Transverse Mercator projection.
lat | Latitude in decimal degrees |
lon | Longitude in decimal degrees |
lat0 | Reference latitude |
lon0 | Central meridian |
x | Easting coordinate (output) |
y | Northing coordinate (output) |
Definition at line 675 of file ocpn_plugin_gui.cpp.
double toUsrDepth_Plugin | ( | double | m_depth, |
int | unit = -1 |
||
) |
Converts meters to user's preferred depth unit.
m_depth | Depth in meters |
unit | Override unit choice (-1 for user preference): 0=feet, 1=meters, 2=fathoms |
Definition at line 752 of file ocpn_plugin_gui.cpp.
double toUsrDistance_Plugin | ( | double | nm_distance, |
int | unit = -1 |
||
) |
Converts nautical miles to user's preferred distance unit.
nm_distance | Distance value in nautical miles |
unit | Override unit choice (-1 for user preference): 0=nm, 1=km, 2=mi, 3=fathoms |
Definition at line 705 of file ocpn_plugin_gui.cpp.
double toUsrSpeed_Plugin | ( | double | kts_speed, |
int | unit = -1 |
||
) |
Converts knots to user's preferred speed unit.
kts_speed | Speed value in knots |
unit | Override unit choice (-1 for user preference): 0=knots, 1=km/h, 2=mph, 3=m/s |
Definition at line 713 of file ocpn_plugin_gui.cpp.
double toUsrTemp_Plugin | ( | double | cel_temp, |
int | unit = -1 |
||
) |
Converts Celsius to user's preferred temperature unit.
cel_temp | Temperature in Celsius |
unit | Override unit choice (-1 for user preference): 0=Celsius, 1=Fahrenheit |
Definition at line 729 of file ocpn_plugin_gui.cpp.
double toUsrWindSpeed_Plugin | ( | double | kts_wspeed, |
int | unit = -1 |
||
) |
Converts knots to user's preferred wind speed unit.
kts_wspeed | Wind speed in knots |
unit | Override unit choice (-1 for user preference): 0=knots, 1=m/s, 2=mph, 3=km/h |
Definition at line 717 of file ocpn_plugin_gui.cpp.
void UpdateAndApplyPriorityMaps | ( | std::vector< std::string > | map | ) |
Sets and applies new priority mapping scheme.
Definition at line 2723 of file ocpn_plugin_gui.cpp.
bool UpdateChartDBInplace | ( | wxArrayString | dir_array, |
bool | b_force_update, | ||
bool | b_ProgressDialog | ||
) |
Updates chart database in place.
Updates chart database with new chart directories.
dir_array | Array of directory paths to scan |
b_force_update | Force full update even if no changes detected |
b_ProgressDialog | Show progress dialog during update |
Definition at line 463 of file ocpn_plugin_gui.cpp.
bool UpdatePlugInRoute | ( | PlugIn_Route * | proute | ) |
Updates an existing route.
Updates properties and waypoints of a route already in OpenCPN's route manager.
proute | Route with updated properties (GUID must match existing route) |
Definition at line 1218 of file ocpn_plugin_gui.cpp.
bool UpdatePlugInRouteEx | ( | PlugIn_Route_Ex * | proute | ) |
Updates an existing extended route.
proute | Updated route data (GUID must match existing) |
Definition at line 2640 of file ocpn_plugin_gui.cpp.
bool UpdatePlugInRouteExV2 | ( | PlugIn_Route_ExV2 * | proute | ) |
Updates existing route with V2 waypoints.
Modifies an existing route with new V2 waypoint data.
proute | Updated route data (GUID must match existing) |
Definition at line 2304 of file ocpn_plugin_gui.cpp.
bool UpdatePlugInTrack | ( | PlugIn_Track * | ptrack | ) |
Updates an existing track.
Updates properties and waypoints of a track already in OpenCPN's track manager.
ptrack | Track with updated properties (GUID must match existing track) |
Definition at line 1294 of file ocpn_plugin_gui.cpp.
bool UpdateSingleWaypoint | ( | PlugIn_Waypoint * | pwaypoint | ) |
Updates a single waypoint.
Modifies properties of an existing waypoint.
pwaypoint | Waypoint with updated properties (GUID must match existing) |
Definition at line 920 of file ocpn_plugin_gui.cpp.
bool UpdateSingleWaypointEx | ( | PlugIn_Waypoint_Ex * | pwaypoint | ) |
Updates an existing extended waypoint.
pwaypoint | Updated waypoint data (GUID must match existing) |
Definition at line 2511 of file ocpn_plugin_gui.cpp.
bool UpdateSingleWaypointExV2 | ( | PlugIn_Waypoint_ExV2 * | pwaypoint | ) |
Updates an existing extended V2 waypoint.
pwaypoint | Updated V2 waypoint data (GUID must match existing) |
Definition at line 2157 of file ocpn_plugin_gui.cpp.
void ZeroXTE | ( | ) |
Resets cross track error to zero.
Sets the current cross track error (XTE) value to zero. This affects navigation displays and autopilot output.
Definition at line 1747 of file ocpn_plugin_gui.cpp.
|
extern |
Definition at line 269 of file ocpn_app.cpp.
|
extern |
Definition at line 299 of file ocpn_app.cpp.
|
extern |
Definition at line 476 of file ocpn_app.cpp.
|
extern |
Definition at line 602 of file ocpn_app.cpp.
|
extern |
Definition at line 347 of file ocpn_app.cpp.
|
extern |
Definition at line 623 of file ocpn_app.cpp.
|
extern |
Definition at line 600 of file ocpn_app.cpp.
|
extern |
Definition at line 700 of file ocpn_app.cpp.
|
extern |
Definition at line 543 of file ocpn_app.cpp.
|
extern |
Definition at line 692 of file ocpn_app.cpp.
|
extern |
Definition at line 681 of file ocpn_app.cpp.
|
extern |
Definition at line 575 of file ocpn_app.cpp.
|
extern |
Definition at line 670 of file ocpn_app.cpp.
|
extern |
Definition at line 671 of file ocpn_app.cpp.
|
extern |
Definition at line 399 of file ocpn_app.cpp.
|
extern |
Definition at line 648 of file ocpn_app.cpp.
|
extern |
Definition at line 699 of file ocpn_app.cpp.
|
extern |
The width of the physical screen in millimeters.
Definition at line 394 of file ocpn_app.cpp.
|
extern |
Definition at line 695 of file ocpn_app.cpp.
|
extern |
Definition at line 398 of file ocpn_app.cpp.
|
extern |
Global locale setting for OpenCPN UI.
If not set in config (empty string), uses system default locale. Stores the language/locale name in format "en_US", "fr_FR", etc. A valid setting triggers loading the corresponding .mo translation files from the appropriate locale directory.
Definition at line 592 of file ocpn_app.cpp.
|
extern |
Definition at line 677 of file ocpn_app.cpp.
|
extern |
Definition at line 616 of file ocpn_app.cpp.
|
extern |
Definition at line 523 of file ocpn_app.cpp.
|
extern |
Definition at line 696 of file ocpn_app.cpp.
|
extern |
Definition at line 81 of file ais_decoder.cpp.
|
extern |
Definition at line 611 of file ocpn_app.cpp.
|
extern |
Definition at line 516 of file ocpn_app.cpp.
|
extern |
Definition at line 508 of file ocpn_app.cpp.
|
extern |
Definition at line 255 of file ocpn_app.cpp.
OcpnSound* g_PluginSound = SoundFactory() |
Definition at line 1417 of file ocpn_plugin_gui.cpp.
|
extern |
Definition at line 63 of file multiplexer.cpp.
|
extern |
Definition at line 260 of file options.cpp.
|
extern |
Definition at line 66 of file routeman.cpp.
|
extern |
Definition at line 341 of file ocpn_app.cpp.
|
extern |
Definition at line 682 of file ocpn_app.cpp.
|
extern |
Definition at line 264 of file ocpn_app.cpp.
|
extern |
Definition at line 372 of file ocpn_app.cpp.
unsigned int gs_plib_flags |
Definition at line 118 of file ocpn_plugin_gui.cpp.
|
extern |
Definition at line 314 of file chcanv.cpp.
|
extern |
Definition at line 268 of file ocpn_app.cpp.
|
extern |
Definition at line 581 of file ocpn_app.cpp.
|
extern |
Definition at line 72 of file routeman.cpp.
|
extern |
Definition at line 281 of file ocpn_app.cpp.
|
extern |
Definition at line 410 of file ocpn_app.cpp.
|
extern |
Definition at line 37 of file select.cpp.
|
extern |
Definition at line 865 of file pluginmanager.cpp.