51 dst->
m_lat = src->m_lat;
52 dst->
m_lon = src->m_lon;
56 dst->
IconDescription = pWayPointMan->GetIconDescription(src->GetIconName());
69 for (
Hyperlink* link : *src->m_HyperlinkList) {
73 h->
Type = link->LType;
88 dst->
scamin = src->GetScaMin();
92 dst->
scamax = src->GetScaMax();
99static void cloneHyperlinkListExV2(
RoutePoint* dst,
105 wxPlugin_HyperlinkListNode* linknode = src->
m_HyperlinkList->GetFirst();
111 h->Link = link->
Link;
112 h->LType = link->
Type;
116 linknode = linknode->GetNext();
128 cloneHyperlinkListExV2(pWP, src);
138 pWP->
m_btemp = (b_permanent ==
false);
147 pWP->SetScaMin(src->
scamin);
154 pWP->SetScaMax(src->
scamax);
156 if (src->
m_ETD.IsValid())
159 pWP->
SetETD(wxEmptyString);
164 ::Route* route = new ::Route();
169 wxDateTime plannedDeparture;
171 wxPlugin_WaypointExV2ListNode* pwpnode = proute->
pWaypointList->GetFirst();
173 pwaypointex = pwpnode->GetData();
175 pWP = pWayPointMan->FindRoutePointByGUID(pwaypointex->
m_GUID);
177 pWP = CreateNewPoint(pwaypointex, b_permanent);
181 route->AddPoint(pWP);
183 pSelect->AddSelectableRoutePoint(pWP->m_lat, pWP->m_lon, pWP);
186 pSelect->AddSelectableRouteSegment(pWP_src->m_lat, pWP_src->m_lon,
187 pWP->m_lat, pWP->m_lon, pWP_src, pWP,
194 pwpnode = pwpnode->GetNext();
202 if (!proute->
m_GUID.IsEmpty()) {
205 route->
m_btemp = (b_permanent ==
false);
211 route->
m_style = proute->m_style;
219 NavObj_dB::GetInstance().InsertRoute(route);
228 bool b_found =
false;
232 if (pRoute) b_found =
true;
235 bool b_permanent = !pRoute->
m_btemp;
238 b_found = AddPlugInRouteExV3(proute, b_permanent);
247 dst->
m_lat = src->m_lat;
248 dst->
m_lon = src->m_lon;
252 dst->
IconDescription = pWayPointMan->GetIconDescription(src->GetIconName());
264 for (
Hyperlink* link : *src->m_HyperlinkList) {
268 h->
Type = link->LType;
281 dst->
scamin = src->GetScaMin();
286static void cloneHyperlinkListEx(
RoutePoint* dst,
292 wxPlugin_HyperlinkListNode* linknode = src->
m_HyperlinkList->GetFirst();
298 h->Link = link->
Link;
299 h->LType = link->
Type;
303 linknode = linknode->GetNext();
308static wxString DropMarkPI(
double lat,
double lon) {
309 if ((fabs(lat) > 80.0) || (fabs(lon) > 180.))
return "";
312 new RoutePoint(lat, lon, g_default_wp_icon, wxEmptyString, wxEmptyString);
314 pSelect->AddSelectableRoutePoint(lat, lon, pWP);
315 NavObj_dB::GetInstance().InsertRoutePoint(pWP);
319static wxString RouteCreatePI(
int canvas_index,
bool start) {
327 return cc->FinishRoute();
334static bool DoMeasurePI(
int canvas_index,
bool start) {
339 cc->StartMeasureRoute();
342 cc->CancelMeasureRoute();
351static void EnableDefaultConsole(
bool enable) {
352 g_bhide_route_console = !enable;
355static wxString NavToHerePI(
double lat,
double lon) {
357 new RoutePoint(lat, lon, g_default_wp_icon, wxEmptyString, wxEmptyString);
358 pSelect->AddSelectableRoutePoint(lat, lon, pWP_dest);
361 wxEmptyString, wxEmptyString);
367 temp_route->AddPoint(pWP_src);
368 temp_route->AddPoint(pWP_dest);
370 pSelect->AddSelectableRouteSegment(
gLat,
gLon, lat, lon, pWP_src, pWP_dest,
381 return temp_route->
m_GUID;
384static bool ActivateRoutePI(wxString route_guid,
bool activate) {
386 if (!route)
return false;
403static void SetMaxZoomScale(
double max_scale) {
404 g_maxzoomin = wxRound(wxMax(max_scale, 100.));
407static void EnableDefaultContextMenus(
bool enable) {
408 g_bhide_context_menus = !enable;
411static void SetMinZoomScale(
double min_scale) {
412 for (
unsigned int i = 0; i <
g_canvasArray.GetCount(); i++) {
414 cc->SetAbsoluteMinScale(min_scale);
418static std::shared_ptr<HostApi121::PiPointContext> GetContextAtPoint(
419 int x,
int y,
int canvas_index) {
422 return cc->GetCanvasContextAtPoint(x, y);
424 auto rstruct = std::make_shared<HostApi121::PiPointContext>();
425 rstruct->object_type = HostApi121::PiContextObjectType::kObjectUnknown;
426 rstruct->object_ident =
"";
431static wxBitmap GetObjectIcon_PlugIn(
const wxString& name) {
433 return *pWayPointMan->GetIconBitmap(name);
438static bool IsRouteActive(wxString route_guid) {
445static void SetBoatPosition(
double zlat,
double zlon) {
451static void RouteInsertWaypoint(
int canvas_index, wxString route_guid,
452 double zlat,
double zlon) {
463 if ((seltype & SELTYPE_ROUTESEGMENT) != SELTYPE_ROUTESEGMENT)
return;
466 route->InsertPointAfter(parent->GetFoundRoutepoint(), zlat, zlon, rename);
468 pSelect->DeleteAllSelectableRoutePoints(route);
469 pSelect->DeleteAllSelectableRouteSegments(route);
470 pSelect->AddAllSelectableRouteSegments(route);
471 pSelect->AddAllSelectableRoutePoints(route);
473 NavObj_dB::GetInstance().UpdateRoute(route);
476static void RouteAppendWaypoint(
int canvas_index, wxString route_guid) {
484 parent->m_pMouseRoute = route;
485 parent->m_routeState = route->GetnPoints() + 1;
487 parent->m_pMouseRoute->SetHiLite(50);
489 auto pLast = route->GetLastPoint();
491 parent->m_prev_rlat = pLast->m_lat;
492 parent->m_prev_rlon = pLast->m_lon;
493 parent->m_prev_pMousePoint = pLast;
495 parent->m_bAppendingRoute =
true;
498static void FinishRoute(
int canvas_index) {
503 parent->FinishRoute();
506static bool IsRouteBeingCreated(
int canvas_index) {
509 if (!parent)
return false;
510 return !(parent->m_pMouseRoute == NULL);
513static bool AreRouteWaypointNamesVisible(wxString route_guid) {
515 if (!route)
return false;
516 return route->AreWaypointNamesVisible();
519static void ShowRouteWaypointNames(wxString route_guid,
bool show) {
522 route->ShowWaypointNames(show);
525static void NavigateToWaypoint(wxString waypoint_guid) {
526 RoutePoint* prp = pWayPointMan->FindRoutePointByGUID(waypoint_guid);
530 wxEmptyString, wxEmptyString);
536 temp_route->AddPoint(pWP_src);
537 temp_route->AddPoint(prp);
538 prp->SetShared(
true);
541 pWP_src, prp, temp_route);
543 wxString name = prp->GetName();
544 if (name.IsEmpty()) name = _(
"(Unnamed Waypoint)");
545 wxString rteName = _(
"Go to ");
546 rteName.Append(name);
557static bool IsAISTrackVisible(wxString ais_mmsi) {
559 ais_mmsi.ToLong(&mmsi);
560 auto myptarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
562 return myptarget->b_show_track;
567static void AISToggleShowTrack(wxString ais_mmsi) {
569 ais_mmsi.ToLong(&mmsi);
570 auto myptarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
571 if (myptarget) myptarget->ToggleShowTrack();
574static void AISToggleShowCPA(wxString ais_mmsi) {
576 ais_mmsi.ToLong(&mmsi);
577 auto myptarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
578 if (myptarget) myptarget->Toggle_AIS_CPA();
581static void ShowAISTargetQueryDialog(
int canvas_index, wxString ais_mmsi) {
587 ais_mmsi.ToLong(&mmsi);
588 ShowAISTargetQueryDialog(parent, mmsi);
591static void ShowAISTargetList(
int canvas_index) {
595 parent->ShowAISTargetList();
598static bool IsMeasureActive(
int canvas_index) {
601 if (!parent)
return false;
602 return parent->m_bMeasure_Active;
605static void CancelMeasure(
int canvas_index) {
609 parent->CancelMeasureRoute();
612static void SetDepthUnitVisible(
bool bviz) { g_bhide_depth_units = !bviz; }
614static void SetOverzoomFlagVisible(
bool bviz) { g_bhide_overzoom_flag = !bviz; }
617static void AddNoShowDirectory(std::string chart_dir) {
621static void RemoveNoShowDirectory(std::string chart_dir) {
630static const std::vector<std::string>& GetNoShowVector() {
645 int ref_index = oCanvas->GetQuiltReferenceChartIndex();
646 if (ref_index == -1)
return false;
651 if (cte_ref.GetChartFamily() == Family) {
652 if (!cte_ref.IsBasemap())
return false;
655 int target_scale = cte_ref.GetScale();
657 int target_index = -1;
658 for (
auto index : oCanvas->GetQuiltExtendedStackdbIndexArray()) {
660 if (cte.GetChartFamily() != Family)
continue;
662 if (cte.GetScale() == target_scale) {
663 target_index = index;
668 if (target_index < 0) {
670 for (
auto index : oCanvas->GetQuiltExtendedStackdbIndexArray()) {
672 if (cte.GetChartFamily() != Family)
continue;
673 if (cte.GetScale() <= target_scale) {
674 target_index = index;
679 if (target_index < 0) {
681 for (
auto index : oCanvas->GetQuiltExtendedStackdbIndexArray()) {
683 if (cte.GetChartFamily() != Family)
continue;
684 if (cte.GetScale() > target_scale) {
685 target_index = index;
691 if (target_index >= 0) {
694 if (oCanvas->IsChartQuiltableRef(target_index)) {
700 bool set_scale =
false;
701 if (CHART_TYPE_S57 ==
ChartData->GetDBChartType(target_index)) {
702 if (
ChartData->GetDBChartScale(target_index) < 5000) {
708 oCanvas->SelectQuiltRefdbChart(target_index,
true);
710 oCanvas->SelectQuiltRefdbChart(target_index,
false);
716 double proposed_scale_onscreen =
717 oCanvas->GetCanvasScaleFactor() / oCanvas->GetVPScale();
719 if (g_bPreserveScaleOnX) {
720 proposed_scale_onscreen = wxMin(
721 proposed_scale_onscreen,
722 100 * pc->GetNormalScaleMax(oCanvas->GetCanvasScaleFactor(),
723 oCanvas->GetCanvasWidth()));
725 proposed_scale_onscreen = wxMin(
726 proposed_scale_onscreen,
727 20 * pc->GetNormalScaleMax(oCanvas->GetCanvasScaleFactor(),
728 oCanvas->GetCanvasWidth()));
730 proposed_scale_onscreen =
731 wxMax(proposed_scale_onscreen,
732 pc->GetNormalScaleMin(oCanvas->GetCanvasScaleFactor(),
736 oCanvas->SetVPScale(oCanvas->GetCanvasScaleFactor() /
737 proposed_scale_onscreen);
741 oCanvas->DoCanvasUpdate();
749static void CenterToAisTarget(wxString ais_mmsi) {
751 if (ais_mmsi.ToLong(&mmsi)) {
752 std::shared_ptr<AisTargetData> pAISTarget =
nullptr;
753 if (
g_pAIS) pAISTarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
760static void AisTargetCreateWpt(wxString ais_mmsi) {
762 if (ais_mmsi.ToLong(&mmsi)) {
763 std::shared_ptr<AisTargetData> pAISTarget = NULL;
764 if (
g_pAIS) pAISTarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
768 new RoutePoint(pAISTarget->Lat, pAISTarget->Lon, g_default_wp_icon,
769 wxEmptyString, wxEmptyString);
771 pSelect->AddSelectableRoutePoint(pAISTarget->Lat, pAISTarget->Lon, pWP);
772 NavObj_dB::GetInstance().InsertRoutePoint(pWP);
779static void AisShowAllTracks(
bool show) {
781 for (
const auto& it :
g_pAIS->GetTargetList()) {
782 auto pAISTarget = it.second;
783 if (NULL != pAISTarget) {
784 pAISTarget->b_show_track = show;
787 std::map<int, Track*>::iterator itt;
788 itt =
g_pAIS->m_persistent_tracks.find(pAISTarget->MMSI);
789 if (itt !=
g_pAIS->m_persistent_tracks.end()) {
790 pAISTarget->b_show_track_old = show;
798static void AisToggleTrack(wxString ais_mmsi) {
800 if (ais_mmsi.ToLong(&mmsi)) {
801 std::shared_ptr<AisTargetData> pAISTarget = NULL;
802 if (
g_pAIS) pAISTarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
805 pAISTarget->b_show_track_old =
806 pAISTarget->b_show_track;
807 pAISTarget->b_show_track =
808 !pAISTarget->b_show_track;
813static int GetContextMenuMask() {
return g_canvas_context_menu_disable_mask; }
815static void SetContextMenuMask(
int mask) {
816 g_canvas_context_menu_disable_mask = mask;
819static bool IsAIS_CPAVisible(wxString ais_mmsi) {
821 ais_mmsi.ToLong(&mmsi);
822 auto myptarget =
g_pAIS->Get_Target_Data_From_MMSI(mmsi);
824 return myptarget->b_show_AIS_CPA;
829static void SetTrackVisibility(
const wxString& track_GUID,
bool viz) {
831 if (ptrack->m_GUID == track_GUID) {
832 ptrack->SetVisible(viz);
839 return std::make_unique<HostApi121>(
HostApi121());
843 return ::AddPlugInRouteExV3(route, permanent);
847 return ::UpdatePlugInRouteExV3(route);
852 if (!route)
return nullptr;
854 auto dst_route = std::make_unique<HostApi121::Route>();
858 PlugInExV2FromRoutePoint(dst_wp, src_wp);
859 dst_route->pWaypointList->Append(dst_wp);
864 dst_route->m_GUID = route->
m_GUID;
865 dst_route->m_isActive =
g_pRouteMan->GetpActiveRoute() == route;
866 dst_route->m_isVisible = route->IsVisible();
869 dst_route->m_Colour = route->
m_Colour;
870 dst_route->m_style = route->
m_style;
877wxString HostApi121::DropMarkPI(
double lat,
double lon) {
878 return ::DropMarkPI(lat, lon);
881wxString HostApi121::RouteCreatePI(
int canvas_index,
bool start) {
882 return ::RouteCreatePI(canvas_index, start);
885bool HostApi121::DoMeasurePI(
int canvas_index,
bool start) {
886 return ::DoMeasurePI(canvas_index, start);
889wxString HostApi121::NavToHerePI(
double lat,
double lon) {
890 return ::NavToHerePI(lat, lon);
893bool HostApi121::ActivateRoutePI(wxString route_guid,
bool activate) {
894 return ::ActivateRoutePI(route_guid, activate);
897void HostApi121::EnableDefaultConsole(
bool enable) {
898 ::EnableDefaultConsole(enable);
901void HostApi121::EnableDefaultContextMenus(
bool enable) {
902 ::EnableDefaultContextMenus(enable);
905void HostApi121::SetMinZoomScale(
double min_scale) {
906 ::SetMinZoomScale(min_scale);
909void HostApi121::SetMaxZoomScale(
double max_scale) {
910 ::SetMaxZoomScale(max_scale);
913std::shared_ptr<HostApi121::PiPointContext> HostApi121::GetContextAtPoint(
914 int x,
int y,
int canvas_index) {
915 return ::GetContextAtPoint(x, y, canvas_index);
918wxBitmap HostApi121::GetObjectIcon_PlugIn(
const wxString& name) {
919 return ::GetObjectIcon_PlugIn(name);
922bool HostApi121::IsRouteActive(wxString route_guid) {
923 return ::IsRouteActive(route_guid);
926void HostApi121::SetBoatPosition(
double zlat,
double zlon) {
927 ::SetBoatPosition(zlat, zlon);
930void HostApi121::RouteInsertWaypoint(
int canvas_index, wxString route_guid,
931 double zlat,
double zlon) {
932 ::RouteInsertWaypoint(canvas_index, route_guid, zlat, zlon);
935void HostApi121::RouteAppendWaypoint(
int canvas_index, wxString route_guid) {
936 ::RouteAppendWaypoint(canvas_index, route_guid);
939void HostApi121::FinishRoute(
int canvas_index) { ::FinishRoute(canvas_index); }
941bool HostApi121::IsRouteBeingCreated(
int canvas_index) {
942 return ::IsRouteBeingCreated(canvas_index);
945bool HostApi121::AreRouteWaypointNamesVisible(wxString route_guid) {
946 return ::AreRouteWaypointNamesVisible(route_guid);
949void HostApi121::ShowRouteWaypointNames(wxString route_guid,
bool show) {
950 ::ShowRouteWaypointNames(route_guid, show);
953void HostApi121::NavigateToWaypoint(wxString waypoint_guid) {
954 ::NavigateToWaypoint(waypoint_guid);
957bool HostApi121::IsAISTrackVisible(
const wxString& ais_mmsi)
const {
958 return ::IsAISTrackVisible(ais_mmsi);
961void HostApi121::AISToggleShowTrack(
const wxString& ais_mmsi) {
962 ::AISToggleShowTrack(ais_mmsi);
965bool HostApi121::IsAIS_CPAVisible(
const wxString& ais_mmsi)
const {
966 return ::IsAIS_CPAVisible(ais_mmsi);
969void HostApi121::AISToggleShowCPA(
const wxString& ais_mmsi) {
970 ::AISToggleShowCPA(ais_mmsi);
973void HostApi121::ShowAISTargetQueryDialog(
int canvas_index,
974 const wxString& ais_mmsi) {
975 ::ShowAISTargetQueryDialog(canvas_index, ais_mmsi);
978void HostApi121::ShowAISTargetList(
int canvas_index) {
979 ::ShowAISTargetList(canvas_index);
982bool HostApi121::IsMeasureActive(
int canvas_index) {
983 return ::IsMeasureActive(canvas_index);
986void HostApi121::CancelMeasure(
int canvas_index) {
987 ::CancelMeasure(canvas_index);
990void HostApi121::SetDepthUnitVisible(
bool bviz) { ::SetDepthUnitVisible(bviz); }
992void HostApi121::SetOverzoomFlagVisible(
bool viz) {
993 ::SetOverzoomFlagVisible(viz);
996void HostApi121::AddNoShowDirectory(std::string chart_dir) {
997 ::AddNoShowDirectory(chart_dir);
1000void HostApi121::RemoveNoShowDirectory(std::string chart_dir) {
1001 ::RemoveNoShowDirectory(chart_dir);
1004void HostApi121::ClearNoShowVector() { ::ClearNoShowVector(); }
1006const std::vector<std::string>& HostApi121::GetNoShowVector() {
1007 return ::GetNoShowVector();
1011 return ::SelectChartFamily(CanvasIndex, Family);
1016void HostApi121::CenterToAisTarget(wxString ais_mmsi) {
1017 ::CenterToAisTarget(ais_mmsi);
1020void HostApi121::AisTargetCreateWpt(wxString ais_mmsi) {
1021 ::AisTargetCreateWpt(ais_mmsi);
1024void HostApi121::AisShowAllTracks(
bool show) { ::AisShowAllTracks(show); }
1026void HostApi121::AisToggleTrack(wxString ais_mmsi) {
1027 ::AisToggleTrack(ais_mmsi);
1031int HostApi121::GetContextMenuMask() { return ::GetContextMenuMask(); }
1033void HostApi121::SetContextMenuMask(
int mask) { ::SetContextMenuMask(mask); }
1035void HostApi121::SetTrackVisibiiity(
const wxString& track_GUID,
bool viz) {
1036 ::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.
ChartDB * ChartData
Global instance.
arrayofCanvasPtr g_canvasArray
Global instance.
Generic Chart canvas base.
Base class for all chart types.
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 on_routes_update
Notified when list of routes is updated (no data in event)
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)
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.
bool g_b_overzoom_x
Allow high overzoom.
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.
Represents an entry in the chart table, containing information about a single chart.
std::vector< Track * > g_TrackList
Global instance.
Recorded track abstraction.