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

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

#include <GribTable.h>

Inheritance diagram for GRIBTable:
GRIBTableBase

Public Member Functions

 GRIBTable (GRIBUICtrlBar &parent)
 
void InitGribTable (int zone, ArrayOfGribRecordSets *rsa)
 Initialize the GRIB data table.
 
void InitGribTable (int zone, 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)
 

Additional Inherited Members

- Public Attributes inherited from GRIBTableBase
CustomGridm_pGribTable
 
wxButton * m_pButtonTableOK
 
int m_pIndex
 
- Protected Member Functions inherited from GRIBTableBase
virtual void OnClick (wxGridEvent &event)
 
virtual void OnRangeClick (wxGridRangeSelectEvent &event)
 
- 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 71 of file GribTable.h.

Constructor & Destructor Documentation

◆ GRIBTable()

GRIBTable::GRIBTable ( GRIBUICtrlBar parent)

Definition at line 41 of file GribTable.cpp.

◆ ~GRIBTable()

GRIBTable::~GRIBTable ( )
inline

Definition at line 75 of file GribTable.h.

Member Function Documentation

◆ CloseDialog()

void GRIBTable::CloseDialog ( )

Definition at line 322 of file GribTable.cpp.

◆ GetScaledBitmap()

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

Definition at line 93 of file GribTable.h.

◆ InitGribTable() [1/2]

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

Initialize the GRIB data table.

Parameters
zoneTime zone for displaying timestamps (0=local, 1=UTC)
rsaArray of GRIB record sets containing the weather data
NowIndexIndex of the current time point to highlight

◆ InitGribTable() [2/2]

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

Definition at line 44 of file GribTable.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 253 of file GribTable.cpp.


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