OpenCPN Partial API docs
Loading...
Searching...
No Matches
route.h File Reference

Route abstraction. More...

#include <functional>
#include <vector>
#include <wx/colour.h>
#include <wx/datetime.h>
#include <wx/gdicmn.h>
#include <wx/object.h>
#include <wx/pen.h>
#include <wx/string.h>
#include "model/route_point.h"
#include "model/routeman.h"
#include "model/hyperlink.h"
#include "bbox.h"

Go to the source code of this file.

Classes

class  Route
 Represents a navigational route in the navigation system. More...
 

Macros

#define WIDTH_UNDEFINED   -1
 
#define ROUTE_DEFAULT_SPEED   5.0
 
#define RTE_TIME_DISP_UTC   "UTC"
 
#define RTE_TIME_DISP_PC   "PC"
 
#define RTE_TIME_DISP_LOCAL   "LOCAL"
 
#define RTE_TIME_DISP_GLOBAL   "GLOBAL SETTING"
 
#define RTE_UNDEF_DEPARTURE   wxInvalidDateTime
 

Typedefs

using RouteList = std::vector< Route * >
 

Variables

WayPointmanpWayPointMan
 
const wxString GpxxColorNames []
 
const wxColour GpxxColors []
 
const int StyleValues []
 
const int WidthValues [] = {-1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
 

Detailed Description

Route abstraction.

Definition in file route.h.

Macro Definition Documentation

◆ ROUTE_DEFAULT_SPEED

#define ROUTE_DEFAULT_SPEED   5.0

Definition at line 45 of file route.h.

◆ RTE_TIME_DISP_GLOBAL

#define RTE_TIME_DISP_GLOBAL   "GLOBAL SETTING"

Definition at line 49 of file route.h.

◆ RTE_TIME_DISP_LOCAL

#define RTE_TIME_DISP_LOCAL   "LOCAL"

Definition at line 48 of file route.h.

◆ RTE_TIME_DISP_PC

#define RTE_TIME_DISP_PC   "PC"

Definition at line 47 of file route.h.

◆ RTE_TIME_DISP_UTC

#define RTE_TIME_DISP_UTC   "UTC"

Definition at line 46 of file route.h.

◆ RTE_UNDEF_DEPARTURE

#define RTE_UNDEF_DEPARTURE   wxInvalidDateTime

Definition at line 50 of file route.h.

◆ WIDTH_UNDEFINED

#define WIDTH_UNDEFINED   -1

Definition at line 43 of file route.h.

Typedef Documentation

◆ RouteList

using RouteList = std::vector<Route *>

Definition at line 393 of file route.h.

Variable Documentation

◆ GpxxColorNames

const wxString GpxxColorNames[]
Initial value:
= {
_T("Black"), _T("DarkRed"), _T("DarkGreen"),
_T("DarkYellow"), _T("DarkBlue"), _T("DarkMagenta"),
_T("DarkCyan"), _T("LightGray"), _T("DarkGray"),
_T("Red"), _T("Green"), _T ("Yellow"),
_T("Blue"), _T("Magenta"), _T("Cyan"),
_T("White")}

Definition at line 56 of file route.h.

◆ GpxxColors

const wxColour GpxxColors[]
Initial value:
= {
wxColour(0x00, 0x00, 0x00), wxColour(0x60, 0x00, 0x00),
wxColour(0x00, 0x60, 0x00), wxColour(0x80, 0x80, 0x00),
wxColour(0x00, 0x00, 0x60), wxColour(0x60, 0x00, 0x60),
wxColour(0x00, 0x80, 0x80), wxColour(0xC0, 0xC0, 0xC0),
wxColour(0x60, 0x60, 0x60), wxColour(0xFF, 0x00, 0x00),
wxColour(0x00, 0xFF, 0x00), wxColour(0xF0, 0xF0, 0x00),
wxColour(0x00, 0x00, 0xFF), wxColour(0xFE, 0x00, 0xFE),
wxColour(0x00, 0xFF, 0xFF), wxColour(0xFF, 0xFF, 0xFF)}

Definition at line 64 of file route.h.

◆ pWayPointMan

WayPointman* pWayPointMan
extern

Definition at line 47 of file route.cpp.

◆ StyleValues

const int StyleValues[]
Initial value:
= {-1, wxSOLID, wxDOT,
wxLONG_DASH, wxSHORT_DASH, wxDOT_DASH}

Definition at line 73 of file route.h.

◆ WidthValues

const int WidthValues[] = {-1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}

Definition at line 75 of file route.h.