OpenCPN Partial API docs
Loading...
Searching...
No Matches
Track Class Reference
Inheritance diagram for Track:
ActiveTrack

Public Member Functions

int GetnPoints (void)
 
void SetVisible (bool visible=true)
 
TrackPointGetPoint (int nWhichPoint)
 
TrackPointGetLastPoint ()
 
void AddPoint (TrackPoint *pNewPoint)
 
void AddPointFinalized (TrackPoint *pNewPoint)
 
TrackPointAddNewPoint (vector2D point, wxDateTime time)
 
void SetListed (bool listed=true)
 
virtual bool IsRunning ()
 
bool IsVisible ()
 
bool IsListed ()
 
int GetCurrentTrackSeg ()
 
void SetCurrentTrackSeg (int seg)
 
double Length ()
 
int Simplify (double maxDelta)
 
RouteRouteFromTrack (wxGenericProgressDialog *pprog)
 
void ClearHighlights ()
 
wxString GetName (bool auto_if_empty=false) const
 
void SetName (const wxString name)
 
void Clone (Track *psourcetrack, int start_nPoint, int end_nPoint, const wxString &suffix)
 

Public Attributes

wxString m_GUID
 
bool m_bIsInLayer
 
int m_LayerID
 
wxString m_TrackDescription
 
wxString m_TrackStartString
 
wxString m_TrackEndString
 
int m_width
 
wxPenStyle m_style
 
wxString m_Colour
 
bool m_bVisible
 
bool m_bListed
 
bool m_btemp
 
int m_CurrentTrackSeg
 
HyperlinkList * m_HyperlinkList
 
int m_HighlightedTrackPoint
 

Protected Member Functions

void DouglasPeuckerReducer (std::vector< TrackPoint * > &list, std::vector< bool > &keeplist, int from, int to, double delta)
 
double GetXTE (TrackPoint *fm1, TrackPoint *fm2, TrackPoint *to)
 
double GetXTE (double fm1Lat, double fm1Lon, double fm2Lat, double fm2Lon, double toLat, double toLon)
 

Protected Attributes

std::vector< TrackPoint * > TrackPoints
 
std::vector< std::vector< SubTrack > > SubTracks
 

Friends

class TrackGui
 

Detailed Description

Definition at line 79 of file track.h.

Constructor & Destructor Documentation

◆ Track()

Track::Track ( )

Definition at line 184 of file track.cpp.

◆ ~Track()

Track::~Track ( void  )
virtual

Definition at line 199 of file track.cpp.

Member Function Documentation

◆ AddNewPoint()

TrackPoint * Track::AddNewPoint ( vector2D  point,
wxDateTime  time 
)

Definition at line 693 of file track.cpp.

◆ AddPoint()

void Track::AddPoint ( TrackPoint pNewPoint)

Definition at line 602 of file track.cpp.

◆ AddPointFinalized()

void Track::AddPointFinalized ( TrackPoint pNewPoint)

Definition at line 680 of file track.cpp.

◆ ClearHighlights()

void Track::ClearHighlights ( )

Definition at line 516 of file track.cpp.

◆ Clone()

void Track::Clone ( Track psourcetrack,
int  start_nPoint,
int  end_nPoint,
const wxString &  suffix 
)

Definition at line 335 of file track.cpp.

◆ DouglasPeuckerReducer()

void Track::DouglasPeuckerReducer ( std::vector< TrackPoint * > &  list,
std::vector< bool > &  keeplist,
int  from,
int  to,
double  delta 
)
protected

Definition at line 712 of file track.cpp.

◆ GetCurrentTrackSeg()

int Track::GetCurrentTrackSeg ( )
inline

Definition at line 101 of file track.h.

◆ GetLastPoint()

TrackPoint * Track::GetLastPoint ( )

Definition at line 526 of file track.cpp.

◆ GetName()

wxString Track::GetName ( bool  auto_if_empty = false) const
inline

