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

Public Member Functions

 DashboardInstrument_FromOwnship (wxWindow *pparent, wxWindowID id, wxString title, InstrumentProperties *Properties, DASH_CAP cap_flag1=OCPN_DBP_STC_PLA, DASH_CAP cap_flag2=OCPN_DBP_STC_PLO, DASH_CAP cap_flag3=OCPN_DBP_STC_LAT, DASH_CAP cap_flag4=OCPN_DBP_STC_LON)
void SetData (DASH_CAP st, double data, wxString unit) override
wxSize GetSize (int orient, wxSize hint) override
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
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

wxString m_data1
wxString m_data2
double c_lat
double c_lon
double s_lat
double s_lon
DASH_CAP m_cap_flag1
DASH_CAP m_cap_flag2
DASH_CAP m_cap_flag3
DASH_CAP m_cap_flag4
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 39 of file from_ownship.h.

Constructor & Destructor Documentation

◆ DashboardInstrument_FromOwnship()

DashboardInstrument_FromOwnship::DashboardInstrument_FromOwnship ( wxWindow * pparent,
wxWindowID id,
wxString title,
InstrumentProperties * Properties,
DASH_CAP cap_flag1 = OCPN_DBP_STC_PLA,
DASH_CAP cap_flag2 = OCPN_DBP_STC_PLO,
DASH_CAP cap_flag3 = OCPN_DBP_STC_LAT,
DASH_CAP cap_flag4 = OCPN_DBP_STC_LON )

Definition at line 34 of file from_ownship.cpp.

Member Function Documentation

◆ Draw()

void DashboardInstrument_FromOwnship::Draw ( wxGCDC * dc)
overrideprotectedvirtual

Implements DashboardInstrument.

Definition at line 54 of file from_ownship.cpp.

◆ GetSize()

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

Implements DashboardInstrument.

Definition at line 103 of file from_ownship.cpp.

◆ SetData()

void DashboardInstrument_FromOwnship::SetData ( DASH_CAP st,
double data,
wxString unit )
overridevirtual

Implements DashboardInstrument.

Definition at line 72 of file from_ownship.cpp.

Member Data Documentation

◆ c_lat

double DashboardInstrument_FromOwnship::c_lat
protected

Definition at line 56 of file from_ownship.h.

◆ c_lon

double DashboardInstrument_FromOwnship::c_lon
protected

Definition at line 57 of file from_ownship.h.

◆ m_cap_flag1

DASH_CAP DashboardInstrument_FromOwnship::m_cap_flag1
protected

Definition at line 60 of file from_ownship.h.

◆ m_cap_flag2

DASH_CAP DashboardInstrument_FromOwnship::m_cap_flag2
protected

Definition at line 61 of file from_ownship.h.

◆ m_cap_flag3

DASH_CAP DashboardInstrument_FromOwnship::m_cap_flag3
protected

Definition at line 62 of file from_ownship.h.

◆ m_cap_flag4

DASH_CAP DashboardInstrument_FromOwnship::m_cap_flag4
protected

Definition at line 63 of file from_ownship.h.

◆ m_data1

wxString DashboardInstrument_FromOwnship::m_data1
protected

Definition at line 54 of file from_ownship.h.

◆ m_data2

wxString DashboardInstrument_FromOwnship::m_data2
protected

Definition at line 55 of file from_ownship.h.

◆ s_lat

double DashboardInstrument_FromOwnship::s_lat
protected

Definition at line 58 of file from_ownship.h.

◆ s_lon

double DashboardInstrument_FromOwnship::s_lon
protected

Definition at line 59 of file from_ownship.h.


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