|
OpenCPN Partial API docs
|
Manages GRIB file request configuration and downloads. More...
#include <GribRequestDialog.h>
Public Member Functions | |
| GribRequestSetting (GRIBUICtrlBar &parent) | |
| void | OnClose (wxCloseEvent &event) override |
| void | SetVpSize (PlugIn_ViewPort *vp) |
| void | OnVpUnderMouseChange (PlugIn_ViewPort *vp) |
| Callback invoked when the view port under mouse has changed. | |
| void | OnVpWithFocusChange (PlugIn_ViewPort *vp) |
| Callback invoked when the focused view port has changed, such as in multi-chart mode when user switches viewport focus. | |
| bool | MouseEventHook (wxMouseEvent &event) |
| Intercepts mouse events to handle GRIB area selection. | |
| bool | RenderZoneOverlay (wxDC &dc) |
| Renders the GRIB area selection overlay using standard device context. | |
| bool | RenderGlZoneOverlay () |
| Renders the GRIB area selection overlay using OpenGL. | |
| bool | DoRenderZoneOverlay () |
| Draws the GRIB area selection overlay on the chart. | |
| void | SetRequestDialogSize () |
| void | StopGraphicalZoneSelection () |
| void | UpdateAreaSelectionState () |
| double | GetMinLat () const |
| Get the minimum latitude of the bounding box for the download request. | |
| double | GetMaxLat () const |
| Get the maximum latitude of the bounding box for the download request. | |
| double | GetMinLon () const |
| Get the minimum longitude of the bounding box for the download request. | |
| double | GetMaxLon () const |
| Get the maximum longitude of the bounding box for the download request. | |
| int | GetBoundingBoxCanvasIndex () const |
| void | Save () |
Public Member Functions inherited from GribRequestSettingBase | |
| GribRequestSettingBase (GRIBUICtrlBarBase *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Get forecast..."), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1, -1), long style=wxDEFAULT_DIALOG_STYLE) | |
Public Attributes | |
| wxString | m_RequestConfigBase |
| wxString | m_MailToAddresses |
| ZoneSelectionRenderState | m_RenderSelectionZoneState |
| Current state of the bounding box overlay rendering. | |
| wxPoint | m_StartPoint |
| Starting point of the bounding box in physical pixels. | |
| double | m_StartLat |
| The latitude at the starting point of the bounding box. | |
| double | m_StartLon |
| The longitude at the starting point of the bounding box. | |
| PlugIn_ViewPort * | m_VpFocus |
| The viewport currently in focus. | |
| PlugIn_ViewPort * | m_VpMouse |
| The viewport under the mouse. | |
| double | m_Lat |
| The latitude at the mouse cursor while drawing a bounding box. | |
| double | m_Lon |
| The longitude at the mouse cursor while drawing a bounding box. | |
Public Attributes inherited from GribRequestSettingBase | |
| wxScrolledWindow * | m_sScrolledDialog |
Additional Inherited Members | |
Protected Attributes inherited from GribRequestSettingBase | |
| wxNotebook * | m_notebookGetGrib |
| wxPanel * | m_panelWorld |
| wxHtmlWindow * | m_htmlWinWorld |
| wxStaticText * | m_staticTextInfo |
| wxStaticText * | m_stForecastLength |
| wxChoice * | m_chForecastLength |
| wxStaticText * | m_stECMWFResolution |
| wxChoice * | m_chECMWFResolution |
| wxButton * | m_btnDownloadWorld |
| wxPanel * | m_panelLocalModels |
| wxTreeCtrl * | m_SourcesTreeCtrl1 |
| wxStaticText * | m_stLocalDownloadInfo |
| wxHtmlWindow * | m_htmlInfoWin |
| wxButton * | m_buttonUpdateCatalog |
| wxButton * | m_btnDownloadLocal |
| wxPanel * | m_panelEmail |
| wxFlexGridSizer * | m_fgScrollSizer |
| wxFlexGridSizer * | m_pSenderSizer |
| wxTextCtrl * | m_pSenderAddress |
| wxChoice * | m_pMailTo |
| wxChoice * | m_pModel |
| wxCheckBox * | m_cMovingGribEnabled |
| wxFlexGridSizer * | m_fgMovingParams |
| wxSpinCtrl * | m_sMovingSpeed |
| wxSpinCtrl * | m_sMovingCourse |
| wxStaticText * | m_sCourseUnit |
| wxFlexGridSizer * | m_fgLog |
| wxTextCtrl * | m_pLogin |
| wxTextCtrl * | m_pCode |
| wxChoice * | m_pResolution |
| wxStaticText * | m_tResUnit |
| wxChoice * | m_pInterval |
| wxChoice * | m_pTimeRange |
| wxStaticText * | m_staticText21 |
| wxRadioButton * | m_rbCurrentView |
| Radio button selected to indicate the download area is based on the visible area of the chart in the canvas which is currently in focus. | |
| wxRadioButton * | m_rbManualSelect |
| Radio button selected to indicate the download area is based on the area selected by the user. | |
| wxBitmapToggleButton * | m_bpManualSelection |
| wxFlexGridSizer * | fgZoneCoordinatesSizer |
| wxCheckBox * | m_cUseSavedZone |
| wxSpinCtrl * | m_spMaxLat |
| A spinner for the max latitude of the bounding box for downloads. | |
| wxStaticText * | m_stMaxLatNS |
| wxStaticText * | m_staticText36 |
| wxSpinCtrl * | m_spMaxLon |
| A spinner for the max longitude of the bounding box for downloads. | |
| wxStaticText * | m_stMaxLonEW |
| wxSpinCtrl * | m_spMinLat |
| A spinner for the min latitude of the bounding box for downloads. | |
| wxStaticText * | m_stMinLatNS |
| wxSpinCtrl * | m_spMinLon |
| A spinner for the min longitude of the bounding box for downloads. | |
| wxStaticText * | m_stMinLonEW |
| wxCheckBox * | m_pWind |
| wxCheckBox * | m_pPress |
| wxCheckBox * | m_pWindGust |
| wxCheckBox * | m_pRainfall |
| wxCheckBox * | m_pCloudCover |
| wxCheckBox * | m_pAirTemp |
| wxCheckBox * | m_pCAPE |
| wxCheckBox * | m_pReflectivity |
| wxCheckBox * | m_pSeaTemp |
| wxCheckBox * | m_pCurrent |
| wxCheckBox * | m_pWaves |
| wxChoice * | m_pWModel |
| wxCheckBox * | m_pAltitudeData |
| wxFlexGridSizer * | m_fgAltitudeData |
| wxCheckBox * | m_p850hpa |
| wxCheckBox * | m_p700hpa |
| wxCheckBox * | m_p500hpa |
| wxCheckBox * | m_p300hpa |
| wxTextCtrl * | m_MailImage |
| wxFlexGridSizer * | m_fgFixedSizer |
| wxStaticText * | m_tFileSize |
| wxStaticText * | m_tLimit |
| wxButton * | m_rButtonYes |
| Button to Send a download request through e-mail. | |
| wxButton * | m_rButtonApply |
| Button to Save the "download request" configuration. | |
| wxButton * | m_rButtonCancel |
| Button to Cancel a request to download, close the dialog without saving the configuration. | |
| XyGribPanel * | m_xygribPanel |
Manages GRIB file request configuration and downloads.
This class provides:
Definition at line 93 of file GribRequestDialog.h.
| GribRequestSetting::GribRequestSetting | ( | GRIBUICtrlBar & | parent | ) |
Definition at line 64 of file GribRequestDialog.cpp.
| GribRequestSetting::~GribRequestSetting | ( | ) |
Definition at line 152 of file GribRequestDialog.cpp.
| bool GribRequestSetting::DoRenderZoneOverlay | ( | ) |
Draws the GRIB area selection overlay on the chart.
This includes the rectangular selection zone and an information label showing the coordinates and estimated file size. Supports both standard wxDC and OpenGL rendering paths.
Definition at line 1237 of file GribRequestDialog.cpp.
|
inline |
Definition at line 195 of file GribRequestDialog.h.
| double GribRequestSetting::GetMaxLat | ( | ) | const |
Get the maximum latitude of the bounding box for the download request.
The bouding box is defined by the user during manual zone selection or by the visible area of the chart in focus.
Definition at line 2790 of file GribRequestDialog.cpp.
| double GribRequestSetting::GetMaxLon | ( | ) | const |
Get the maximum longitude of the bounding box for the download request.
The bouding box is defined by the user during manual zone selection or by the visible area of the chart in focus.
Definition at line 2804 of file GribRequestDialog.cpp.
| double GribRequestSetting::GetMinLat | ( | ) | const |
Get the minimum latitude of the bounding box for the download request.
The bouding box is defined by the user during manual zone selection or by the visible area of the chart in focus.
Definition at line 2783 of file GribRequestDialog.cpp.
| double GribRequestSetting::GetMinLon | ( | ) | const |
Get the minimum longitude of the bounding box for the download request.
The bouding box is defined by the user during manual zone selection or by the visible area of the chart in focus.
Definition at line 2797 of file GribRequestDialog.cpp.
| bool GribRequestSetting::MouseEventHook | ( | wxMouseEvent & | event | ) |
Intercepts mouse events to handle GRIB area selection.
We only handle mouse events when the Shift key is pressed to avoid conflicting with OpenCPN core chart panning, which uses normal left-click drag. This lets users:
The selection states flow:
| event | The intercepted mouse event. |
Definition at line 417 of file GribRequestDialog.cpp.
|
overridevirtual |
Reimplemented from GribRequestSettingBase.
Definition at line 324 of file GribRequestDialog.cpp.
| void GribRequestSetting::OnVpUnderMouseChange | ( | PlugIn_ViewPort * | vp | ) |
Callback invoked when the view port under mouse has changed.
This is the viewport where the mouse cursor is currently located.
Definition at line 1035 of file GribRequestDialog.cpp.
| void GribRequestSetting::OnVpWithFocusChange | ( | PlugIn_ViewPort * | vp | ) |
Callback invoked when the focused view port has changed, such as in multi-chart mode when user switches viewport focus.
Definition at line 1042 of file GribRequestDialog.cpp.
| bool GribRequestSetting::RenderGlZoneOverlay | ( | ) |
Renders the GRIB area selection overlay using OpenGL.
Called by OpenCPN when in OpenGL mode. Sets up OpenGL context and delegates actual rendering to DoRenderZoneOverlay().
Definition at line 1368 of file GribRequestDialog.cpp.
| bool GribRequestSetting::RenderZoneOverlay | ( | wxDC & | dc | ) |
Renders the GRIB area selection overlay using standard device context.
Called by OpenCPN when in standard graphics mode. Passes the DC to DoRenderZoneOverlay() for actual rendering.
| dc | Device context to draw on |
Definition at line 1374 of file GribRequestDialog.cpp.
|
inline |
Definition at line 197 of file GribRequestDialog.h.
| void GribRequestSetting::SetRequestDialogSize | ( | ) |
Definition at line 349 of file GribRequestDialog.cpp.
| void GribRequestSetting::SetVpSize | ( | PlugIn_ViewPort * | vp | ) |
Definition at line 388 of file GribRequestDialog.cpp.
| void GribRequestSetting::StopGraphicalZoneSelection | ( | ) |
Definition at line 1028 of file GribRequestDialog.cpp.
| void GribRequestSetting::UpdateAreaSelectionState | ( | ) |
Definition at line 1197 of file GribRequestDialog.cpp.
| double GribRequestSetting::m_Lat |
The latitude at the mouse cursor while drawing a bounding box.
Definition at line 232 of file GribRequestDialog.h.
| double GribRequestSetting::m_Lon |
The longitude at the mouse cursor while drawing a bounding box.
Definition at line 234 of file GribRequestDialog.h.
| wxString GribRequestSetting::m_MailToAddresses |
Definition at line 203 of file GribRequestDialog.h.
| ZoneSelectionRenderState GribRequestSetting::m_RenderSelectionZoneState |
Current state of the bounding box overlay rendering.
Controls whether and how the selection zone is displayed on the chart.
Definition at line 209 of file GribRequestDialog.h.
| wxString GribRequestSetting::m_RequestConfigBase |
Definition at line 202 of file GribRequestDialog.h.
| double GribRequestSetting::m_StartLat |
The latitude at the starting point of the bounding box.
Definition at line 218 of file GribRequestDialog.h.
| double GribRequestSetting::m_StartLon |
The longitude at the starting point of the bounding box.
Definition at line 220 of file GribRequestDialog.h.
| wxPoint GribRequestSetting::m_StartPoint |
Starting point of the bounding box in physical pixels.
Set when user begins dragging to select a bounding box. Acts as the anchor point for drawing the bounding box rectangle.
Definition at line 216 of file GribRequestDialog.h.
| PlugIn_ViewPort* GribRequestSetting::m_VpFocus |
The viewport currently in focus.
Definition at line 228 of file GribRequestDialog.h.
| PlugIn_ViewPort* GribRequestSetting::m_VpMouse |
The viewport under the mouse.
Definition at line 230 of file GribRequestDialog.h.