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

Public Member Functions

 ConsoleCanvasFrame (wxWindow *parent)
 
void UpdateRouteData ()
 Updates route-related data displays.
 
void ShowWithFreshFonts (void)
 Recomputes and applies new fonts to console elements.
 
void UpdateFonts (void)
 
void SetColorScheme (ColorScheme cs)
 
void LegRoute ()
 
void OnContextMenu (wxContextMenuEvent &event)
 
void OnContextMenuSelection (wxCommandEvent &event)
 
void RefreshConsoleData (void)
 
void ToggleShowHighway ()
 
void ToggleRouteTotalDisplay ()
 Toggles between route total and current leg display modes.
 

Public Attributes

wxWindow * m_pParent
 
wxStaticText * pThisLegText
 
wxBoxSizer * m_pitemBoxSizerLeg
 
AnnunTextpXTE
 
AnnunTextpBRG
 
AnnunTextpRNG
 
AnnunTextpTTG
 
AnnunTextpVMG
 
CDIpCDI
 
wxFont * pThisLegFont
 
bool m_bNeedClear
 
wxBrush * pbackBrush
 

Detailed Description

Definition at line 186 of file concanv.h.

Constructor & Destructor Documentation

◆ ConsoleCanvasFrame()

ConsoleCanvasFrame::ConsoleCanvasFrame ( wxWindow *  parent)

Definition at line 487 of file concanv.cpp.

◆ ~ConsoleCanvasFrame()

ConsoleCanvasFrame::~ConsoleCanvasFrame ( )

Definition at line 555 of file concanv.cpp.

Member Function Documentation

◆ LegRoute()

void ConsoleCanvasFrame::LegRoute ( )

Definition at line 599 of file concanv.cpp.

◆ OnContextMenu()

void ConsoleCanvasFrame::OnContextMenu ( wxContextMenuEvent &  event)

Definition at line 609 of file concanv.cpp.

◆ OnContextMenuSelection()

void ConsoleCanvasFrame::OnContextMenuSelection ( wxCommandEvent &  event)

Definition at line 639 of file concanv.cpp.

◆ RefreshConsoleData()

void ConsoleCanvasFrame::RefreshConsoleData ( void  )

Definition at line 860 of file concanv.cpp.

◆ SetColorScheme()

void ConsoleCanvasFrame::SetColorScheme ( ColorScheme  cs)

Definition at line 557 of file concanv.cpp.

◆ ShowWithFreshFonts()

void ConsoleCanvasFrame::ShowWithFreshFonts ( void  )

Recomputes and applies new fonts to console elements.

Ensures consistent font rendering across different platforms and display configurations. Triggers layout recalculation.

Definition at line 871 of file concanv.cpp.

◆ ToggleRouteTotalDisplay()

void ConsoleCanvasFrame::ToggleRouteTotalDisplay ( )

Toggles between route total and current leg display modes.

Switches speed calculation method and route information presentation between:

  • Current leg metrics
  • Total route statistics

Definition at line 675 of file concanv.cpp.

◆ ToggleShowHighway()

void ConsoleCanvasFrame::ToggleShowHighway ( )

Definition at line 664 of file concanv.cpp.

◆ UpdateFonts()

void ConsoleCanvasFrame::UpdateFonts ( void  )

Definition at line 879 of file concanv.cpp.

◆ UpdateRouteData()

void ConsoleCanvasFrame::UpdateRouteData ( )

Updates route-related data displays.

Calculates and refreshes navigation metrics based on current route state, vessel position, and selected display mode.

Definition at line 692 of file concanv.cpp.

Member Data Documentation

◆ m_bNeedClear

bool ConsoleCanvasFrame::m_bNeedClear

Definition at line 234 of file concanv.h.

◆ m_pitemBoxSizerLeg

wxBoxSizer* ConsoleCanvasFrame::m_pitemBoxSizerLeg

Definition at line 224 of file concanv.h.

◆ m_pParent

wxWindow* ConsoleCanvasFrame::m_pParent

Definition at line 222 of file concanv.h.

◆ pbackBrush

wxBrush* ConsoleCanvasFrame::pbackBrush

Definition at line 235 of file concanv.h.

◆ pBRG

AnnunText* ConsoleCanvasFrame::pBRG

Definition at line 227 of file concanv.h.

◆ pCDI

CDI* ConsoleCanvasFrame::pCDI

Definition at line 231 of file concanv.h.

◆ pRNG

AnnunText* ConsoleCanvasFrame::pRNG

Definition at line 228 of file concanv.h.

◆ pThisLegFont

wxFont* ConsoleCanvasFrame::pThisLegFont

Definition at line 233 of file concanv.h.

◆ pThisLegText

wxStaticText* ConsoleCanvasFrame::pThisLegText

Definition at line 223 of file concanv.h.

◆ pTTG

AnnunText* ConsoleCanvasFrame::pTTG

Definition at line 229 of file concanv.h.

◆ pVMG

AnnunText* ConsoleCanvasFrame::pVMG

Definition at line 230 of file concanv.h.

◆ pXTE

AnnunText* ConsoleCanvasFrame::pXTE

Definition at line 226 of file concanv.h.


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