OpenCPN Partial API docs
Loading...
Searching...
No Matches
DashboardInstrument_GPS Class Reference
Inheritance diagram for DashboardInstrument_GPS:
DashboardInstrument

Public Member Functions

 DashboardInstrument_GPS (wxWindow *parent, wxWindowID id, wxString title, InstrumentProperties *Properties)
wxSize GetSize (int orient, wxSize hint) override
void SetData (DASH_CAP, double, wxString) override
void SetSatInfo (int cnt, int seq, wxString talk, SAT_INFO sats[4])
Public Member Functions inherited from DashboardInstrument
 DashboardInstrument (wxWindow *pparent, wxWindowID id, wxString title, DASH_CAP cap_flag, InstrumentProperties *Properties=nullptr)
CapType GetCapacity ()
void OnEraseBackground (wxEraseEvent &WXUNUSED(evt))
void OnPaint (wxPaintEvent &WXUNUSED(event))
void SetDrawSoloInPane (bool value)
void MouseEvent (wxMouseEvent &event)
void OnLeftUp (wxMouseEvent &event)
void SetCapFlag (DASH_CAP val)
bool HasCapFlag (DASH_CAP val)

Protected Member Functions

void Draw (wxGCDC *dc) override
void DrawFrame (wxGCDC *dc)
void DrawBackground (wxGCDC *dc)
void DrawForeground (wxGCDC *dc)
Protected Member Functions inherited from DashboardInstrument
virtual void InitDataTextHeight (const wxString &sampleText, int &sampleWidth)
virtual void InitTitleSize ()
virtual void InitTitleAndDataPosition (int drawHeight)
virtual int GetFullHeight (int drawHeight)
virtual int GetDataBottom (int clientHeight)
virtual void SetDataFont (wxGCDC *dc)

Protected Attributes

int m_cx
int m_cy
int m_radius
int m_ref_dim
int m_scale_delta
int m_scale_base
int m_sat_count
int m_max_sat_count
wxString talker_id
SAT_INFO m_sat_info [12]
bool b_shift
wxDateTime m_last_shift
wxDateTime m_gtime [GNSS_SYSTEM]
int m_master
wxString m_talker
Protected Attributes inherited from DashboardInstrument
CapType m_cap_flag
int m_InstrumentSpacing
int m_DataTextHeight
int m_DataMargin
int m_TitleWidth
int m_TitleHeight
int m_DataTop
int m_TitleTop
bool m_DataRightAlign
bool m_TitleRightAlign
wxString m_title

Additional Inherited Members

Public Attributes inherited from DashboardInstrument
int instrumentTypeId
InstrumentProperties * m_Properties

Detailed Description

Definition at line 42 of file gps.h.

Constructor & Destructor Documentation

◆ DashboardInstrument_GPS()

DashboardInstrument_GPS::DashboardInstrument_GPS ( wxWindow * parent,
wxWindowID id,
wxString title,
InstrumentProperties * Properties )

Definition at line 36 of file gps.cpp.

Member Function Documentation

◆ Draw()

void DashboardInstrument_GPS::Draw ( wxGCDC * dc)
overrideprotectedvirtual

Implements DashboardInstrument.

Definition at line 203 of file gps.cpp.

◆ DrawBackground()

void DashboardInstrument_GPS::DrawBackground ( wxGCDC * dc)
protected

Definition at line 306 of file gps.cpp.

◆ DrawForeground()

void DashboardInstrument_GPS::DrawForeground ( wxGCDC * dc)
protected

Definition at line 358 of file gps.cpp.

◆ DrawFrame()

void DashboardInstrument_GPS::DrawFrame ( wxGCDC * dc)
protected

Definition at line 209 of file gps.cpp.

◆ GetSize()

wxSize DashboardInstrument_GPS::GetSize ( int orient,
wxSize hint )
overridevirtual

Implements DashboardInstrument.

Definition at line 69 of file gps.cpp.

◆ SetData()

void DashboardInstrument_GPS::SetData ( DASH_CAP ,
double ,
wxString  )
inlineoverridevirtual

Implements DashboardInstrument.

Definition at line 50 of file gps.h.

◆ SetSatInfo()

void DashboardInstrument_GPS::SetSatInfo ( int cnt,
int seq,
wxString talk,
SAT_INFO sats[4] )

Definition at line 89 of file gps.cpp.

Member Data Documentation

◆ b_shift

bool DashboardInstrument_GPS::b_shift
protected

Definition at line 61 of file gps.h.

◆ m_cx

int DashboardInstrument_GPS::m_cx
protected

Definition at line 56 of file gps.h.

◆ m_cy

int DashboardInstrument_GPS::m_cy
protected

Definition at line 56 of file gps.h.

◆ m_gtime

wxDateTime DashboardInstrument_GPS::m_gtime[GNSS_SYSTEM]
protected

Definition at line 63 of file gps.h.

◆ m_last_shift

wxDateTime DashboardInstrument_GPS::m_last_shift
protected

Definition at line 62 of file gps.h.

◆ m_master

int DashboardInstrument_GPS::m_master
protected

Definition at line 64 of file gps.h.

◆ m_max_sat_count

int DashboardInstrument_GPS::m_max_sat_count
protected

Definition at line 58 of file gps.h.

◆ m_radius

int DashboardInstrument_GPS::m_radius
protected

Definition at line 56 of file gps.h.

◆ m_ref_dim

int DashboardInstrument_GPS::m_ref_dim
protected

Definition at line 56 of file gps.h.

◆ m_sat_count

int DashboardInstrument_GPS::m_sat_count
protected

Definition at line 57 of file gps.h.

◆ m_sat_info

SAT_INFO DashboardInstrument_GPS::m_sat_info[12]
protected

Definition at line 60 of file gps.h.

◆ m_scale_base

int DashboardInstrument_GPS::m_scale_base
protected

Definition at line 56 of file gps.h.

◆ m_scale_delta

int DashboardInstrument_GPS::m_scale_delta
protected

Definition at line 56 of file gps.h.

◆ m_talker

wxString DashboardInstrument_GPS::m_talker
protected

Definition at line 65 of file gps.h.

◆ talker_id

wxString DashboardInstrument_GPS::talker_id
protected

Definition at line 59 of file gps.h.


The documentation for this class was generated from the following files:
  • /home/runner/work/main/main/opencpn/plugins/dashboard_pi/src/gps.h
  • /home/runner/work/main/main/opencpn/plugins/dashboard_pi/src/gps.cpp