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)
 
wxSize GetSize (int orient, wxSize hint)
 
- Public Member Functions inherited from DashboardInstrument
 DashboardInstrument (wxWindow *pparent, wxWindowID id, wxString title, DASH_CAP cap_flag, InstrumentProperties *Properties=NULL)
 
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)
 
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
 
InstrumentPropertiesm_Properties
 

Detailed Description

Definition at line 50 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 44 of file wind_history.cpp.

◆ ~DashboardInstrument_WindDirHistory()

DashboardInstrument_WindDirHistory::~DashboardInstrument_WindDirHistory ( void  )
inline

Definition at line 55 of file wind_history.h.

Member Function Documentation

◆ Draw()

void DashboardInstrument_WindDirHistory::Draw ( wxGCDC *  dc)
protectedvirtual

Implements DashboardInstrument.

Definition at line 231 of file wind_history.cpp.

◆ DrawBackground()

void DashboardInstrument_WindDirHistory::DrawBackground ( wxGCDC *  dc)
protected

Definition at line 493 of file wind_history.cpp.

◆ DrawForeground()

void DashboardInstrument_WindDirHistory::DrawForeground ( wxGCDC *  dc)
protected

Definition at line 579 of file wind_history.cpp.

◆ DrawWindDirScale()

void DashboardInstrument_WindDirHistory::DrawWindDirScale ( wxGCDC *  dc)
protected

Definition at line 289 of file wind_history.cpp.

◆ DrawWindSpeedScale()

void DashboardInstrument_WindDirHistory::DrawWindSpeedScale ( wxGCDC *  dc)
protected

Definition at line 382 of file wind_history.cpp.

◆ GetSize()

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

Implements DashboardInstrument.

Definition at line 91 of file wind_history.cpp.

◆ GetWindDirStr()

wxString DashboardInstrument_WindDirHistory::GetWindDirStr ( wxString  WindDir)
protected

Definition at line 539 of file wind_history.cpp.

◆ ResetData()

void DashboardInstrument_WindDirHistory::ResetData ( )
protected

Definition at line 205 of file wind_history.cpp.

◆ SetData()

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

Implements DashboardInstrument.

Definition at line 109 of file wind_history.cpp.

◆ SetMinMaxWindScale()

void DashboardInstrument_WindDirHistory::SetMinMaxWindScale ( )
protected

Definition at line 244 of file wind_history.cpp.

Member Data Documentation

◆ alpha

double DashboardInstrument_WindDirHistory::alpha
protected

Definition at line 66 of file wind_history.h.

◆ degh

int DashboardInstrument_WindDirHistory::degh
protected

Definition at line 87 of file wind_history.h.

◆ degw

int DashboardInstrument_WindDirHistory::degw
protected

Definition at line 87 of file wind_history.h.

◆ m_ArrayRecTime

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

Definition at line 71 of file wind_history.h.

◆ m_ArrayWindDirHistory

double DashboardInstrument_WindDirHistory::m_ArrayWindDirHistory[WIND_RECORD_COUNT]
protected

Definition at line 67 of file wind_history.h.

◆ m_ArrayWindSpdHistory

double DashboardInstrument_WindDirHistory::m_ArrayWindSpdHistory[WIND_RECORD_COUNT]
protected

Definition at line 68 of file wind_history.h.

◆ m_avgDir

double DashboardInstrument_WindDirHistory::m_avgDir
protected

Definition at line 95 of file wind_history.h.

◆ m_avgSpd

double DashboardInstrument_WindDirHistory::m_avgSpd
protected

Definition at line 95 of file wind_history.h.

◆ m_cntDir

double DashboardInstrument_WindDirHistory::m_cntDir
protected

Definition at line 95 of file wind_history.h.

◆ m_cntSpd

double DashboardInstrument_WindDirHistory::m_cntSpd
protected

Definition at line 95 of file wind_history.h.

◆ m_currSec

int DashboardInstrument_WindDirHistory::m_currSec
protected

Definition at line 94 of file wind_history.h.

◆ m_DirCntperSec

int DashboardInstrument_WindDirHistory::m_DirCntperSec
protected

Definition at line 94 of file wind_history.h.

◆ m_DrawAreaRect

wxRect DashboardInstrument_WindDirHistory::m_DrawAreaRect
protected

