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

Public Member Functions

 DashboardInstrument_WindDirHistory (wxWindow *parent, wxWindowID id, wxString title, InstrumentProperties *Properties)
void SetData (DASH_CAP, double, wxString) 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
void DrawBackground (wxGCDC *dc)
void DrawForeground (wxGCDC *dc)
void SetMinMaxWindScale ()
void DrawWindDirScale (wxGCDC *dc)
void DrawWindSpeedScale (wxGCDC *dc)
void ResetData ()
wxString GetWindDirStr (wxString WindDir)
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 alpha
double m_ArrayWindDirHistory [WIND_RECORD_COUNT]
double m_ArrayWindSpdHistory [WIND_RECORD_COUNT]
double m_ExpSmoothArrayWindSpd [WIND_RECORD_COUNT]
double m_ExpSmoothArrayWindDir [WIND_RECORD_COUNT]
wxDateTime::Tm m_ArrayRecTime [WIND_RECORD_COUNT]
double m_MaxWindDir
double m_MinWindDir
double m_WindDirRange
double m_MaxWindSpd
double m_TotalMaxWindSpd
double m_WindDir
double m_WindSpd
double m_MaxWindSpdScale
double m_ratioW
double m_oldDirVal
bool m_IsRunning
int m_SampleCount
wxString m_WindSpeedUnit
int m_SetNewData
int speedw
int degw
int degh
wxRect m_WindowRect
wxRect m_DrawAreaRect
int m_DrawingWidth
int m_TopLineHeight
int m_DrawingHeight
int m_width
int m_height
int m_LeftLegend
int m_RightLegend
int m_currSec
int m_lastSec
int m_SpdCntperSec
int m_DirCntperSec
double m_cntSpd
double m_cntDir
double m_avgSpd
double m_avgDir
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 40 of file wind_history.h.

Constructor & Destructor Documentation

◆ DashboardInstrument_WindDirHistory()

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

Definition at line 37 of file wind_history.cpp.

Member Function Documentation

◆ Draw()

void DashboardInstrument_WindDirHistory::Draw ( wxGCDC * dc)
overrideprotectedvirtual

Implements DashboardInstrument.

Definition at line 225 of file wind_history.cpp.

◆ DrawBackground()

void DashboardInstrument_WindDirHistory::DrawBackground ( wxGCDC * dc)
protected

Definition at line 485 of file wind_history.cpp.

◆ DrawForeground()

void DashboardInstrument_WindDirHistory::DrawForeground ( wxGCDC * dc)
protected

Definition at line 571 of file wind_history.cpp.

◆ DrawWindDirScale()

void DashboardInstrument_WindDirHistory::DrawWindDirScale ( wxGCDC * dc)
protected

Definition at line 283 of file wind_history.cpp.

◆ DrawWindSpeedScale()

void DashboardInstrument_WindDirHistory::DrawWindSpeedScale ( wxGCDC * dc)
protected

Definition at line 374 of file wind_history.cpp.

◆ GetSize()

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

Implements DashboardInstrument.

Definition at line 85 of file wind_history.cpp.

◆ GetWindDirStr()

wxString DashboardInstrument_WindDirHistory::GetWindDirStr ( wxString WindDir)
protected

Definition at line 531 of file wind_history.cpp.

◆ ResetData()

void DashboardInstrument_WindDirHistory::ResetData ( )
protected

Definition at line 199 of file wind_history.cpp.

◆ SetData()

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

Implements DashboardInstrument.

Definition at line 103 of file wind_history.cpp.

◆ SetMinMaxWindScale()

void DashboardInstrument_WindDirHistory::SetMinMaxWindScale ( )
protected

Definition at line 238 of file wind_history.cpp.

Member Data Documentation

◆ alpha

double DashboardInstrument_WindDirHistory::alpha
protected

Definition at line 56 of file wind_history.h.

◆ degh

int DashboardInstrument_WindDirHistory::degh
protected

Definition at line 77 of file wind_history.h.

◆ degw

int DashboardInstrument_WindDirHistory::degw
protected

Definition at line 77 of file wind_history.h.

◆ m_ArrayRecTime

wxDateTime::Tm DashboardInstrument_WindDirHistory::m_ArrayRecTime[WIND_RECORD_COUNT]
protected

Definition at line 61 of file wind_history.h.

◆ m_ArrayWindDirHistory

double DashboardInstrument_WindDirHistory::m_ArrayWindDirHistory[WIND_RECORD_COUNT]
protected

Definition at line 57 of file wind_history.h.

◆ m_ArrayWindSpdHistory

double DashboardInstrument_WindDirHistory::m_ArrayWindSpdHistory[WIND_RECORD_COUNT]
protected

Definition at line 58 of file wind_history.h.

◆ m_avgDir

double DashboardInstrument_WindDirHistory::m_avgDir
protected

Definition at line 85 of file wind_history.h.

◆ m_avgSpd

double DashboardInstrument_WindDirHistory::m_avgSpd
protected

