49extern arrayofCanvasPtr g_canvasArray;
54 dst->
m_lat = src->m_lat;
55 dst->
m_lon = src->m_lon;
59 dst->
IconDescription = pWayPointMan->GetIconDescription(src->GetIconName());
72 for (
Hyperlink* link : *src->m_HyperlinkList) {
76 h->
Type = link->LType;
91 dst->
scamin = src->GetScaMin();
95 dst->
scamax = src->GetScaMax();
102static void cloneHyperlinkListExV2(
RoutePoint* dst,
108 wxPlugin_HyperlinkListNode* linknode = src->
m_HyperlinkList->GetFirst();
114 h->Link = link->
Link;
115 h->LType = link->
Type;
119 linknode = linknode->GetNext();
131 cloneHyperlinkListExV2(pWP, src);
141 pWP->
m_btemp = (b_permanent ==
false);
150 pWP->SetScaMin(src->
scamin);
157 pWP->SetScaMax(src->
scamax);
159 if (src->
m_ETD.IsValid())
162 pWP->
SetETD(wxEmptyString);
167 ::Route* route = new ::Route();
172 wxDateTime plannedDeparture;
174 wxPlugin_WaypointExV2ListNode* pwpnode = proute->
pWaypointList->GetFirst();
176 pwaypointex = pwpnode->GetData();
178 pWP = pWayPointMan->FindRoutePointByGUID(pwaypointex->
m_GUID);
180 pWP = CreateNewPoint(pwaypointex, b_permanent);
184 route->AddPoint(pWP);
186 pSelect->AddSelectableRoutePoint(pWP->m_lat, pWP->m_lon, pWP);
189 pSelect->AddSelectableRouteSegment(pWP_src->m_lat, pWP_src->m_lon,
190 pWP->m_lat, pWP->m_lon, pWP_src, pWP,
197 pwpnode = pwpnode->GetNext();
205 if (!proute->
m_GUID.IsEmpty()) {
208 route->
m_btemp = (b_permanent ==
false);
214 route->
m_style = proute->m_style;
222 NavObj_dB::GetInstance().InsertRoute(route);
231 bool b_found =
false;
235 if (pRoute) b_found =
true;
238 bool b_permanent = !pRoute->
m_btemp;
241 b_found = AddPlugInRouteExV3(proute, b_permanent);
250 dst->
m_lat = src->m_lat;
251 dst->
m_lon = src->m_lon;
255 dst->
IconDescription = pWayPointMan->GetIconDescription(src->GetIconName());
267 for (
Hyperlink* link : *src->m_HyperlinkList) {
271 h->
Type = link->LType;
284 dst->
scamin = src->GetScaMin();
289static void cloneHyperlinkListEx(
RoutePoint* dst,
295 wxPlugin_HyperlinkListNode* linknode = src->
m_HyperlinkList->GetFirst();
301 h->Link = link->
Link;
302 h->LType = link->
Type;
306 linknode = linknode->GetNext();
311static wxString DropMarkPI(
double lat,
double lon) {
312 if ((fabs(lat) > 80.0) || (fabs(lon) > 180.))
return "";
315 new RoutePoint(lat, lon, g_default_wp_icon, wxEmptyString, wxEmptyString);
317 pSelect->AddSelectableRoutePoint(lat, lon, pWP);
318 NavObj_dB::GetInstance().InsertRoutePoint(pWP);
322static wxString RouteCreatePI(
int canvas_index,
bool start) {
323 if ((
size_t)canvas_index < g_canvasArray.GetCount()) {
324 ChartCanvas* cc = g_canvasArray.Item(canvas_index);
330 return cc->FinishRoute();
337static bool DoMeasurePI(
int canvas_index,
bool start) {
338 if ((
size_t)canvas_index < g_canvasArray.GetCount()) {
339 ChartCanvas* cc = g_canvasArray.Item(canvas_index);
342 cc->StartMeasureRoute();
345 cc->CancelMeasureRoute();
354static void EnableDefaultConsole(
bool enable) {
355 g_bhide_route_console = !enable;
358static wxString NavToHerePI(
double lat,
double lon) {
360 new RoutePoint(lat, lon, g_default_wp_icon, wxEmptyString, wxEmptyString);
361 pSelect->AddSelectableRoutePoint(lat, lon, pWP_dest);
364 wxEmptyString, wxEmptyString);
370 temp_route->AddPoint(pWP_src);
371 temp_route->AddPoint(pWP_dest);
373 pSelect->AddSelectableRouteSegment(
gLat,
gLon, lat, lon, pWP_src, pWP_dest,
384 return temp_route->
m_GUID;
387static bool ActivateRoutePI(wxString route_guid,
bool activate) {
389 if (!route)
return false;
406static void SetMaxZoomScale(
double max_scale) {
407 g_maxzoomin = wxRound(wxMax(max_scale, 100.));
410static void EnableDefaultContextMenus(
bool enable) {
411 g_bhide_context_menus = !enable;
414static void SetMinZoomScale(
double min_scale) {
415 for (
unsigned int i = 0; i < g_canvasArray.GetCount(); i++) {
417 cc->SetAbsoluteMinScale(min_scale);
421static std::shared_ptr<HostApi121::PiPointContext> GetContextAtPoint(
422 int x,
int y,
int canvas_index) {
423 ChartCanvas* cc = g_canvasArray.Item(canvas_index);
425 return cc->GetCanvasContextAtPoint(x, y);
427 auto rstruct = std::make_shared<HostApi121::PiPointContext>();
428 rstruct->object_type = HostApi121::PiContextObjectType::kObjectUnknown;
429 rstruct->object_ident =
"";
434static wxBitmap GetObjectIcon_PlugIn(
const wxString& name) {
436 return *pWayPointMan->GetIconBitmap(name);
441static bool IsRouteActive(wxString route_guid) {
448static void SetBoatPosition(
double zlat,
double zlon) {
454static void RouteInsertWaypoint(
int canvas_index, wxString route_guid,
455 double zlat,
double zlon) {
466 if ((seltype & SELTYPE_ROUTESEGMENT) != SELTYPE_ROUTESEGMENT)
return;
469 route->InsertPointAfter(parent->GetFoundRoutepoint(), zlat, zlon, rename);
471 pSelect->DeleteAllSelectableRoutePoints(route);
472 pSelect->DeleteAllSelectableRouteSegments(route);
473 pSelect->AddAllSelectableRouteSegments(route);
474 pSelect->AddAllSelectableRoutePoints(route);
476 NavObj_dB::GetInstance().UpdateRoute(route);
479static void RouteAppendWaypoint(
int canvas_index, wxString route_guid) {
487 parent->m_pMouseRoute = route;
488 parent->m_routeState = route->GetnPoints() + 1;
490 parent->m_pMouseRoute->SetHiLite(50);
492 auto pLast = route->GetLastPoint();
494 parent->m_prev_rlat = pLast->m_lat;
495 parent->m_prev_rlon = pLast->m_lon;
496 parent->m_prev_pMousePoint = pLast;
498 parent->m_bAppendingRoute =
true;
501static void FinishRoute(
int canvas_index) {
506 parent->FinishRoute();
509static bool IsRouteBeingCreated(
int canvas_index) {
512 if (!parent)
return false;
513 return !(parent->m_pMouseRoute == NULL);
516static bool AreRouteWaypointNamesVisible(wxString route_guid) {
518 if (!route)
return false;
519 return route->AreWaypointNamesVisible();
522static void ShowRouteWaypointNames(wxString route_guid,
bool show) {
525 route->ShowWaypointNames(show);
528static void NavigateToWaypoint(wxString waypoint_guid) {
529 RoutePoint* prp = pWayPointMan->FindRoutePointByGUID(waypoint_guid);
533 wxEmptyString, wxEmptyString);
539 temp_route->AddPoint(pWP_src);
540 temp_route->AddPoint(prp);
541 prp->SetShared(
true);
544 pWP_src, prp, temp_route);
546 wxString name = prp->GetName();
547 if (name.IsEmpty()) name = _(
"(Unnamed Waypoint)");
548 wxString rteName = _(
"Go to ");
549 rteName.Append(name);
560static bool IsAISTrackVisible(wxString ais_mmsi) {
562 ais_mmsi.ToLong(&mmsi);
563 auto myptarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
565 return myptarget->b_show_track;
570static void AISToggleShowTrack(wxString ais_mmsi) {
572 ais_mmsi.ToLong(&mmsi);
573 auto myptarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
574 if (myptarget) myptarget->ToggleShowTrack();
577static void AISToggleShowCPA(wxString ais_mmsi) {
579 ais_mmsi.ToLong(&mmsi);
580 auto myptarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
581 if (myptarget) myptarget->Toggle_AIS_CPA();
584static void ShowAISTargetQueryDialog(
int canvas_index, wxString ais_mmsi) {
590 ais_mmsi.ToLong(&mmsi);
591 ShowAISTargetQueryDialog(parent, mmsi);
594static void ShowAISTargetList(
int canvas_index) {
598 parent->ShowAISTargetList();
601static bool IsMeasureActive(
int canvas_index) {
604 if (!parent)
return false;
605 return parent->m_bMeasure_Active;
608static void CancelMeasure(
int canvas_index) {
612 parent->CancelMeasureRoute();
615static void SetDepthUnitVisible(
bool bviz) { g_bhide_depth_units = !bviz; }
617static void SetOverzoomFlagVisible(
bool bviz) { g_bhide_overzoom_flag = !bviz; }
620static void AddNoShowDirectory(std::string chart_dir) {
624static void RemoveNoShowDirectory(std::string chart_dir) {
633static const std::vector<std::string>& GetNoShowVector() {
641 double scale = oCanvas->GetVP().view_scale_ppm;
643 oCanvas->m_pQuilt->SelectRefChartByFamily((ChartFamilyEnum)Family);
645 oCanvas->SelectQuiltRefdbChart(newref);
646 oCanvas->SetVPScale(
scale);
647 oCanvas->DoCanvasUpdate();
655static void CenterToAisTarget(wxString ais_mmsi) {
657 if (ais_mmsi.ToLong(&mmsi)) {
658 std::shared_ptr<AisTargetData> pAISTarget =
nullptr;
659 if (
g_pAIS) pAISTarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
666static void AisTargetCreateWpt(wxString ais_mmsi) {
668 if (ais_mmsi.ToLong(&mmsi)) {
669 std::shared_ptr<AisTargetData> pAISTarget = NULL;
670 if (
g_pAIS) pAISTarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
674 new RoutePoint(pAISTarget->Lat, pAISTarget->Lon, g_default_wp_icon,
675 wxEmptyString, wxEmptyString);
677 pSelect->AddSelectableRoutePoint(pAISTarget->Lat, pAISTarget->Lon, pWP);
678 NavObj_dB::GetInstance().InsertRoutePoint(pWP);
685static void AisShowAllTracks(
bool show) {
687 for (
const auto& it :
g_pAIS->GetTargetList()) {
688 auto pAISTarget = it.second;
689 if (NULL != pAISTarget) {
690 pAISTarget->b_show_track = show;
693 std::map<int, Track*>::iterator itt;
694 itt =
g_pAIS->m_persistent_tracks.find(pAISTarget->MMSI);
695 if (itt !=
g_pAIS->m_persistent_tracks.end()) {
696 pAISTarget->b_show_track_old = show;
704static void AisToggleTrack(wxString ais_mmsi) {
706 if (ais_mmsi.ToLong(&mmsi)) {
707 std::shared_ptr<AisTargetData> pAISTarget = NULL;
708 if (
g_pAIS) pAISTarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
711 pAISTarget->b_show_track_old =
712 pAISTarget->b_show_track;
713 pAISTarget->b_show_track =
714 !pAISTarget->b_show_track;
719static int GetContextMenuMask() {
return g_canvas_context_menu_disable_mask; }
721static void SetContextMenuMask(
int mask) {
722 g_canvas_context_menu_disable_mask = mask;
725static bool IsAIS_CPAVisible(wxString ais_mmsi) {
727 ais_mmsi.ToLong(&mmsi);
728 auto myptarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
730 return myptarget->b_show_AIS_CPA;
735static void SetTrackVisibility(
const wxString& track_GUID,
bool viz) {
737 if (ptrack->m_GUID == track_GUID) {
738 ptrack->SetVisible(viz);
745 return std::make_unique<HostApi121>(
HostApi121());
749 return ::AddPlugInRouteExV3(route, permanent);
753 return ::UpdatePlugInRouteExV3(route);
758 if (!route)
return nullptr;
760 auto dst_route = std::make_unique<HostApi121::Route>();
764 PlugInExV2FromRoutePoint(dst_wp, src_wp);
765 dst_route->pWaypointList->Append(dst_wp);
770 dst_route->m_GUID = route->
m_GUID;
771 dst_route->m_isActive =
g_pRouteMan->GetpActiveRoute() == route;
772 dst_route->m_isVisible = route->IsVisible();
775 dst_route->m_Colour = route->
m_Colour;
776 dst_route->m_style = route->
m_style;
783wxString HostApi121::DropMarkPI(
double lat,
double lon) {
784 return ::DropMarkPI(lat, lon);
787wxString HostApi121::RouteCreatePI(
int canvas_index,
bool start) {
788 return ::RouteCreatePI(canvas_index, start);
791bool HostApi121::DoMeasurePI(
int canvas_index,
bool start) {
792 return ::DoMeasurePI(canvas_index, start);
795wxString HostApi121::NavToHerePI(
double lat,
double lon) {
796 return ::NavToHerePI(lat, lon);
799bool HostApi121::ActivateRoutePI(wxString route_guid,
bool activate) {
800 return ::ActivateRoutePI(route_guid, activate);
803void HostApi121::EnableDefaultConsole(
bool enable) {
804 ::EnableDefaultConsole(enable);
807void HostApi121::EnableDefaultContextMenus(
bool enable) {
808 ::EnableDefaultContextMenus(enable);
811void HostApi121::SetMinZoomScale(
double min_scale) {
812 ::SetMinZoomScale(min_scale);
815void HostApi121::SetMaxZoomScale(
double max_scale) {
816 ::SetMaxZoomScale(max_scale);
819std::shared_ptr<HostApi121::PiPointContext> HostApi121::GetContextAtPoint(
820 int x,
int y,
int canvas_index) {
821 return ::GetContextAtPoint(x, y, canvas_index);
824wxBitmap HostApi121::GetObjectIcon_PlugIn(
const wxString& name) {
825 return ::GetObjectIcon_PlugIn(name);
828bool HostApi121::IsRouteActive(wxString route_guid) {
829 return ::IsRouteActive(route_guid);
832void HostApi121::SetBoatPosition(
double zlat,
double zlon) {
833 ::SetBoatPosition(zlat, zlon);
836void HostApi121::RouteInsertWaypoint(
int canvas_index, wxString route_guid,
837 double zlat,
double zlon) {
838 ::RouteInsertWaypoint(canvas_index, route_guid, zlat, zlon);
841void HostApi121::RouteAppendWaypoint(
int canvas_index, wxString route_guid) {
842 ::RouteAppendWaypoint(canvas_index, route_guid);
845void HostApi121::FinishRoute(
int canvas_index) { ::FinishRoute(canvas_index); }
847bool HostApi121::IsRouteBeingCreated(
int canvas_index) {
848 return ::IsRouteBeingCreated(canvas_index);
851bool HostApi121::AreRouteWaypointNamesVisible(wxString route_guid) {
852 return ::AreRouteWaypointNamesVisible(route_guid);
855void HostApi121::ShowRouteWaypointNames(wxString route_guid,
bool show) {
856 ::ShowRouteWaypointNames(route_guid, show);
859void HostApi121::NavigateToWaypoint(wxString waypoint_guid) {
860 ::NavigateToWaypoint(waypoint_guid);
863bool HostApi121::IsAISTrackVisible(
const wxString& ais_mmsi)
const {
864 return ::IsAISTrackVisible(ais_mmsi);
867void HostApi121::AISToggleShowTrack(
const wxString& ais_mmsi) {
868 ::AISToggleShowTrack(ais_mmsi);
871bool HostApi121::IsAIS_CPAVisible(
const wxString& ais_mmsi)
const {
872 return ::IsAIS_CPAVisible(ais_mmsi);
875void HostApi121::AISToggleShowCPA(
const wxString& ais_mmsi) {
876 ::AISToggleShowCPA(ais_mmsi);
879void HostApi121::ShowAISTargetQueryDialog(
int canvas_index,
880 const wxString& ais_mmsi) {
881 ::ShowAISTargetQueryDialog(canvas_index, ais_mmsi);
884void HostApi121::ShowAISTargetList(
int canvas_index) {
885 ::ShowAISTargetList(canvas_index);
888bool HostApi121::IsMeasureActive(
int canvas_index) {
889 return ::IsMeasureActive(canvas_index);
892void HostApi121::CancelMeasure(
int canvas_index) {
893 ::CancelMeasure(canvas_index);
896void HostApi121::SetDepthUnitVisible(
bool bviz) { ::SetDepthUnitVisible(bviz); }
898void HostApi121::SetOverzoomFlagVisible(
bool viz) {
899 ::SetOverzoomFlagVisible(viz);
902void HostApi121::AddNoShowDirectory(std::string chart_dir) {
903 ::AddNoShowDirectory(chart_dir);
906void HostApi121::RemoveNoShowDirectory(std::string chart_dir) {
907 ::RemoveNoShowDirectory(chart_dir);
910void HostApi121::ClearNoShowVector() { ::ClearNoShowVector(); }
912const std::vector<std::string>& HostApi121::GetNoShowVector() {
913 return ::GetNoShowVector();
917 return ::SelectChartFamily(CanvasIndex, Family);
922void HostApi121::CenterToAisTarget(wxString ais_mmsi) {
923 ::CenterToAisTarget(ais_mmsi);
926void HostApi121::AisTargetCreateWpt(wxString ais_mmsi) {
927 ::AisTargetCreateWpt(ais_mmsi);
930void HostApi121::AisShowAllTracks(
bool show) { ::AisShowAllTracks(show); }
932void HostApi121::AisToggleTrack(wxString ais_mmsi) {
933 ::AisToggleTrack(ais_mmsi);
937int HostApi121::GetContextMenuMask() { return ::GetContextMenuMask(); }
939void HostApi121::SetContextMenuMask(
int mask) { ::SetContextMenuMask(mask); }
941void HostApi121::SetTrackVisibiiity(
const wxString& track_GUID,
bool viz) {
942 ::SetTrackVisibility(track_GUID, viz);
AisDecoder * g_pAIS
Global instance.
Class AisDecoder and helpers.
std::unique_ptr< HostApi > GetHostApi()
HostApi factory,.
std::vector< std::string > ChartDirectoryExcludedVector
Global instance.
Generic Chart canvas base.
ChartCanvas - Main chart display and interaction component.
int PrepareContextSelections(double lat, double lon)
void Notify() override
Notify all listeners, no data supplied.
EventVar on_center_ais_target
Notified with a shared_ptr<const AisTargetData> when gFrame should center the given AIS target.
EventVar gframe_update_status_bar
Notified when the top level status bas should be updated by gFrame.
virtual bool AddRoute(Route *route, bool permanent=true)
Add route to database, updated version of AddPlugInRouteExV2.
virtual std::unique_ptr< HostApi121::Route > GetRoute(const wxString &guid)
Retrieve route from database.
virtual bool UpdateRoute(Route *route)
Update database route, updated version of UpdatePlugInRouteExV2.
bool m_isVisible
True if route should be displayed.
Plugin_WaypointExV2List * pWaypointList
List of waypoints making up this route in order.
wxString m_StartString
Description of route start point.
wxString m_Description
Optional route description/notes.
wxString m_NameString
User-visible name of the route.
wxString m_GUID
Globally unique identifier.
wxString m_EndString
Description of route end point.
wxDateTime m_ETD
Estimated departure time in UTC, or wxInvalidDateTime if not set.
wxString m_MarkDescription
Optional description text.
wxString m_GUID
Globally unique identifier.
wxString m_TideStation
Tide Station Identifier.
wxDateTime m_CreateTime
Creation timestamp in UTC.
bool m_bShowWaypointRangeRings
True to show range rings on chart.
wxString IconDescription
User-friendly description of icon.
double m_lat
Latitude in decimal degrees.
wxColour RangeRingColor
Color to draw range rings.
bool IsActive
Active state (e.g. destination)
Plugin_HyperlinkList * m_HyperlinkList
List of hyperlinks associated with this waypoint.
double scamin
Minimum display scale (1:X) for waypoint visibility.
double scamax
Maximum display scale (1:X) for waypoint visibility.
bool b_useScamin
True to enable scale-dependent visibility.
wxString IconName
Name of icon to use for waypoint symbol.
bool IsNameVisible
True to show waypoint name on chart.
double m_PlannedSpeed
Planned speed for next leg (knots)
double RangeRingSpace
Distance between range rings in preferred units.
double m_lon
Longitude in decimal degrees.
double m_WaypointArrivalRadius
Arrival radius in nautical miles.
int RangeRingSpaceUnits
Units for range ring spacing - 0:nm, 1:km.
wxString m_MarkName
Display name of waypoint.
bool IsVisible
Visibility state on chart.
int nrange_rings
Number of range rings to display around waypoint.
Extended waypoint class with additional navigation features.
wxDateTime m_CreateTime
Creation timestamp in UTC.
wxColour RangeRingColor
Color to draw range rings.
int nrange_rings
Number of range rings to display around waypoint.
wxString IconDescription
User-friendly description of icon.
bool b_useScamin
True to enable scale-dependent visibility.
double RangeRingSpace
Distance between range rings in preferred units.
Plugin_HyperlinkList * m_HyperlinkList
List of hyperlinks associated with this waypoint.
wxString m_MarkName
Display name of waypoint.
wxString m_GUID
Globally unique identifier.
double m_lon
Longitude in decimal degrees.
wxString IconName
Name of icon to use for waypoint symbol.
double scamin
Minimum display scale (1:X) for waypoint visibility.
bool IsNameVisible
True to show waypoint name on chart.
double m_lat
Latitude in decimal degrees.
wxString m_MarkDescription
Optional description text.
bool IsActive
Active state (e.g. destination)
bool IsVisible
Visibility state on chart.
Class representing a hyperlink associated with a waypoint or route.
wxString Link
The actual URL or file path.
wxString DescrText
User-visible description of the link.
wxString Type
Link type identifier (e.g., "Website", "Chart", "Image")
Represents a waypoint or mark within the navigation system.
HyperlinkList * m_HyperlinkList
List of hyperlinks associated with this waypoint.
wxColour m_wxcWaypointRangeRingsColour
Color for the range rings display.
wxString m_MarkDescription
Description text for the waypoint.
int m_iWaypointRangeRingsNumber
Number of range rings to display around the waypoint.
void SetCreateTime(wxDateTime dt)
Sets the create time of this RoutePoint in UTC.
wxString m_GUID
Globally Unique Identifier for the waypoint.
bool m_bIsolatedMark
Flag indicating if the waypoint is a standalone mark.
bool m_bIsActive
Flag indicating if this waypoint is active for navigation.
wxDateTime GetManualETD()
Retrieves the manually set Estimated Time of Departure for this waypoint, in UTC.
bool m_bShowName
Flag indicating if the waypoint name should be shown.
double GetPlannedSpeed()
Return the planned speed associated with this waypoint.
bool m_btemp
Flag indicating if this is a temporary waypoint.
int m_iWaypointRangeRingsStepUnits
Units for the range rings step (0=nm, 1=km).
wxDateTime GetCreateTime(void)
Returns the Create Time of this RoutePoint in UTC.
float m_fWaypointRangeRingsStep
Distance between consecutive range rings.
wxString m_TideStation
Associated tide station identifier.
void SetETD(const wxDateTime &etd)
Sets the Estimated Time of Departure for this waypoint, in UTC.
Represents a navigational route in the navigation system.
bool m_bRtIsSelected
Flag indicating whether this route is currently selected in the UI.
double m_PlannedSpeed
Default planned speed for the route in knots.
wxString m_RouteStartString
Name or description of the route's starting point.
wxString m_RouteDescription
Additional descriptive information about the route.
RoutePointList * pRoutePointList
Ordered list of waypoints (RoutePoints) that make up this route.
wxString m_Colour
Color name for rendering the route on the chart.
bool m_bDeleteOnArrival
Flag indicating whether the route should be deleted once navigation reaches the end.
wxString m_RouteEndString
Name or description of the route's ending point.
bool m_btemp
Flag indicating if this is a temporary route.
wxPenStyle m_style
Style of the route line when rendered on the chart.
wxString m_TimeDisplayFormat
Format for displaying times in the UI.
wxString m_RouteNameString
User-assigned name for the route.
wxString m_GUID
Globally unique identifier for this route.
wxDateTime m_PlannedDeparture
Planned departure time for the route, in UTC.
bool m_bIsInLayer
Flag indicating whether this route belongs to a layer.
int m_lastMousePointIndex
Index of the most recently interacted with route point.
bool DeleteRoute(Route *pRoute)
EventVar on_routes_update
Notified when list of routes is updated (no data in event)
bool ActivateRoute(Route *pRouteToActivate, RoutePoint *pStartPoint=NULL)
Activates a route for navigation.
Represents a track, which is a series of connected track points.
Misc GUI event vars, a singleton.
Miscellaneous globals primarely used by gui layer, not persisted in configuration file.
MySQL based storage for routes, tracks, etc.
User notifications manager.
PlugIn Object Definition/API.
ChartFamilyEnumPI
Enumeration of chart families (broad categories).
wxWindow * GetCanvasByIndex(int canvasIndex)
Gets chart canvas window by index.
double gLat
Vessel's current latitude in decimal degrees.
double gCog
Course over ground in degrees (0-359.99).
double gSog
Speed over ground in knots.
double gLon
Vessel's current longitude in decimal degrees.
Position, course, speed, etc.
Routeman * g_pRouteMan
Global instance.
RouteList * pRouteList
Global instance.
Select * pSelect
Global instance.
std::vector< Track * > g_TrackList
Global instance.
Recorded track abstraction.