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

Represents a basemap chart based on shapefile data. More...

#include <shapefile_basemap.h>

Public Member Functions

 ShapeBaseChart (const std::string &filename, const size_t &min_scale, const wxColor &color= *wxBLACK)
 
 ShapeBaseChart (const ShapeBaseChart &t)
 
void SetColor (wxColor color)
 
bool LoadSHP ()
 
bool IsUsable ()
 
size_t MinScale ()
 
void RenderViewOnDC (ocpnDC &dc, ViewPort &vp)
 
bool CrossesLand (double &lat1, double &lon1, double &lat2, double &lon2)
 
void CancelLoading ()
 Cancel the chart loading operation.
 

Static Public Member Functions

static const std::string ConstructPath (const std::string &dir, const std::string &quality_suffix)
 

Public Attributes

int _dmod
 

Detailed Description

Represents a basemap chart based on shapefile data.

Handles loading and rendering of shapefile-based basemap charts. Supports different quality levels and provides methods for drawing filled polygons.

Definition at line 103 of file shapefile_basemap.h.

Constructor & Destructor Documentation

◆ ShapeBaseChart() [1/2]

ShapeBaseChart::ShapeBaseChart ( const std::string &  filename,
const size_t &  min_scale,
const wxColor &  color = *wxBLACK 
)
inline

Definition at line 106 of file shapefile_basemap.h.

◆ ShapeBaseChart() [2/2]

ShapeBaseChart::ShapeBaseChart ( const ShapeBaseChart t)
inline

Definition at line 119 of file shapefile_basemap.h.

◆ ~ShapeBaseChart()

ShapeBaseChart::~ShapeBaseChart ( )
inline

Definition at line 129 of file shapefile_basemap.h.

Member Function Documentation

◆ CancelLoading()

void ShapeBaseChart::CancelLoading ( )

Cancel the chart loading operation.

Definition at line 562 of file shapefile_basemap.cpp.

◆ ConstructPath()

static const std::string ShapeBaseChart::ConstructPath ( const std::string &  dir,
const std::string &  quality_suffix 
)
inlinestatic

Definition at line 142 of file shapefile_basemap.h.

◆ CrossesLand()

bool ShapeBaseChart::CrossesLand ( double &  lat1,
double &  lon1,
double &  lat2,
double &  lon2 
)

Definition at line 524 of file shapefile_basemap.cpp.

◆ IsUsable()

bool ShapeBaseChart::IsUsable ( )
inline

Definition at line 139 of file shapefile_basemap.h.

◆ LoadSHP()

bool ShapeBaseChart::LoadSHP ( )

Definition at line 252 of file shapefile_basemap.cpp.

◆ MinScale()

size_t ShapeBaseChart::MinScale ( )
inline

Definition at line 140 of file shapefile_basemap.h.

◆ RenderViewOnDC()

void ShapeBaseChart::RenderViewOnDC ( ocpnDC dc,
ViewPort vp 
)
inline

Definition at line 141 of file shapefile_basemap.h.

◆ SetColor()

void ShapeBaseChart::SetColor ( wxColor  color)
inline

Definition at line 134 of file shapefile_basemap.h.

Member Data Documentation

◆ _dmod

int ShapeBaseChart::_dmod

Definition at line 136 of file shapefile_basemap.h.


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