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

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)
 
ShapeBaseChartSelectBaseMap (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)
 

Detailed Description

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 329 of file shapefile_basemap.h.

Constructor & Destructor Documentation

◆ ShapeBaseChartSet()

ShapeBaseChartSet::ShapeBaseChartSet ( )

Definition at line 133 of file shapefile_basemap.cpp.

◆ ~ShapeBaseChartSet()

ShapeBaseChartSet::~ShapeBaseChartSet ( )
inline

Definition at line 332 of file shapefile_basemap.h.

Member Function Documentation

◆ Cleanup()

void ShapeBaseChartSet::Cleanup ( )
inline

Definition at line 369 of file shapefile_basemap.h.

◆ CrossesLand()

bool ShapeBaseChartSet::CrossesLand ( double  lat1,
double  lon1,
double  lat2,
double  lon2 
)
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.

Parameters
lat1Latitude of the first point of the line segment.
lon1Longitude of the first point of the line segment.
lat2Latitude of the second point of the line segment.
lon2Longitude of the second point of the line segment.
Returns
true if the line segment crosses land according to the highest quality chart, false if no crossing is detected or if no charts are usable.

Definition at line 362 of file shapefile_basemap.h.

◆ GetBasemapLandColor()

wxColor ShapeBaseChartSet::GetBasemapLandColor ( )

Definition at line 139 of file shapefile_basemap.cpp.

◆ GetDoublePixFromLL()

wxPoint2DDouble ShapeBaseChartSet::GetDoublePixFromLL ( ViewPort vp,
double  lat,
double  lon 
)
static

Definition at line 141 of file shapefile_basemap.cpp.

◆ IsUsable()

bool ShapeBaseChartSet::IsUsable ( )
inline

Checks if the chart set contains at least one usable chart.

Returns
true if the chart set contains at least one chart and the lowest quality chart is usable as determined by ShapeBaseChart::IsUsable().

Definition at line 347 of file shapefile_basemap.h.

◆ RenderViewOnDC()

void ShapeBaseChartSet::RenderViewOnDC ( ocpnDC dc,
ViewPort vp 
)

Definition at line 744 of file shapefile_basemap.cpp.

◆ Reset()

void ShapeBaseChartSet::Reset ( )

Definition at line 201 of file shapefile_basemap.cpp.

◆ SelectBaseMap()

ShapeBaseChart & ShapeBaseChartSet::SelectBaseMap ( const size_t &  scale)

Definition at line 180 of file shapefile_basemap.cpp.

◆ SetBasemapLandColor()

void ShapeBaseChartSet::SetBasemapLandColor ( wxColor  color)

Definition at line 136 of file shapefile_basemap.cpp.


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