OpenCPN Partial API docs
Loading...
Searching...
No Matches
GRIBTable Class Reference

Dialog showing GRIB data in a table format. More...

#include <grib_table.h>

Inheritance diagram for GRIBTable:
GRIBTableBase

Public Member Functions

 GRIBTable (GRIBUICtrlBar &parent)
 
void InitGribTable (ArrayOfGribRecordSets *rsa)
 Initialize the GRIB data table.
 
void InitGribTable (ArrayOfGribRecordSets *rsa, int NowIndex)
 
void SetTableSizePosition (int vpWidth, int vpHeight)
 Set the table size and position relative to viewport.
 
wxBitmap GetScaledBitmap (wxBitmap bmp, wxString svgfile, double scfactor)
 
void CloseDialog ()
 
- Public Member Functions inherited from GRIBTableBase
 GRIBTableBase (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Grib Data Table"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1, -1), long style=wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxRESIZE_BORDER)
 

Protected Member Functions

void OnClose (wxCloseEvent &event) override
 
void OnOKButton (wxCommandEvent &event) override
 
- Protected Member Functions inherited from GRIBTableBase
virtual void OnClick (wxGridEvent &event)
 
virtual void OnRangeClick (wxGridRangeSelectEvent &event)
 

Additional Inherited Members

- Public Attributes inherited from GRIBTableBase
CustomGridm_pGribTable
 
wxButton * m_pButtonTableOK
 
int m_pIndex
 
- Protected Attributes inherited from GRIBTableBase
wxStaticText * m_pPositionText
 
wxStaticText * m_pCursorPosition
 

Detailed Description

Dialog showing GRIB data in a table format.

Displays meteorological data from GRIB files in a grid layout, with columns representing different time points and rows showing various parameters like wind, pressure, waves etc. The data shown corresponds to the current cursor position on the chart.

Definition at line 70 of file grib_table.h.

Constructor & Destructor Documentation

◆ GRIBTable()

GRIBTable::GRIBTable ( GRIBUICtrlBar parent)

Definition at line 42 of file grib_table.cpp.

◆ ~GRIBTable()

GRIBTable::~GRIBTable ( )
inlineoverride

Definition at line 74 of file grib_table.h.

Member Function Documentation

◆ CloseDialog()

void GRIBTable::CloseDialog ( )

Definition at line 321 of file grib_table.cpp.

◆ GetScaledBitmap()

wxBitmap GRIBTable::GetScaledBitmap ( wxBitmap  bmp,
wxString  svgfile,
double  scfactor 
)
inline

Definition at line 91 of file grib_table.h.

◆ InitGribTable() [1/2]

void GRIBTable::InitGribTable ( ArrayOfGribRecordSets *  rsa)

Initialize the GRIB data table.

Parameters
rsaArray of GRIB record sets containing the weather data.
NowIndexIndex of the current time point to highlight.

◆ InitGribTable() [2/2]

void GRIBTable::InitGribTable ( ArrayOfGribRecordSets *  rsa,
int  NowIndex 
)

Definition at line 45 of file grib_table.cpp.

◆ OnClose()

void GRIBTable::OnClose ( wxCloseEvent &  event)
overrideprotectedvirtual

Reimplemented from GRIBTableBase.

Definition at line 311 of file grib_table.cpp.

◆ OnOKButton()

void GRIBTable::OnOKButton ( wxCommandEvent &  event)
overrideprotectedvirtual

Reimplemented from GRIBTableBase.

Definition at line 316 of file grib_table.cpp.

◆ SetTableSizePosition()

void GRIBTable::SetTableSizePosition ( int  vpWidth,
int  vpHeight 
)

Set the table size and position relative to viewport.

Parameters
vpWidthViewport width
vpHeightViewport height

Definition at line 252 of file grib_table.cpp.


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