|
| Routeman (struct RoutePropDlgCtx prop_dlg_ctx, struct RoutemanDlgCtx route_dlg_ctx) |
|
bool | DeleteTrack (Track *pTrack) |
|
bool | DeleteRoute (Route *pRoute, NavObjectChanges *nav_obj_changes) |
|
void | DeleteAllRoutes (NavObjectChanges *nav_obj_changes) |
|
bool | IsRouteValid (Route *pRoute) |
|
Route * | FindRouteByGUID (const wxString &guid) |
|
Track * | FindTrackByGUID (const wxString &guid) |
|
Route * | FindRouteContainingWaypoint (RoutePoint *pWP) |
|
Route * | FindVisibleRouteContainingWaypoint (RoutePoint *pWP) |
|
wxArrayPtrVoid * | GetRouteArrayContaining (RoutePoint *pWP) |
| Find all routes that contain the given waypoint.
|
|
bool | DoesRouteContainSharedPoints (Route *pRoute) |
|
void | RemovePointFromRoute (RoutePoint *point, Route *route, int route_state) |
|
bool | ActivateRoute (Route *pRouteToActivate, RoutePoint *pStartPoint=NULL) |
| Activates a route for navigation.
|
|
bool | ActivateRoutePoint (Route *pA, RoutePoint *pRP) |
| Activates a specific waypoint within a route for navigation.
|
|
bool | ActivateNextPoint (Route *pr, bool skipped) |
| Activates the next waypoint in a route when the current waypoint is reached.
|
|
RoutePoint * | FindBestActivatePoint (Route *pR, double lat, double lon, double cog, double sog) |
|
bool | UpdateAutopilot () |
|
bool | DeactivateRoute (bool b_arrival=false) |
|
bool | IsAnyRouteActive (void) |
|
bool | GetArrival () |
|
Route * | GetpActiveRoute () |
|
RoutePoint * | GetpActiveRouteSegmentBeginPoint () |
|
RoutePoint * | GetpActivePoint () |
|
double | GetCurrentRngToActivePoint () |
|
double | GetCurrentBrgToActivePoint () |
|
double | GetCurrentRngToActiveNormalArrival () |
|
double | GetCurrentXTEToActivePoint () |
|
void | ZeroCurrentXTEToActivePoint () |
|
double | GetCurrentSegmentCourse () |
|
int | GetXTEDir () |
|
void | SetColorScheme (ColorScheme cs, double displayDPmm) |
|
wxPen * | GetRoutePen (void) |
|
wxPen * | GetTrackPen (void) |
|
wxPen * | GetSelectedRoutePen (void) |
|
wxPen * | GetActiveRoutePen (void) |
|
wxPen * | GetActiveRoutePointPen (void) |
|
wxPen * | GetRoutePointPen (void) |
|
wxBrush * | GetRouteBrush (void) |
|
wxBrush * | GetSelectedRouteBrush (void) |
|
wxBrush * | GetActiveRouteBrush (void) |
|
wxBrush * | GetActiveRoutePointBrush (void) |
|
wxBrush * | GetRoutePointBrush (void) |
|
wxString | GetRouteReverseMessage (void) |
|
wxString | GetRouteResequenceMessage (void) |
|
struct RoutemanDlgCtx & | GetDlgContext () |
|
NMEA0183 | GetNMEA0183 () |
|
EventVar & | GetMessageSentEventVar () |
|
std::vector< DriverHandle > | GetOutpuDriverArray () |
|
Definition at line 115 of file routeman.h.
◆ Routeman()
◆ ~Routeman()
◆ ActivateNextPoint()
bool Routeman::ActivateNextPoint |
( |
Route * |
pr, |
|
|
bool |
skipped |
|
) |
| |
Activates the next waypoint in a route when the current waypoint is reached.
This function handles the transition between waypoints by:
- Deactivating the current waypoint
- Sending arrival notifications to plugins
- Finding and activating the next waypoint in sequence
- Setting up visual indicators for the new active waypoint
- Resetting arrival detection parameters
This function is called automatically when a waypoint arrival is detected, or manually when skipping a waypoint.
- Parameters
-
pr | Pointer to the active route |
skipped | Boolean indicating if this is a manual skip (true) or normal arrival (false) |
- Returns
- true if successfully activated the next waypoint, false if at the end of the route
if (pRoutePropDialog && pRoutePropDialog->IsShown()) { if (pRoutePropDialog->GetRoute() == pr) { pRoutePropDialog->SetEnroutePoint(pActivePoint); } }
Definition at line 394 of file routeman.cpp.
◆ ActivateRoute()
bool Routeman::ActivateRoute |
( |
Route * |
pRouteToActivate, |
|
|
RoutePoint * |
pStartPoint = NULL |
|
) |
| |
Activates a route for navigation.
This function sets up a route for active navigation by:
- Setting up the route for plugin notifications
- Configuring output drivers for navigation data
- Creating a "virtual" waypoint at the vessel's current position if starting at the beginning of the route
- Activating the first/selected waypoint as the active navigation target
- Initializing arrival detection parameters
When a route is activated, OpenCPN starts providing navigation data to autopilot systems and plugins, updating the display to show the active route, and monitoring for waypoint arrivals.
- Parameters
-
pRouteToActivate | Pointer to the Route object to activate |
pStartPoint | Optional pointer to a specific RoutePoint to start from (if NULL, starts from the first point in the route) |
- Returns
- true if route was successfully activated
Definition at line 260 of file routeman.cpp.
◆ ActivateRoutePoint()
Activates a specific waypoint within a route for navigation.
This function sets up navigation to a specific waypoint by:
- Setting up waypoint plugin notifications
- Establishing the active waypoint and its preceding segment
- Creating a "virtual" waypoint at the vessel's current position if this is the first point in the route
- Setting up visual indicators (making the active point blink)
- Initializing arrival detection parameters
This function is called by ActivateRoute() and is also used when manually changing the active waypoint during navigation.
- Parameters
-
pA | Pointer to the route containing the waypoint |
pRP_target | Pointer to the RoutePoint to set as the active target |
- Returns
- true if waypoint was successfully activated
if (pRoutePropDialog && pRoutePropDialog->IsShown()) { if (pRoutePropDialog->GetRoute() == pA) { pRoutePropDialog->SetEnroutePoint(pActivePoint); } }
Definition at line 319 of file routeman.cpp.
◆ DeactivateRoute()
bool Routeman::DeactivateRoute |
( |
bool |
b_arrival = false | ) |
|
◆ DeleteAllRoutes()
◆ DeleteRoute()
if (pRoutePropDialog && (pRoutePropDialog->IsShown()) && (pRoute == pRoutePropDialog->GetRoute())) { pRoutePropDialog->Hide(); }
Definition at line 835 of file routeman.cpp.
◆ DeleteTrack()
bool Routeman::DeleteTrack |
( |
Track * |
pTrack | ) |
|
◆ DoesRouteContainSharedPoints()
bool Routeman::DoesRouteContainSharedPoints |
( |
Route * |
pRoute | ) |
|
◆ FindBestActivatePoint()
RoutePoint * Routeman::FindBestActivatePoint |
( |
Route * |
pR, |
|
|
double |
lat, |
|
|
double |
lon, |
|
|
double |
cog, |
|
|
double |
sog |
|
) |
| |
◆ FindRouteByGUID()
Route * Routeman::FindRouteByGUID |
( |
const wxString & |
guid | ) |
|
◆ FindRouteContainingWaypoint()
◆ FindTrackByGUID()
Track * Routeman::FindTrackByGUID |
( |
const wxString & |
guid | ) |
|
◆ FindVisibleRouteContainingWaypoint()
◆ GetActiveRouteBrush()
wxBrush * Routeman::GetActiveRouteBrush |
( |
void |
| ) |
|
|
inline |
◆ GetActiveRoutePen()
wxPen * Routeman::GetActiveRoutePen |
( |
void |
| ) |
|
|
inline |
◆ GetActiveRoutePointBrush()
wxBrush * Routeman::GetActiveRoutePointBrush |
( |
void |
| ) |
|
|
inline |
◆ GetActiveRoutePointPen()
wxPen * Routeman::GetActiveRoutePointPen |
( |
void |
| ) |
|
|
inline |
◆ GetArrival()
bool Routeman::GetArrival |
( |
| ) |
|
|
inline |
◆ GetCurrentBrgToActivePoint()
double Routeman::GetCurrentBrgToActivePoint |
( |
| ) |
|
|
inline |
◆ GetCurrentRngToActiveNormalArrival()
double Routeman::GetCurrentRngToActiveNormalArrival |
( |
| ) |
|
|
inline |
◆ GetCurrentRngToActivePoint()
double Routeman::GetCurrentRngToActivePoint |
( |
| ) |
|
|
inline |
◆ GetCurrentSegmentCourse()
double Routeman::GetCurrentSegmentCourse |
( |
| ) |
|
|
inline |
◆ GetCurrentXTEToActivePoint()
double Routeman::GetCurrentXTEToActivePoint |
( |
| ) |
|
|
inline |
◆ GetDlgContext()
◆ GetMessageSentEventVar()
EventVar & Routeman::GetMessageSentEventVar |
( |
| ) |
|
|
inline |
◆ GetNMEA0183()
NMEA0183 Routeman::GetNMEA0183 |
( |
| ) |
|
|
inline |
◆ GetOutpuDriverArray()
std::vector< DriverHandle > Routeman::GetOutpuDriverArray |
( |
| ) |
|
|
inline |
◆ GetpActivePoint()
◆ GetpActiveRoute()
Route * Routeman::GetpActiveRoute |
( |
| ) |
|
|
inline |
◆ GetpActiveRouteSegmentBeginPoint()
RoutePoint * Routeman::GetpActiveRouteSegmentBeginPoint |
( |
| ) |
|
|
inline |
◆ GetRouteArrayContaining()
wxArrayPtrVoid * Routeman::GetRouteArrayContaining |
( |
RoutePoint * |
pWP | ) |
|
Find all routes that contain the given waypoint.
This function searches through all routes in the route list and returns an array of route pointers for each route that contains the specified waypoint.
- Parameters
-
pWP | Pointer to the waypoint to search for. |
- Returns
- Pointer to wxArrayPtrVoid containing routes, or nullptr if no routes contain the waypoint. The caller is responsible for deleting the returned array when done with it.
Definition at line 174 of file routeman.cpp.
◆ GetRouteBrush()
wxBrush * Routeman::GetRouteBrush |
( |
void |
| ) |
|
|
inline |
◆ GetRoutePen()
wxPen * Routeman::GetRoutePen |
( |
void |
| ) |
|
|
inline |
◆ GetRoutePointBrush()
wxBrush * Routeman::GetRoutePointBrush |
( |
void |
| ) |
|
|
inline |
◆ GetRoutePointPen()
wxPen * Routeman::GetRoutePointPen |
( |
void |
| ) |
|
|
inline |
◆ GetRouteResequenceMessage()
wxString Routeman::GetRouteResequenceMessage |
( |
void |
| ) |
|
◆ GetRouteReverseMessage()
wxString Routeman::GetRouteReverseMessage |
( |
void |
| ) |
|
◆ GetSelectedRouteBrush()
wxBrush * Routeman::GetSelectedRouteBrush |
( |
void |
| ) |
|
|
inline |
◆ GetSelectedRoutePen()
wxPen * Routeman::GetSelectedRoutePen |
( |
void |
| ) |
|
|
inline |
◆ GetTrackPen()
wxPen * Routeman::GetTrackPen |
( |
void |
| ) |
|
|
inline |
◆ GetXTEDir()
int Routeman::GetXTEDir |
( |
| ) |
|
|
inline |
◆ IsAnyRouteActive()
bool Routeman::IsAnyRouteActive |
( |
void |
| ) |
|
|
inline |
◆ IsRouteValid()
bool Routeman::IsRouteValid |
( |
Route * |
pRoute | ) |
|
◆ RemovePointFromRoute()
void Routeman::RemovePointFromRoute |
( |
RoutePoint * |
point, |
|
|
Route * |
route, |
|
|
int |
route_state |
|
) |
| |
◆ SetColorScheme()
void Routeman::SetColorScheme |
( |
ColorScheme |
cs, |
|
|
double |
displayDPmm |
|
) |
| |
◆ UpdateAutopilot()
bool Routeman::UpdateAutopilot |
( |
| ) |
|
◆ ZeroCurrentXTEToActivePoint()
void Routeman::ZeroCurrentXTEToActivePoint |
( |
| ) |
|
◆ RoutemanGui
◆ json_leg_info
Notified with a shared_ptr<ActiveLegDat>, leg info to all plugins.
Definition at line 262 of file routeman.h.
◆ json_msg
Notified with message targeting all plugins.
Contains a message type string and a wxJSONValue shared_ptr.
Definition at line 259 of file routeman.h.
◆ m_bDataValid
bool Routeman::m_bDataValid |
◆ on_message_sent
Notified when a message available as GetString() is sent to garmin.
Definition at line 265 of file routeman.h.
◆ on_routes_update
Notified when list of routes is updated (no data in event)
Definition at line 268 of file routeman.h.
The documentation for this class was generated from the following files:
- /home/runner/work/main/main/opencpn/model/include/model/routeman.h
- /home/runner/work/main/main/opencpn/model/src/routeman.cpp