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

Public Member Functions

 DashboardInstrument_Depth (wxWindow *parent, wxWindowID id, wxString title, InstrumentProperties *Properties)
wxSize GetSize (int orient, wxSize hint) override
void SetData (DASH_CAP, double, wxString) 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
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

double m_array_depth [DEPTH_RECORD_COUNT]
double m_max_depth
double m_depth
wxString m_depth_unit
wxString m_temp
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 depth.h.

Constructor & Destructor Documentation

◆ DashboardInstrument_Depth()

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

Definition at line 35 of file depth.cpp.

Member Function Documentation

◆ Draw()

void DashboardInstrument_Depth::Draw ( wxGCDC * dc)
overrideprotectedvirtual

Implements DashboardInstrument.

Definition at line 101 of file depth.cpp.

◆ DrawBackground()

void DashboardInstrument_Depth::DrawBackground ( wxGCDC * dc)
protected

Definition at line 106 of file depth.cpp.

◆ DrawForeground()

void DashboardInstrument_Depth::DrawForeground ( wxGCDC * dc)
protected

Definition at line 191 of file depth.cpp.

◆ GetSize()

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

Implements DashboardInstrument.

Definition at line 49 of file depth.cpp.

◆ SetData()

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

Implements DashboardInstrument.

Definition at line 82 of file depth.cpp.

Member Data Documentation

◆ m_array_depth

double DashboardInstrument_Depth::m_array_depth[DEPTH_RECORD_COUNT]
protected

Definition at line 53 of file depth.h.

◆ m_depth

double DashboardInstrument_Depth::m_depth
protected

Definition at line 55 of file depth.h.

◆ m_depth_unit

wxString DashboardInstrument_Depth::m_depth_unit
protected

Definition at line 56 of file depth.h.

◆ m_max_depth

double DashboardInstrument_Depth::m_max_depth
protected

Definition at line 54 of file depth.h.

◆ m_temp

wxString DashboardInstrument_Depth::m_temp
protected

Definition at line 57 of file depth.h.


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