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=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)
 
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_array_baro_history [BARO_RECORD_COUNT]
 
double m_array_press_history [BARO_RECORD_COUNT]
 
double m_exp_smooth_array_pressure [BARO_RECORD_COUNT]
 
wxDateTime::Tm m_array_rec_time [BARO_RECORD_COUNT]
 
double m_max_press
 
double m_min_press
 
double m_total_max_press
 
double m_total_min_press
 
double m_press
 
double m_max_press_scale
 
double m_ratio_w
 
bool m_is_running
 
int m_sample_count
 
int m_set_new_data
 
wxRect m_window_rect
 
wxRect m_draw_area_rect
 
int m_drawing_width
 
int m_top_line_height
 
int m_drawing_height
 
int m_width
 
int m_height
 
int m_left_legend
 
int m_right_legend
 
int m_curr_sec
 
int m_last_sec
 
int m_spd_cntper_sec
 
double m_cnt_spd
 
double m_cnt_dir
 
double m_avg_spd
 
double m_avg_dir
 
- 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 44 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 38 of file baro_history.cpp.

◆ ~DashboardInstrument_BaroHistory()

DashboardInstrument_BaroHistory::~DashboardInstrument_BaroHistory ( void  )
inline

Definition at line 50 of file baro_history.h.

Member Function Documentation

◆ Draw()

void DashboardInstrument_BaroHistory::Draw ( wxGCDC *  dc)
protectedvirtual

Implements DashboardInstrument.

Definition at line 152 of file baro_history.cpp.

◆ DrawBackground()

void DashboardInstrument_BaroHistory::DrawBackground ( wxGCDC *  dc)
protected

Definition at line 262 of file baro_history.cpp.

◆ DrawForeground()

void DashboardInstrument_BaroHistory::DrawForeground ( wxGCDC *  dc)
protected

Definition at line 308 of file baro_history.cpp.

◆ DrawWindSpeedScale()

void DashboardInstrument_BaroHistory::DrawWindSpeedScale ( wxGCDC *  dc)
protected

Definition at line 165 of file baro_history.cpp.

◆ GetSize()

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

Implements DashboardInstrument.

Definition at line 79 of file baro_history.cpp.

◆ SetData()

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

Implements DashboardInstrument.

Definition at line 95 of file baro_history.cpp.

Member Data Documentation

◆ alpha

double DashboardInstrument_BaroHistory::alpha
protected

Definition at line 62 of file baro_history.h.

◆ m_array_baro_history

double DashboardInstrument_BaroHistory::m_array_baro_history[BARO_RECORD_COUNT]
protected

Definition at line 63 of file baro_history.h.

◆ m_array_press_history

double DashboardInstrument_BaroHistory::m_array_press_history[BARO_RECORD_COUNT]
protected

Definition at line 64 of file baro_history.h.

◆ m_array_rec_time

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

Definition at line 67 of file baro_history.h.

◆ m_avg_dir

double DashboardInstrument_BaroHistory::m_avg_dir
protected

Definition at line 86 of file baro_history.h.

◆ m_avg_spd

double DashboardInstrument_BaroHistory::m_avg_spd
protected

Definition at line 86 of file baro_history.h.

◆ m_cnt_dir

double DashboardInstrument_BaroHistory::m_cnt_dir
protected

Definition at line 86 of file baro_history.h.

◆ m_cnt_spd

double DashboardInstrument_BaroHistory::m_cnt_spd
protected

Definition at line 86 of file baro_history.h.

◆ m_curr_sec

int DashboardInstrument_BaroHistory::m_curr_sec
protected

Definition at line 85 of file baro_history.h.

◆ m_draw_area_rect

wxRect DashboardInstrument_BaroHistory::m_draw_area_rect
protected

Definition at line 81 of file baro_history.h.

◆ m_drawing_height

int DashboardInstrument_BaroHistory::m_drawing_height
protected

Definition at line 82 of file baro_history.h.

◆ m_drawing_width

int DashboardInstrument_BaroHistory::m_drawing_width
protected

Definition at line 82 of file baro_history.h.

◆ m_exp_smooth_array_pressure

double DashboardInstrument_BaroHistory::m_exp_smooth_array_pressure[BARO_RECORD_COUNT]
protected

Definition at line 65 of file baro_history.h.

◆ m_height

int DashboardInstrument_BaroHistory::m_height
protected

Definition at line 83 of file baro_history.h.

◆ m_is_running

bool DashboardInstrument_BaroHistory::m_is_running
protected

Definition at line 77 of file baro_history.h.

◆ m_last_sec

int DashboardInstrument_BaroHistory::m_last_sec
protected

Definition at line 85 of file baro_history.h.

◆ m_left_legend

int DashboardInstrument_BaroHistory::m_left_legend
protected

Definition at line 84 of file baro_history.h.

◆ m_max_press

double DashboardInstrument_BaroHistory::m_max_press
protected

Definition at line 69 of file baro_history.h.

◆ m_max_press_scale

double DashboardInstrument_BaroHistory::m_max_press_scale
protected

Definition at line 74 of file baro_history.h.

◆ m_min_press

double DashboardInstrument_BaroHistory::m_min_press
protected

Definition at line 70 of file baro_history.h.

◆ m_press

double DashboardInstrument_BaroHistory::m_press
protected

Definition at line 73 of file baro_history.h.

◆ m_ratio_w

double DashboardInstrument_BaroHistory::m_ratio_w
protected

Definition at line 75 of file baro_history.h.

◆ m_right_legend

int DashboardInstrument_BaroHistory::m_right_legend
protected

Definition at line 84 of file baro_history.h.

◆ m_sample_count

int DashboardInstrument_BaroHistory::m_sample_count
protected

Definition at line 78 of file baro_history.h.

◆ m_set_new_data

int DashboardInstrument_BaroHistory::m_set_new_data
protected

Definition at line 79 of file baro_history.h.

◆ m_spd_cntper_sec

int DashboardInstrument_BaroHistory::m_spd_cntper_sec
protected

Definition at line 85 of file baro_history.h.

◆ m_top_line_height

int DashboardInstrument_BaroHistory::m_top_line_height
protected

Definition at line 82 of file baro_history.h.

◆ m_total_max_press

double DashboardInstrument_BaroHistory::m_total_max_press
protected

Definition at line 71 of file baro_history.h.

◆ m_total_min_press

double DashboardInstrument_BaroHistory::m_total_min_press
protected

Definition at line 72 of file baro_history.h.

◆ m_width

int DashboardInstrument_BaroHistory::m_width
protected

Definition at line 83 of file baro_history.h.

◆ m_window_rect

wxRect DashboardInstrument_BaroHistory::m_window_rect
protected

Definition at line 80 of file baro_history.h.


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