|
OpenCPN Partial API docs
|
Manages a database of charts, including reading, writing, and querying chart information. More...
#include <chartdbs.h>
Public Member Functions | |
| void | OnEvtThread (OCPN_ChartTableEntryThreadEvent &event) |
| void | OnAnyEvent (wxEvent &event) |
| bool | Create (ArrayOfCDI &dir_array, wxGenericProgressDialog *pprog) |
| Creates a new chart database from a list of directories. | |
| bool | Update (ArrayOfCDI &dir_array, bool bForce, wxGenericProgressDialog *pprog) |
| Updates the chart database. | |
| void | FinalizeChartUpdate () |
| bool | Read (const wxString &filePath) |
| bool | Write (const wxString &filePath) |
| bool | AddSingleChart (wxString &fullpath, bool b_force_full_search=true) |
| bool | RemoveSingleChart (wxString &ChartFullPath) |
| const wxString & | GetDBFileName () const |
| ArrayOfCDI & | GetChartDirArray () |
| wxArrayString & | GetChartDirArrayString () |
| void | SetChartDirArray (ArrayOfCDI array) |
| bool | CompareChartDirArray (ArrayOfCDI &test_array) |
| wxString | GetMagicNumberCached (wxString dir) |
| void | UpdateChartClassDescriptorArray (void) |
| bool | UpdateChartDatabaseInplace (ArrayOfCDI &DirArray, bool b_force, bool b_prog) |
| std::vector< std::shared_ptr< ChartTableEntry > > & | GetChartTable () |
| int | GetChartTableEntries () const |
| ChartTableEntry & | GetChartTableEntry (int index) const |
| bool | IsValid () const |
| int | DisableChart (wxString &PathToDisable) |
| bool | GetCentroidOfLargestScaleChart (double *clat, double *clon, ChartFamilyEnum family) |
| int | GetDBChartType (int dbIndex) |
| int | GetDBChartFamily (int dbIndex) |
| float | GetDBChartSkew (int dbIndex) |
| int | GetDBChartProj (int dbIndex) |
| int | GetDBChartScale (int dbIndex) |
| bool | GetDBBoundingBox (int dbindex, LLBBox &box) |
| const LLBBox & | GetDBBoundingBox (int dbIndex) |
| int | GetnAuxPlyEntries (int dbIndex) |
| int | GetDBPlyPoint (int dbIndex, int plyindex, float *lat, float *lon) |
| int | GetDBAuxPlyPoint (int dbIndex, int plyindex, int iAuxPly, float *lat, float *lon) |
| int | GetVersion () |
| wxString | GetFullChartInfo (ChartBase *pc, int dbIndex, int *char_width, int *line_count) |
| int | FinddbIndex (wxString PathToFind) |
| wxString | GetDBChartFileName (int dbIndex) |
| void | ApplyGroupArray (ChartGroupArray *pGroupArray) |
| bool | IsChartAvailable (int dbIndex) |
| std::vector< float > | GetReducedPlyPoints (int dbIndex) |
| std::vector< float > | GetReducedAuxPlyPoints (int dbIndex, int iTable) |
| bool | IsBusy () |
| void | SetBusy (bool _busy) |
| ChartTableEntry * | CreateChartTableEntry (const wxString &filePath, wxString &utf8Path, ChartClassDescriptor &chart_desc) |
Public Attributes | |
| std::map< wxString, int > | active_chartTable_pathindex |
| std::vector< std::shared_ptr< ChartTableEntry > > | active_chartTable |
Protected Member Functions | |
| virtual ChartBase * | GetChart (const wxChar *theFilePath, ChartClassDescriptor &chart_desc) const |
| int | AddChartDirectory (const wxString &theDir, bool bshow_prog) |
| void | SetValid (bool valid) |
Protected Attributes | |
| std::vector< ChartClassDescriptor > | m_ChartClassDescriptorArray |
| ArrayOfCDI | m_dir_array |
| bool | m_b_busy |
Manages a database of charts, including reading, writing, and querying chart information.
Definition at line 304 of file chartdbs.h.
| ChartDatabase::ChartDatabase | ( | ) |
Definition at line 1069 of file chartdbs.cpp.
|
inlinevirtual |
Definition at line 307 of file chartdbs.h.
| bool ChartDatabase::AddSingleChart | ( | wxString & | fullpath, |
| bool | b_force_full_search = true |
||
| ) |
Definition at line 2951 of file chartdbs.cpp.
| void ChartDatabase::ApplyGroupArray | ( | ChartGroupArray * | pGroupArray | ) |
Definition at line 3376 of file chartdbs.cpp.
| bool ChartDatabase::CompareChartDirArray | ( | ArrayOfCDI & | test_array | ) |
Definition at line 1360 of file chartdbs.cpp.
| bool ChartDatabase::Create | ( | ArrayOfCDI & | dir_array, |
| wxGenericProgressDialog * | pprog | ||
| ) |
Creates a new chart database from a list of directories.
| dir_array | Array of chart directory information |
| pprog | Progress dialog for user feedback |
Definition at line 1675 of file chartdbs.cpp.
| ChartTableEntry * ChartDatabase::CreateChartTableEntry | ( | const wxString & | filePath, |
| wxString & | utf8Path, | ||
| ChartClassDescriptor & | chart_desc | ||
| ) |
Definition at line 3116 of file chartdbs.cpp.
| int ChartDatabase::DisableChart | ( | wxString & | PathToDisable | ) |
Definition at line 1914 of file chartdbs.cpp.
| void ChartDatabase::FinalizeChartUpdate | ( | ) |
Definition at line 1186 of file chartdbs.cpp.
| int ChartDatabase::FinddbIndex | ( | wxString | PathToFind | ) |
Definition at line 1891 of file chartdbs.cpp.
| bool ChartDatabase::GetCentroidOfLargestScaleChart | ( | double * | clat, |
| double * | clon, | ||
| ChartFamilyEnum | family | ||
| ) |
Definition at line 3149 of file chartdbs.cpp.
|
protectedvirtual |
Definition at line 3106 of file chartdbs.cpp.
|
inline |
Definition at line 336 of file chartdbs.h.
|
inline |
Definition at line 337 of file chartdbs.h.
|
inline |
Definition at line 346 of file chartdbs.h.
|
inline |
Definition at line 349 of file chartdbs.h.
| ChartTableEntry & ChartDatabase::GetChartTableEntry | ( | int | index | ) | const |
Definition at line 1343 of file chartdbs.cpp.
| int ChartDatabase::GetDBAuxPlyPoint | ( | int | dbIndex, |
| int | plyindex, | ||
| int | iAuxPly, | ||
| float * | lat, | ||
| float * | lon | ||
| ) |
Definition at line 3286 of file chartdbs.cpp.
| const LLBBox & ChartDatabase::GetDBBoundingBox | ( | int | dbIndex | ) |
Definition at line 3255 of file chartdbs.cpp.
| bool ChartDatabase::GetDBBoundingBox | ( | int | dbindex, |
| LLBBox & | box | ||
| ) |
Definition at line 3245 of file chartdbs.cpp.
| int ChartDatabase::GetDBChartFamily | ( | int | dbIndex | ) |
Definition at line 3190 of file chartdbs.cpp.
| wxString ChartDatabase::GetDBChartFileName | ( | int | dbIndex | ) |
Definition at line 3201 of file chartdbs.cpp.
| int ChartDatabase::GetDBChartProj | ( | int | dbIndex | ) |
Definition at line 3179 of file chartdbs.cpp.
| int ChartDatabase::GetDBChartScale | ( | int | dbIndex | ) |
Definition at line 3234 of file chartdbs.cpp.
| float ChartDatabase::GetDBChartSkew | ( | int | dbIndex | ) |
Definition at line 3223 of file chartdbs.cpp.
| int ChartDatabase::GetDBChartType | ( | int | dbIndex | ) |
Definition at line 3212 of file chartdbs.cpp.
|
inline |
Definition at line 335 of file chartdbs.h.
| int ChartDatabase::GetDBPlyPoint | ( | int | dbIndex, |
| int | plyindex, | ||
| float * | lat, | ||
| float * | lon | ||
| ) |
Definition at line 3267 of file chartdbs.cpp.
| wxString ChartDatabase::GetFullChartInfo | ( | ChartBase * | pc, |
| int | dbIndex, | ||
| int * | char_width, | ||
| int * | line_count | ||
| ) |
Definition at line 1536 of file chartdbs.cpp.
| wxString ChartDatabase::GetMagicNumberCached | ( | wxString | dir | ) |
Definition at line 1386 of file chartdbs.cpp.
| int ChartDatabase::GetnAuxPlyEntries | ( | int | dbIndex | ) |
Definition at line 3304 of file chartdbs.cpp.
| std::vector< float > ChartDatabase::GetReducedAuxPlyPoints | ( | int | dbIndex, |
| int | iTable | ||
| ) |
Definition at line 3328 of file chartdbs.cpp.
| std::vector< float > ChartDatabase::GetReducedPlyPoints | ( | int | dbIndex | ) |
Definition at line 3315 of file chartdbs.cpp.
|
inline |
Definition at line 369 of file chartdbs.h.
|
inline |
Definition at line 381 of file chartdbs.h.
| bool ChartDatabase::IsChartAvailable | ( | int | dbIndex | ) |
Definition at line 3339 of file chartdbs.cpp.
|
inline |
Definition at line 352 of file chartdbs.h.
| void ChartDatabase::OnEvtThread | ( | OCPN_ChartTableEntryThreadEvent & | event | ) |
Definition at line 1095 of file chartdbs.cpp.
| bool ChartDatabase::Read | ( | const wxString & | filePath | ) |
Definition at line 1395 of file chartdbs.cpp.
| bool ChartDatabase::RemoveSingleChart | ( | wxString & | ChartFullPath | ) |
Definition at line 3048 of file chartdbs.cpp.
|
inline |
Definition at line 382 of file chartdbs.h.
|
inline |
Definition at line 338 of file chartdbs.h.
|
inlineprotected |
Definition at line 394 of file chartdbs.h.
| bool ChartDatabase::Update | ( | ArrayOfCDI & | dir_array, |
| bool | bForce, | ||
| wxGenericProgressDialog * | pprog | ||
| ) |
Updates the chart database.
| dir_array | Array of chart directory information |
| bForce | Force update even if no changes detected |
| pprog | Progress dialog for user feedback |
Definition at line 1777 of file chartdbs.cpp.
| void ChartDatabase::UpdateChartClassDescriptorArray | ( | void | ) |
Definition at line 1296 of file chartdbs.cpp.
| bool ChartDatabase::UpdateChartDatabaseInplace | ( | ArrayOfCDI & | DirArray, |
| bool | b_force, | ||
| bool | b_prog | ||
| ) |
Definition at line 1736 of file chartdbs.cpp.
| bool ChartDatabase::Write | ( | const wxString & | filePath | ) |
Definition at line 1469 of file chartdbs.cpp.
| std::vector<std::shared_ptr<ChartTableEntry> > ChartDatabase::active_chartTable |
Definition at line 388 of file chartdbs.h.
| std::map<wxString, int> ChartDatabase::active_chartTable_pathindex |
Definition at line 376 of file chartdbs.h.
|
protected |
Definition at line 398 of file chartdbs.h.
|
protected |
Definition at line 396 of file chartdbs.h.
|
protected |
Definition at line 397 of file chartdbs.h.