OpenCPN Partial API docs
|
Manages a set of ShapeBaseChart objects at different resolutions. More...
#include <shapefile_basemap.h>
Public Member Functions | |
void | SetBasemapLandColor (wxColor color) |
wxColor | GetBasemapLandColor () |
void | RenderViewOnDC (ocpnDC &dc, ViewPort &vp) |
ShapeBaseChart & | SelectBaseMap (const size_t &scale) |
bool | IsUsable () |
Checks if the chart set contains at least one usable chart. | |
bool | CrossesLand (double lat1, double lon1, double lat2, double lon2) |
Determines if a line segment between two geographical points crosses any land mass. | |
void | Cleanup () |
void | Reset () |
Static Public Member Functions | |
static wxPoint2DDouble | GetDoublePixFromLL (ViewPort &vp, double lat, double lon) |
Manages a set of ShapeBaseChart objects at different resolutions.
Maintains multiple basemap charts at varying quality levels and scales. Handles selection of the appropriate chart based on the current view scale.
Definition at line 332 of file shapefile_basemap.h.
ShapeBaseChartSet::ShapeBaseChartSet | ( | ) |
Definition at line 138 of file shapefile_basemap.cpp.
|
inline |
Definition at line 335 of file shapefile_basemap.h.
|
inline |
Definition at line 372 of file shapefile_basemap.h.
|
inline |
Determines if a line segment between two geographical points crosses any land mass.
Uses the highest quality chart available for the test to get the most accurate result.
lat1 | Latitude of the first point of the line segment. |
lon1 | Longitude of the first point of the line segment. |
lat2 | Latitude of the second point of the line segment. |
lon2 | Longitude of the second point of the line segment. |
Definition at line 365 of file shapefile_basemap.h.
wxColor ShapeBaseChartSet::GetBasemapLandColor | ( | ) |
Definition at line 144 of file shapefile_basemap.cpp.
|
static |
Definition at line 146 of file shapefile_basemap.cpp.
|
inline |
Checks if the chart set contains at least one usable chart.
Definition at line 350 of file shapefile_basemap.h.
Definition at line 749 of file shapefile_basemap.cpp.
void ShapeBaseChartSet::Reset | ( | ) |
Definition at line 206 of file shapefile_basemap.cpp.
ShapeBaseChart & ShapeBaseChartSet::SelectBaseMap | ( | const size_t & | scale | ) |
Definition at line 185 of file shapefile_basemap.cpp.
void ShapeBaseChartSet::SetBasemapLandColor | ( | wxColor | color | ) |
Definition at line 141 of file shapefile_basemap.cpp.