Definition at line 85 of file wind_history.h.

◆ m_cntDir

double DashboardInstrument_WindDirHistory::m_cntDir
protected

Definition at line 85 of file wind_history.h.

◆ m_cntSpd

double DashboardInstrument_WindDirHistory::m_cntSpd
protected

Definition at line 85 of file wind_history.h.

◆ m_currSec

int DashboardInstrument_WindDirHistory::m_currSec
protected

Definition at line 84 of file wind_history.h.

◆ m_DirCntperSec

int DashboardInstrument_WindDirHistory::m_DirCntperSec
protected

Definition at line 84 of file wind_history.h.

◆ m_DrawAreaRect

wxRect DashboardInstrument_WindDirHistory::m_DrawAreaRect
protected

Definition at line 80 of file wind_history.h.

◆ m_DrawingHeight

int DashboardInstrument_WindDirHistory::m_DrawingHeight
protected

Definition at line 81 of file wind_history.h.

◆ m_DrawingWidth

int DashboardInstrument_WindDirHistory::m_DrawingWidth
protected

Definition at line 81 of file wind_history.h.

◆ m_ExpSmoothArrayWindDir

double DashboardInstrument_WindDirHistory::m_ExpSmoothArrayWindDir[WIND_RECORD_COUNT]
protected

Definition at line 60 of file wind_history.h.

◆ m_ExpSmoothArrayWindSpd

double DashboardInstrument_WindDirHistory::m_ExpSmoothArrayWindSpd[WIND_RECORD_COUNT]
protected

Definition at line 59 of file wind_history.h.

◆ m_height

int DashboardInstrument_WindDirHistory::m_height
protected

Definition at line 82 of file wind_history.h.

◆ m_IsRunning

bool DashboardInstrument_WindDirHistory::m_IsRunning
protected

Definition at line 73 of file wind_history.h.

◆ m_lastSec

int DashboardInstrument_WindDirHistory::m_lastSec
protected

Definition at line 84 of file wind_history.h.

◆ m_LeftLegend

int DashboardInstrument_WindDirHistory::m_LeftLegend
protected

Definition at line 83 of file wind_history.h.

◆ m_MaxWindDir

double DashboardInstrument_WindDirHistory::m_MaxWindDir
protected

Definition at line 63 of file wind_history.h.

◆ m_MaxWindSpd

double DashboardInstrument_WindDirHistory::m_MaxWindSpd
protected

Definition at line 66 of file wind_history.h.

◆ m_MaxWindSpdScale

double DashboardInstrument_WindDirHistory::m_MaxWindSpdScale
protected

Definition at line 70 of file wind_history.h.

◆ m_MinWindDir

double DashboardInstrument_WindDirHistory::m_MinWindDir
protected

Definition at line 64 of file wind_history.h.

◆ m_oldDirVal

double DashboardInstrument_WindDirHistory::m_oldDirVal
protected

Definition at line 72 of file wind_history.h.

◆ m_ratioW

double DashboardInstrument_WindDirHistory::m_ratioW
protected

Definition at line 71 of file wind_history.h.

◆ m_RightLegend

int DashboardInstrument_WindDirHistory::m_RightLegend
protected

Definition at line 83 of file wind_history.h.

◆ m_SampleCount

int DashboardInstrument_WindDirHistory::m_SampleCount
protected

Definition at line 74 of file wind_history.h.

◆ m_SetNewData

int DashboardInstrument_WindDirHistory::m_SetNewData
protected

Definition at line 76 of file wind_history.h.

◆ m_SpdCntperSec

int DashboardInstrument_WindDirHistory::m_SpdCntperSec
protected

Definition at line 84 of file wind_history.h.

◆ m_TopLineHeight

int DashboardInstrument_WindDirHistory::m_TopLineHeight
protected

Definition at line 81 of file wind_history.h.

◆ m_TotalMaxWindSpd

double DashboardInstrument_WindDirHistory::m_TotalMaxWindSpd
protected

Definition at line 67 of file wind_history.h.

◆ m_width

int DashboardInstrument_WindDirHistory::m_width
protected

Definition at line 82 of file wind_history.h.

◆ m_WindDir

double DashboardInstrument_WindDirHistory::m_WindDir
protected

Definition at line 68 of file wind_history.h.

◆ m_WindDirRange

double DashboardInstrument_WindDirHistory::m_WindDirRange
protected

Definition at line 65 of file wind_history.h.

◆ m_WindowRect

wxRect DashboardInstrument_WindDirHistory::m_WindowRect
protected

Definition at line 79 of file wind_history.h.

◆ m_WindSpd

double DashboardInstrument_WindDirHistory::m_WindSpd
protected

Definition at line 69 of file wind_history.h.

◆ m_WindSpeedUnit

wxString DashboardInstrument_WindDirHistory::m_WindSpeedUnit
protected

Definition at line 75 of file wind_history.h.

◆ speedw

int DashboardInstrument_WindDirHistory::speedw
protected

Definition at line 77 of file wind_history.h.


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