Definition at line 110 of file track.h.

◆ GetnPoints()

int Track::GetnPoints ( void  )
inline

Definition at line 86 of file track.h.

◆ GetPoint()

TrackPoint * Track::GetPoint ( int  nWhichPoint)

Definition at line 519 of file track.cpp.

◆ GetXTE() [1/2]

double Track::GetXTE ( double  fm1Lat,
double  fm1Lon,
double  fm2Lat,
double  fm2Lon,
double  toLat,
double  toLon 
)
protected

Definition at line 944 of file track.cpp.

◆ GetXTE() [2/2]

double Track::GetXTE ( TrackPoint fm1,
TrackPoint fm2,
TrackPoint to 
)
protected

Definition at line 986 of file track.cpp.

◆ IsListed()

bool Track::IsListed ( )
inline

Definition at line 99 of file track.h.

◆ IsRunning()

virtual bool Track::IsRunning ( )
inlinevirtual

Definition at line 96 of file track.h.

◆ IsVisible()

bool Track::IsVisible ( )
inline

Definition at line 98 of file track.h.

◆ Length()

double Track::Length ( )

Definition at line 736 of file track.cpp.

◆ RouteFromTrack()

Route * Track::RouteFromTrack ( wxGenericProgressDialog *  pprog)

Definition at line 792 of file track.cpp.

◆ SetCurrentTrackSeg()

void Track::SetCurrentTrackSeg ( int  seg)
inline

Definition at line 102 of file track.h.

◆ SetListed()

void Track::SetListed ( bool  listed = true)
inline

Definition at line 95 of file track.h.

◆ SetName()

void Track::SetName ( const wxString  name)
inline

Definition at line 126 of file track.h.

◆ SetVisible()

void Track::SetVisible ( bool  visible = true)
inline

Definition at line 88 of file track.h.

◆ Simplify()

int Track::Simplify ( double  maxDelta)

Definition at line 756 of file track.cpp.

Friends And Related Function Documentation

◆ TrackGui

friend class TrackGui
friend

Definition at line 80 of file track.h.

Member Data Documentation

◆ m_bIsInLayer

bool Track::m_bIsInLayer

Definition at line 129 of file track.h.

◆ m_bListed

bool Track::m_bListed

Definition at line 142 of file track.h.

◆ m_btemp

bool Track::m_btemp

Definition at line 143 of file track.h.

◆ m_bVisible

bool Track::m_bVisible

Definition at line 141 of file track.h.

◆ m_Colour

wxString Track::m_Colour

Definition at line 139 of file track.h.

◆ m_CurrentTrackSeg

int Track::m_CurrentTrackSeg

Definition at line 145 of file track.h.

◆ m_GUID

wxString Track::m_GUID

Definition at line 128 of file track.h.

◆ m_HighlightedTrackPoint

int Track::m_HighlightedTrackPoint

Definition at line 148 of file track.h.

◆ m_HyperlinkList

HyperlinkList* Track::m_HyperlinkList

Definition at line 147 of file track.h.

◆ m_LayerID

int Track::m_LayerID

Definition at line 130 of file track.h.

◆ m_style

wxPenStyle Track::m_style

Definition at line 138 of file track.h.

◆ m_TrackDescription

wxString Track::m_TrackDescription

Definition at line 132 of file track.h.

◆ m_TrackEndString

wxString Track::m_TrackEndString

Definition at line 135 of file track.h.

◆ m_TrackStartString

wxString Track::m_TrackStartString

Definition at line 134 of file track.h.

◆ m_width

int Track::m_width

Definition at line 137 of file track.h.

◆ SubTracks

std::vector<std::vector<SubTrack> > Track::SubTracks
protected

Definition at line 164 of file track.h.

◆ TrackPoints

std::vector<TrackPoint *> Track::TrackPoints
protected

Definition at line 163 of file track.h.


The documentation for this class was generated from the following files: