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)
 
void SetData (DASH_CAP, double, wxString)
 
- 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)
 
- 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_ArrayDepth [DEPTH_RECORD_COUNT]
 
double m_MaxDepth
 
double m_Depth
 
wxString m_DepthUnit
 
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
 
InstrumentPropertiesm_Properties
 

Detailed Description

Definition at line 49 of file depth.h.

Constructor & Destructor Documentation

◆ DashboardInstrument_Depth()

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

Definition at line 41 of file depth.cpp.

◆ ~DashboardInstrument_Depth()

DashboardInstrument_Depth::~DashboardInstrument_Depth ( void  )
inline

Definition at line 54 of file depth.h.

Member Function Documentation

◆ Draw()

void DashboardInstrument_Depth::Draw ( wxGCDC *  dc)
protectedvirtual

Implements DashboardInstrument.

Definition at line 106 of file depth.cpp.

◆ DrawBackground()

void DashboardInstrument_Depth::DrawBackground ( wxGCDC *  dc)
protected

Definition at line 111 of file depth.cpp.

◆ DrawForeground()

void DashboardInstrument_Depth::DrawForeground ( wxGCDC *  dc)
protected

Definition at line 196 of file depth.cpp.

◆ GetSize()

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

Implements DashboardInstrument.

Definition at line 55 of file depth.cpp.

◆ SetData()

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

Implements DashboardInstrument.

Definition at line 87 of file depth.cpp.

Member Data Documentation

◆ m_ArrayDepth

double DashboardInstrument_Depth::m_ArrayDepth[DEPTH_RECORD_COUNT]
protected

Definition at line 63 of file depth.h.

◆ m_Depth

double DashboardInstrument_Depth::m_Depth
protected

Definition at line 65 of file depth.h.

◆ m_DepthUnit

wxString DashboardInstrument_Depth::m_DepthUnit
protected

Definition at line 66 of file depth.h.

◆ m_MaxDepth

double DashboardInstrument_Depth::m_MaxDepth
protected

Definition at line 64 of file depth.h.

◆ m_Temp

wxString DashboardInstrument_Depth::m_Temp
protected

Definition at line 67 of file depth.h.


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