Definition at line 90 of file wind_history.h.

◆ m_DrawingHeight

int DashboardInstrument_WindDirHistory::m_DrawingHeight
protected

Definition at line 91 of file wind_history.h.

◆ m_DrawingWidth

int DashboardInstrument_WindDirHistory::m_DrawingWidth
protected

Definition at line 91 of file wind_history.h.

◆ m_ExpSmoothArrayWindDir

double DashboardInstrument_WindDirHistory::m_ExpSmoothArrayWindDir[WIND_RECORD_COUNT]
protected

Definition at line 70 of file wind_history.h.

◆ m_ExpSmoothArrayWindSpd

double DashboardInstrument_WindDirHistory::m_ExpSmoothArrayWindSpd[WIND_RECORD_COUNT]
protected

Definition at line 69 of file wind_history.h.

◆ m_height

int DashboardInstrument_WindDirHistory::m_height
protected

Definition at line 92 of file wind_history.h.

◆ m_IsRunning

bool DashboardInstrument_WindDirHistory::m_IsRunning
protected

Definition at line 83 of file wind_history.h.

◆ m_lastSec

int DashboardInstrument_WindDirHistory::m_lastSec
protected

Definition at line 94 of file wind_history.h.

◆ m_LeftLegend

int DashboardInstrument_WindDirHistory::m_LeftLegend
protected

Definition at line 93 of file wind_history.h.

◆ m_MaxWindDir

double DashboardInstrument_WindDirHistory::m_MaxWindDir
protected

Definition at line 73 of file wind_history.h.

◆ m_MaxWindSpd

double DashboardInstrument_WindDirHistory::m_MaxWindSpd
protected

Definition at line 76 of file wind_history.h.

◆ m_MaxWindSpdScale

double DashboardInstrument_WindDirHistory::m_MaxWindSpdScale
protected

Definition at line 80 of file wind_history.h.

◆ m_MinWindDir

double DashboardInstrument_WindDirHistory::m_MinWindDir
protected

Definition at line 74 of file wind_history.h.

◆ m_oldDirVal

double DashboardInstrument_WindDirHistory::m_oldDirVal
protected

Definition at line 82 of file wind_history.h.

◆ m_ratioW

double DashboardInstrument_WindDirHistory::m_ratioW
protected

Definition at line 81 of file wind_history.h.

◆ m_RightLegend

int DashboardInstrument_WindDirHistory::m_RightLegend
protected

Definition at line 93 of file wind_history.h.

◆ m_SampleCount

int DashboardInstrument_WindDirHistory::m_SampleCount
protected

Definition at line 84 of file wind_history.h.

◆ m_SetNewData

int DashboardInstrument_WindDirHistory::m_SetNewData
protected

Definition at line 86 of file wind_history.h.

◆ m_SpdCntperSec

int DashboardInstrument_WindDirHistory::m_SpdCntperSec
protected

Definition at line 94 of file wind_history.h.

◆ m_TopLineHeight

int DashboardInstrument_WindDirHistory::m_TopLineHeight
protected

Definition at line 91 of file wind_history.h.

◆ m_TotalMaxWindSpd

double DashboardInstrument_WindDirHistory::m_TotalMaxWindSpd
protected

Definition at line 77 of file wind_history.h.

◆ m_width

int DashboardInstrument_WindDirHistory::m_width
protected

Definition at line 92 of file wind_history.h.

◆ m_WindDir

double DashboardInstrument_WindDirHistory::m_WindDir
protected

Definition at line 78 of file wind_history.h.

◆ m_WindDirRange

double DashboardInstrument_WindDirHistory::m_WindDirRange
protected

Definition at line 75 of file wind_history.h.

◆ m_WindowRect

wxRect DashboardInstrument_WindDirHistory::m_WindowRect
protected

Definition at line 89 of file wind_history.h.

◆ m_WindSpd

double DashboardInstrument_WindDirHistory::m_WindSpd
protected

Definition at line 79 of file wind_history.h.

◆ m_WindSpeedUnit

wxString DashboardInstrument_WindDirHistory::m_WindSpeedUnit
protected

Definition at line 85 of file wind_history.h.

◆ speedw

int DashboardInstrument_WindDirHistory::speedw
protected

Definition at line 87 of file wind_history.h.


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