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

Public Member Functions

 DashboardInstrument_BaroHistory (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 DrawWindSpeedScale (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 alpha
 
double m_ArrayBaroHistory [BARO_RECORD_COUNT]
 
double m_ArrayPressHistory [BARO_RECORD_COUNT]
 
double m_ExpSmoothArrayPressure [BARO_RECORD_COUNT]
 
wxDateTime::Tm m_ArrayRecTime [BARO_RECORD_COUNT]
 
double m_MaxPress
 
double m_MinPress
 
double m_TotalMaxPress
 
double m_TotalMinPress
 
double m_Press
 
double m_MaxPressScale
 
double m_ratioW
 
bool m_IsRunning
 
int m_SampleCount
 
int m_SetNewData
 
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
 
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 baro_history.h.

Constructor & Destructor Documentation

◆ DashboardInstrument_BaroHistory()

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

Definition at line 44 of file baro_history.cpp.

◆ ~DashboardInstrument_BaroHistory()

DashboardInstrument_BaroHistory::~DashboardInstrument_BaroHistory ( void  )
inline

Definition at line 56 of file baro_history.h.

Member Function Documentation

◆ Draw()

void DashboardInstrument_BaroHistory::Draw ( wxGCDC *  dc)
protectedvirtual

Implements DashboardInstrument.

Definition at line 157 of file baro_history.cpp.

◆ DrawBackground()

void DashboardInstrument_BaroHistory::DrawBackground ( wxGCDC *  dc)
protected

Definition at line 265 of file baro_history.cpp.

◆ DrawForeground()

void DashboardInstrument_BaroHistory::DrawForeground ( wxGCDC *  dc)
protected

Definition at line 310 of file baro_history.cpp.

◆ DrawWindSpeedScale()

void DashboardInstrument_BaroHistory::DrawWindSpeedScale ( wxGCDC *  dc)
protected

Definition at line 170 of file baro_history.cpp.

◆ GetSize()

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

Implements DashboardInstrument.

Definition at line 85 of file baro_history.cpp.

◆ SetData()

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

Implements DashboardInstrument.

Definition at line 101 of file baro_history.cpp.

Member Data Documentation

◆ alpha

double DashboardInstrument_BaroHistory::alpha
protected

Definition at line 68 of file baro_history.h.

◆ m_ArrayBaroHistory

double DashboardInstrument_BaroHistory::m_ArrayBaroHistory[BARO_RECORD_COUNT]
protected

Definition at line 69 of file baro_history.h.

◆ m_ArrayPressHistory

double DashboardInstrument_BaroHistory::m_ArrayPressHistory[BARO_RECORD_COUNT]
protected

Definition at line 70 of file baro_history.h.

◆ m_ArrayRecTime

wxDateTime::Tm DashboardInstrument_BaroHistory::m_ArrayRecTime[BARO_RECORD_COUNT]
protected

Definition at line 73 of file baro_history.h.

◆ m_avgDir

double DashboardInstrument_BaroHistory::m_avgDir
protected

Definition at line 92 of file baro_history.h.

◆ m_avgSpd

double DashboardInstrument_BaroHistory::m_avgSpd
protected

Definition at line 92 of file baro_history.h.

◆ m_cntDir

double DashboardInstrument_BaroHistory::m_cntDir
protected

Definition at line 92 of file baro_history.h.

◆ m_cntSpd

double DashboardInstrument_BaroHistory::m_cntSpd
protected

Definition at line 92 of file baro_history.h.

◆ m_currSec

int DashboardInstrument_BaroHistory::m_currSec
protected

Definition at line 91 of file baro_history.h.

◆ m_DrawAreaRect

wxRect DashboardInstrument_BaroHistory::m_DrawAreaRect
protected

Definition at line 87 of file baro_history.h.

◆ m_DrawingHeight

int DashboardInstrument_BaroHistory::m_DrawingHeight
protected

Definition at line 88 of file baro_history.h.

◆ m_DrawingWidth

int DashboardInstrument_BaroHistory::m_DrawingWidth
protected

Definition at line 88 of file baro_history.h.

◆ m_ExpSmoothArrayPressure

double DashboardInstrument_BaroHistory::m_ExpSmoothArrayPressure[BARO_RECORD_COUNT]
protected

Definition at line 71 of file baro_history.h.

◆ m_height

int DashboardInstrument_BaroHistory::m_height
protected

Definition at line 89 of file baro_history.h.

◆ m_IsRunning

bool DashboardInstrument_BaroHistory::m_IsRunning
protected

Definition at line 83 of file baro_history.h.

◆ m_lastSec

int DashboardInstrument_BaroHistory::m_lastSec
protected

Definition at line 91 of file baro_history.h.

◆ m_LeftLegend

int DashboardInstrument_BaroHistory::m_LeftLegend
protected

Definition at line 90 of file baro_history.h.

◆ m_MaxPress

double DashboardInstrument_BaroHistory::m_MaxPress
protected

Definition at line 75 of file baro_history.h.

◆ m_MaxPressScale

double DashboardInstrument_BaroHistory::m_MaxPressScale
protected

Definition at line 80 of file baro_history.h.

◆ m_MinPress

double DashboardInstrument_BaroHistory::m_MinPress
protected

Definition at line 76 of file baro_history.h.

◆ m_Press

double DashboardInstrument_BaroHistory::m_Press
protected

Definition at line 79 of file baro_history.h.

◆ m_ratioW

double DashboardInstrument_BaroHistory::m_ratioW
protected

Definition at line 81 of file baro_history.h.

◆ m_RightLegend

int DashboardInstrument_BaroHistory::m_RightLegend
protected

Definition at line 90 of file baro_history.h.

◆ m_SampleCount

int DashboardInstrument_BaroHistory::m_SampleCount
protected

Definition at line 84 of file baro_history.h.

◆ m_SetNewData

int DashboardInstrument_BaroHistory::m_SetNewData
protected

Definition at line 85 of file baro_history.h.

◆ m_SpdCntperSec

int DashboardInstrument_BaroHistory::m_SpdCntperSec
protected

Definition at line 91 of file baro_history.h.

◆ m_TopLineHeight

int DashboardInstrument_BaroHistory::m_TopLineHeight
protected

Definition at line 88 of file baro_history.h.

◆ m_TotalMaxPress

double DashboardInstrument_BaroHistory::m_TotalMaxPress
protected

Definition at line 77 of file baro_history.h.

◆ m_TotalMinPress

double DashboardInstrument_BaroHistory::m_TotalMinPress
protected

Definition at line 78 of file baro_history.h.

◆ m_width

int DashboardInstrument_BaroHistory::m_width
protected

Definition at line 89 of file baro_history.h.

◆ m_WindowRect

wxRect DashboardInstrument_BaroHistory::m_WindowRect
protected

Definition at line 86 of file baro_history.h.


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