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

Public Member Functions

 MagneticPlotMap (MagneticPlotType type, MAGtype_MagneticModel *&mm, MAGtype_MagneticModel *&tmm, MAGtype_Ellipsoid *ellip)
 
void ConfigureAccuracy (int stepsize, int poleaccuracy)
 
double CalcParameter (double lat, double lon)
 
void BuildParamCache (ParamCache &cache, double lat)
 
double CachedCalcParameter (double lat, double lon)
 
bool Interpolate (double x1, double x2, double y1, double y2, bool lat, double lonval, double &rx, double &ry)
 
void PlotRegion (std::list< PlotLineSeg * > &region, double lat1, double lon1, double lat2, double lon2)
 
bool Recompute (wxDateTime date)
 
void Plot (pi_ocpnDC *dc, PlugIn_ViewPort *vp, wxColour color)
 
void ClearMap ()
 
void DrawContour (pi_ocpnDC *dc, PlugIn_ViewPort &VP, double contour, double lat, double lon)
 

Public Attributes

MagneticPlotType m_type
 
bool m_bEnabled
 
double m_Spacing
 
double m_Step
 
double m_PoleAccuracy
 
ParamCache m_Cache [2]
 
MAGtype_MagneticModel *& MagneticModel
 
MAGtype_MagneticModel *& TimedMagneticModel
 
MAGtype_EllipsoidEllip
 
MAGtype_Date UserDate
 
std::list< PlotLineSeg * > m_map [LATITUDE_ZONES][LONGITUDE_ZONES]
 
TexFont m_TexFont
 
int lastx
 
int lasty
 

Detailed Description

Definition at line 74 of file MagneticPlotMap.h.

Constructor & Destructor Documentation

◆ MagneticPlotMap()

MagneticPlotMap::MagneticPlotMap ( MagneticPlotType  type,
MAGtype_MagneticModel *&  mm,
MAGtype_MagneticModel *&  tmm,
MAGtype_Ellipsoid ellip 
)
inline

Definition at line 76 of file MagneticPlotMap.h.

◆ ~MagneticPlotMap()

MagneticPlotMap::~MagneticPlotMap ( )
inline

Definition at line 94 of file MagneticPlotMap.h.

Member Function Documentation

◆ BuildParamCache()

void MagneticPlotMap::BuildParamCache ( ParamCache cache,
double  lat 
)

Definition at line 168 of file MagneticPlotMap.cpp.

◆ CachedCalcParameter()

double MagneticPlotMap::CachedCalcParameter ( double  lat,
double  lon 
)

Definition at line 178 of file MagneticPlotMap.cpp.

◆ CalcParameter()

double MagneticPlotMap::CalcParameter ( double  lat,
double  lon 
)

Definition at line 130 of file MagneticPlotMap.cpp.

◆ ClearMap()

void MagneticPlotMap::ClearMap ( )

Definition at line 457 of file MagneticPlotMap.cpp.

◆ ConfigureAccuracy()

void MagneticPlotMap::ConfigureAccuracy ( int  stepsize,
int  poleaccuracy 
)

Definition at line 80 of file MagneticPlotMap.cpp.

◆ DrawContour()

void MagneticPlotMap::DrawContour ( pi_ocpnDC dc,
PlugIn_ViewPort VP,
double  contour,
double  lat,
double  lon 
)

Definition at line 464 of file MagneticPlotMap.cpp.

◆ Interpolate()

bool MagneticPlotMap::Interpolate ( double  x1,
double  x2,
double  y1,
double  y2,
bool  lat,
double  lonval,
double &  rx,
double &  ry 
)

Definition at line 191 of file MagneticPlotMap.cpp.

◆ Plot()

void MagneticPlotMap::Plot ( pi_ocpnDC dc,
PlugIn_ViewPort vp,
wxColour  color 
)

Definition at line 505 of file MagneticPlotMap.cpp.

◆ PlotRegion()

void MagneticPlotMap::PlotRegion ( std::list< PlotLineSeg * > &  region,
double  lat1,
double  lon1,
double  lat2,
double  lon2 
)

Definition at line 302 of file MagneticPlotMap.cpp.

◆ Recompute()

bool MagneticPlotMap::Recompute ( wxDateTime  date)

Definition at line 381 of file MagneticPlotMap.cpp.

Member Data Documentation

◆ Ellip

MAGtype_Ellipsoid* MagneticPlotMap::Ellip

Definition at line 124 of file MagneticPlotMap.h.

◆ lastx

int MagneticPlotMap::lastx

Definition at line 131 of file MagneticPlotMap.h.

◆ lasty

int MagneticPlotMap::lasty

Definition at line 131 of file MagneticPlotMap.h.

◆ m_bEnabled

bool MagneticPlotMap::m_bEnabled

Definition at line 112 of file MagneticPlotMap.h.

◆ m_Cache

ParamCache MagneticPlotMap::m_Cache[2]

Definition at line 120 of file MagneticPlotMap.h.

◆ m_map

std::list<PlotLineSeg *> MagneticPlotMap::m_map[LATITUDE_ZONES][LONGITUDE_ZONES]

Definition at line 128 of file MagneticPlotMap.h.

◆ m_PoleAccuracy

double MagneticPlotMap::m_PoleAccuracy

Definition at line 115 of file MagneticPlotMap.h.

◆ m_Spacing

double MagneticPlotMap::m_Spacing

Definition at line 113 of file MagneticPlotMap.h.

◆ m_Step

double MagneticPlotMap::m_Step

Definition at line 114 of file MagneticPlotMap.h.

◆ m_TexFont

TexFont MagneticPlotMap::m_TexFont

Definition at line 130 of file MagneticPlotMap.h.

◆ m_type

MagneticPlotType MagneticPlotMap::m_type

Definition at line 111 of file MagneticPlotMap.h.

◆ MagneticModel

MAGtype_MagneticModel*& MagneticPlotMap::MagneticModel

Definition at line 122 of file MagneticPlotMap.h.

◆ TimedMagneticModel

MAGtype_MagneticModel*& MagneticPlotMap::TimedMagneticModel

Definition at line 123 of file MagneticPlotMap.h.

◆ UserDate

MAGtype_Date MagneticPlotMap::UserDate

Definition at line 125 of file MagneticPlotMap.h.


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