|
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, wxGenericProgressDialog *_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) |
| bool | ScrubGroupArray () |
| ChartTableEntry * | CreateChartTableEntry (const wxString &filePath, wxString &utf8Path, ChartClassDescriptor &chart_desc) |
| void | OnDBSProgressUpdate (wxCommandEvent &evt) |
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 1071 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 2650 of file chartdbs.cpp.
| void ChartDatabase::ApplyGroupArray | ( | ChartGroupArray * | pGroupArray | ) |
Definition at line 3071 of file chartdbs.cpp.
| bool ChartDatabase::CompareChartDirArray | ( | ArrayOfCDI & | test_array | ) |
Definition at line 1383 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 1698 of file chartdbs.cpp.
| ChartTableEntry * ChartDatabase::CreateChartTableEntry | ( | const wxString & | filePath, |
| wxString & | utf8Path, | ||
| ChartClassDescriptor & | chart_desc | ||
| ) |
Definition at line 2814 of file chartdbs.cpp.
| int ChartDatabase::DisableChart | ( | wxString & | PathToDisable | ) |
Definition at line 1914 of file chartdbs.cpp.
| void ChartDatabase::FinalizeChartUpdate | ( | ) |
Definition at line 1217 of file chartdbs.cpp.
| int ChartDatabase::FinddbIndex | ( | wxString | PathToFind | ) |
Definition at line 1902 of file chartdbs.cpp.
| bool ChartDatabase::GetCentroidOfLargestScaleChart | ( | double * | clat, |
| double * | clon, | ||
| ChartFamilyEnum | family | ||
| ) |
Definition at line 2844 of file chartdbs.cpp.
|
protectedvirtual |
Definition at line 2804 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 1375 of file chartdbs.cpp.
| int ChartDatabase::GetDBAuxPlyPoint | ( | int | dbIndex, |
| int | plyindex, | ||
| int | iAuxPly, | ||
| float * | lat, | ||
| float * | lon | ||
| ) |
Definition at line 2981 of file chartdbs.cpp.
| const LLBBox & ChartDatabase::GetDBBoundingBox | ( | int | dbIndex | ) |
Definition at line 2950 of file chartdbs.cpp.
| bool ChartDatabase::GetDBBoundingBox | ( | int | dbindex, |
| LLBBox & | box | ||
| ) |
Definition at line 2940 of file chartdbs.cpp.
| int ChartDatabase::GetDBChartFamily | ( | int | dbIndex | ) |
Definition at line 2885 of file chartdbs.cpp.
| wxString ChartDatabase::GetDBChartFileName | ( | int | dbIndex | ) |
Definition at line 2896 of file chartdbs.cpp.
| int ChartDatabase::GetDBChartProj | ( | int | dbIndex | ) |
Definition at line 2874 of file chartdbs.cpp.
| int ChartDatabase::GetDBChartScale | ( | int | dbIndex | ) |
Definition at line 2929 of file chartdbs.cpp.
| float ChartDatabase::GetDBChartSkew | ( | int | dbIndex | ) |
Definition at line 2918 of file chartdbs.cpp.
| int ChartDatabase::GetDBChartType | ( | int | dbIndex | ) |
Definition at line 2907 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 2962 of file chartdbs.cpp.
| wxString ChartDatabase::GetFullChartInfo | ( | ChartBase * | pc, |
| int | dbIndex, | ||
| int * | char_width, | ||
| int * | line_count | ||
| ) |
Definition at line 1559 of file chartdbs.cpp.
| wxString ChartDatabase::GetMagicNumberCached | ( | wxString | dir | ) |
Definition at line 1409 of file chartdbs.cpp.
| int ChartDatabase::GetnAuxPlyEntries | ( | int | dbIndex | ) |
Definition at line 2999 of file chartdbs.cpp.
| std::vector< float > ChartDatabase::GetReducedAuxPlyPoints | ( | int | dbIndex, |
| int | iTable | ||
| ) |
Definition at line 3023 of file chartdbs.cpp.
| std::vector< float > ChartDatabase::GetReducedPlyPoints | ( | int | dbIndex | ) |
Definition at line 3010 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 3034 of file chartdbs.cpp.
|
inline |
Definition at line 352 of file chartdbs.h.
| void ChartDatabase::OnDBSProgressUpdate | ( | wxCommandEvent & | evt | ) |
Definition at line 1084 of file chartdbs.cpp.
| void ChartDatabase::OnEvtThread | ( | OCPN_ChartTableEntryThreadEvent & | event | ) |
Definition at line 1093 of file chartdbs.cpp.
| bool ChartDatabase::Read | ( | const wxString & | filePath | ) |
Definition at line 1418 of file chartdbs.cpp.
| bool ChartDatabase::RemoveSingleChart | ( | wxString & | ChartFullPath | ) |
Definition at line 2748 of file chartdbs.cpp.
| bool ChartDatabase::ScrubGroupArray | ( | ) |
Definition at line 1282 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 396 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 1784 of file chartdbs.cpp.
| void ChartDatabase::UpdateChartClassDescriptorArray | ( | void | ) |
Definition at line 1328 of file chartdbs.cpp.
| bool ChartDatabase::UpdateChartDatabaseInplace | ( | ArrayOfCDI & | DirArray, |
| bool | b_force, | ||
| wxGenericProgressDialog * | _prog | ||
| ) |
Definition at line 1759 of file chartdbs.cpp.
| bool ChartDatabase::Write | ( | const wxString & | filePath | ) |
Definition at line 1492 of file chartdbs.cpp.
| std::vector<std::shared_ptr<ChartTableEntry> > ChartDatabase::active_chartTable |
Definition at line 389 of file chartdbs.h.
| std::map<wxString, int> ChartDatabase::active_chartTable_pathindex |
Definition at line 376 of file chartdbs.h.
|
protected |
Definition at line 400 of file chartdbs.h.
|
protected |
Definition at line 398 of file chartdbs.h.
|
protected |
Definition at line 399 of file chartdbs.h.