OpenCPN Partial API docs
Loading...
Searching...
No Matches
wmm_pi Class Reference
Inheritance diagram for wmm_pi:
opencpn_plugin_18 opencpn_plugin

Public Member Functions

 wmm_pi (void *ppimgr)
 
int Init (void)
 
bool DeInit (void)
 
int GetAPIVersionMajor ()
 
int GetAPIVersionMinor ()
 
int GetPlugInVersionMajor ()
 
int GetPlugInVersionMinor ()
 
wxBitmap * GetPlugInBitmap ()
 FIXME static wxBitmap* LoadSVG(const wxString filename, unsigned int width, unsigned int height) { if (!gFrame) return new wxBitmap(width, height); // We are headless.
 
wxString GetCommonName ()
 
wxString GetShortDescription ()
 
wxString GetLongDescription ()
 
void SetCursorLatLon (double lat, double lon)
 
void SetPositionFix (PlugIn_Position_Fix &pfix)
 
void RenderOverlayBoth (pi_ocpnDC *dc, PlugIn_ViewPort *vp)
 
bool RenderOverlay (wxDC &dc, PlugIn_ViewPort *vp)
 
bool RenderGLOverlay (wxGLContext *pcontext, PlugIn_ViewPort *vp)
 
void RecomputePlot ()
 
int GetToolbarToolCount (void)
 
void ShowPreferencesDialog (wxWindow *parent)
 
void ShowPlotSettingsDialog (wxCommandEvent &event)
 
void OnToolbarToolCallback (int id)
 
void SetColorScheme (PI_ColorScheme cs)
 
void SetPluginMessage (wxString &message_id, wxString &message_body)
 
void SetShowPlot (bool showplot)
 
void SetWmmDialogX (int x)
 
void SetWmmDialogY (int x)
 
void OnWmmDialogClose ()
 
void ShowPlotSettings ()
 
- Public Member Functions inherited from opencpn_plugin_18
 opencpn_plugin_18 (void *pmgr)
 
virtual void SetPositionFixEx (PlugIn_Position_Fix_Ex &pfix)
 
virtual bool RenderOverlay (wxMemoryDC *pmdc, PlugIn_ViewPort *vp)
 
- Public Member Functions inherited from opencpn_plugin
 opencpn_plugin (void *pmgr)
 
virtual void SetDefaults (void)
 
virtual int GetToolboxPanelCount (void)
 
virtual void SetupToolboxPanel (int page_sel, wxNotebook *pnotebook)
 
virtual void OnCloseToolboxPanel (int page_sel, int ok_apply_cancel)
 
virtual void SetCurrentViewPort (PlugIn_ViewPort &vp)
 
virtual void SetNMEASentence (wxString &sentence)
 Receive all NMEA 0183 sentences from OpenCPN.
 
virtual void SetAISSentence (wxString &sentence)
 Receive all AIS sentences from OpenCPN.
 
virtual void ProcessParentResize (int x, int y)
 
virtual void OnContextMenuItemCallback (int id)
 
virtual void UpdateAuiStatus (void)
 
virtual wxArrayString GetDynamicChartClassNameArray (void)
 

Public Attributes

MAGtype_MagneticModelMagneticModels [1]
 
MAGtype_MagneticModelMagneticModel
 
MAGtype_MagneticModelTimedMagneticModel
 
MAGtype_Ellipsoid Ellip
 
MAGtype_CoordSpherical CoordSpherical
 
MAGtype_CoordGeodetic CoordGeodetic
 
MAGtype_Date UserDate
 
MAGtype_GeoMagneticElements GeoMagneticElements
 
MAGtype_Geoid Geoid
 
wxString filename
 
wxWindow * m_parent_window
 
WmmUIDialogm_pWmmDialog
 
pi_ocpnDCm_oDC
 

Detailed Description

Definition at line 97 of file wmm_pi.h.

Constructor & Destructor Documentation

◆ wmm_pi()

wmm_pi::wmm_pi ( void *  ppimgr)

Definition at line 114 of file wmm_pi.cpp.

Member Function Documentation

◆ DeInit()

bool wmm_pi::DeInit ( void  )
virtual

Reimplemented from opencpn_plugin.

Definition at line 235 of file wmm_pi.cpp.

◆ GetAPIVersionMajor()

int wmm_pi::GetAPIVersionMajor ( )
virtual

Reimplemented from opencpn_plugin.

Definition at line 269 of file wmm_pi.cpp.

◆ GetAPIVersionMinor()

int wmm_pi::GetAPIVersionMinor ( )
virtual

Reimplemented from opencpn_plugin.

Definition at line 271 of file wmm_pi.cpp.

◆ GetCommonName()

wxString wmm_pi::GetCommonName ( )
virtual

Reimplemented from opencpn_plugin.

Definition at line 279 of file wmm_pi.cpp.

◆ GetLongDescription()

wxString wmm_pi::GetLongDescription ( )
virtual

Reimplemented from opencpn_plugin.

Definition at line 285 of file wmm_pi.cpp.

◆ GetPlugInBitmap()

wxBitmap * wmm_pi::GetPlugInBitmap ( )
virtual

FIXME static wxBitmap* LoadSVG(const wxString filename, unsigned int width, unsigned int height) { if (!gFrame) return new wxBitmap(width, height); // We are headless.

#ifdef ANDROID return loadAndroidSVG(filename, width, height); #elif defined(ocpnUSE_SVG) wxSVGDocument svgDoc; if (svgDoc.Load(filename)) return new wxBitmap(svgDoc.Render(width, height, NULL, true, true)); else return new wxBitmap(width, height); #else return new wxBitmap(width, height); #endif }

wxBitmap* opencpn_plugin::GetPlugInBitmap() { auto bitmap = PluginLoader::getInstance()->GetPluginDefaultIcon(); return const_cast<wxBitmap*>(bitmap); }

Reimplemented from opencpn_plugin.

Definition at line 277 of file wmm_pi.cpp.

◆ GetPlugInVersionMajor()

int wmm_pi::GetPlugInVersionMajor ( )
virtual

Reimplemented from opencpn_plugin.

Definition at line 273 of file wmm_pi.cpp.

◆ GetPlugInVersionMinor()

int wmm_pi::GetPlugInVersionMinor ( )
virtual

Reimplemented from opencpn_plugin.

Definition at line 275 of file wmm_pi.cpp.

◆ GetShortDescription()

wxString wmm_pi::GetShortDescription ( )
virtual

Reimplemented from opencpn_plugin.

Definition at line 281 of file wmm_pi.cpp.

◆ GetToolbarToolCount()

int wmm_pi::GetToolbarToolCount ( void  )
virtual

Reimplemented from opencpn_plugin.

Definition at line 297 of file wmm_pi.cpp.

◆ Init()

int wmm_pi::Init ( void  )
virtual

Reimplemented from opencpn_plugin.

Definition at line 130 of file wmm_pi.cpp.

◆ OnToolbarToolCallback()

void wmm_pi::OnToolbarToolCallback ( int  id)
virtual

Reimplemented from opencpn_plugin.

Definition at line 362 of file wmm_pi.cpp.

◆ RecomputePlot()

void wmm_pi::RecomputePlot ( )

Definition at line 453 of file wmm_pi.cpp.

◆ RenderGLOverlay()

bool wmm_pi::RenderGLOverlay ( wxGLContext *  pcontext,
PlugIn_ViewPort vp 
)
virtual

Reimplemented from opencpn_plugin_18.

Definition at line 414 of file wmm_pi.cpp.

◆ RenderOverlay()

bool wmm_pi::RenderOverlay ( wxDC &  dc,
PlugIn_ViewPort vp 
)
virtual

Reimplemented from opencpn_plugin_18.

Definition at line 401 of file wmm_pi.cpp.

◆ RenderOverlayBoth()

void wmm_pi::RenderOverlayBoth ( pi_ocpnDC dc,
PlugIn_ViewPort vp 
)

Definition at line 393 of file wmm_pi.cpp.

◆ SetColorScheme()

void wmm_pi::SetColorScheme ( PI_ColorScheme  cs)
virtual

Reimplemented from opencpn_plugin.

Definition at line 299 of file wmm_pi.cpp.

◆ SetCursorLatLon()

void wmm_pi::SetCursorLatLon ( double  lat,
double  lon 
)
virtual

Reimplemented from opencpn_plugin.

Definition at line 470 of file wmm_pi.cpp.

◆ SetPluginMessage()

void wmm_pi::SetPluginMessage ( wxString &  message_id,
wxString &  message_body 
)
virtual

Reimplemented from opencpn_plugin_18.

Definition at line 668 of file wmm_pi.cpp.

◆ SetPositionFix()

void wmm_pi::SetPositionFix ( PlugIn_Position_Fix pfix)
virtual

Reimplemented from opencpn_plugin.

Definition at line 527 of file wmm_pi.cpp.

◆ SetShowPlot()

void wmm_pi::SetShowPlot ( bool  showplot)
inline

Definition at line 133 of file wmm_pi.h.

◆ SetWmmDialogX()

void wmm_pi::SetWmmDialogX ( int  x)
inline

Definition at line 136 of file wmm_pi.h.

◆ SetWmmDialogY()

void wmm_pi::SetWmmDialogY ( int  x)
inline

Definition at line 137 of file wmm_pi.h.

◆ ShowPlotSettings()

void wmm_pi::ShowPlotSettings ( )

dialog->m_dpDate->SetValue(m_MapDate);

m_MapDate = dialog->m_dpDate->GetValue();

Definition at line 907 of file wmm_pi.cpp.

◆ ShowPreferencesDialog()

void wmm_pi::ShowPreferencesDialog ( wxWindow *  parent)
virtual

Reimplemented from opencpn_plugin.

Definition at line 877 of file wmm_pi.cpp.

Member Data Documentation

◆ CoordGeodetic

MAGtype_CoordGeodetic wmm_pi::CoordGeodetic

Definition at line 147 of file wmm_pi.h.

◆ CoordSpherical

MAGtype_CoordSpherical wmm_pi::CoordSpherical

Definition at line 146 of file wmm_pi.h.

◆ Ellip

MAGtype_Ellipsoid wmm_pi::Ellip

Definition at line 145 of file wmm_pi.h.

◆ filename

wxString wmm_pi::filename

Definition at line 151 of file wmm_pi.h.

◆ Geoid

MAGtype_Geoid wmm_pi::Geoid

Definition at line 150 of file wmm_pi.h.

◆ GeoMagneticElements

MAGtype_GeoMagneticElements wmm_pi::GeoMagneticElements

Definition at line 149 of file wmm_pi.h.

◆ m_oDC

pi_ocpnDC* wmm_pi::m_oDC

Definition at line 156 of file wmm_pi.h.

◆ m_parent_window

wxWindow* wmm_pi::m_parent_window

Definition at line 153 of file wmm_pi.h.

◆ m_pWmmDialog

WmmUIDialog* wmm_pi::m_pWmmDialog

Definition at line 154 of file wmm_pi.h.

◆ MagneticModel

MAGtype_MagneticModel* wmm_pi::MagneticModel

Definition at line 144 of file wmm_pi.h.

◆ MagneticModels

MAGtype_MagneticModel* wmm_pi::MagneticModels[1]

Definition at line 143 of file wmm_pi.h.

◆ TimedMagneticModel

MAGtype_MagneticModel * wmm_pi::TimedMagneticModel

Definition at line 144 of file wmm_pi.h.

◆ UserDate

MAGtype_Date wmm_pi::UserDate

Definition at line 148 of file wmm_pi.h.


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