OpenCPN Partial API docs
|
Public Member Functions | |
bool | Create (ArrayOfCDI &dir_array, wxGenericProgressDialog *pprog) |
bool | Update (ArrayOfCDI &dir_array, bool bForce, wxGenericProgressDialog *pprog) |
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) |
int | GetChartTableEntries () const |
const ChartTableEntry & | GetChartTableEntry (int index) const |
ChartTableEntry * | GetpChartTableEntry (int index) const |
ChartTable & | GetChartTable () |
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 () |
Public Attributes | |
ChartTable | active_chartTable |
std::map< wxString, int > | active_chartTable_pathindex |
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) |
ChartTableEntry * | CreateChartTableEntry (const wxString &filePath, wxString &utf8Path, ChartClassDescriptor &chart_desc) |
Protected Attributes | |
ArrayOfChartClassDescriptor | m_ChartClassDescriptorArray |
ArrayOfCDI | m_dir_array |
bool | m_b_busy |
Definition at line 302 of file chartdbs.h.
ChartDatabase::ChartDatabase | ( | ) |
Definition at line 1075 of file chartdbs.cpp.
|
inlinevirtual |
Definition at line 305 of file chartdbs.h.
bool ChartDatabase::AddSingleChart | ( | wxString & | fullpath, |
bool | b_force_full_search = true |
||
) |
Definition at line 2364 of file chartdbs.cpp.
void ChartDatabase::ApplyGroupArray | ( | ChartGroupArray * | pGroupArray | ) |
Definition at line 2776 of file chartdbs.cpp.
bool ChartDatabase::CompareChartDirArray | ( | ArrayOfCDI & | test_array | ) |
Definition at line 1148 of file chartdbs.cpp.
bool ChartDatabase::Create | ( | ArrayOfCDI & | dir_array, |
wxGenericProgressDialog * | pprog | ||
) |
Definition at line 1476 of file chartdbs.cpp.
|
protected |
Definition at line 2521 of file chartdbs.cpp.
int ChartDatabase::DisableChart | ( | wxString & | PathToDisable | ) |
Definition at line 1609 of file chartdbs.cpp.
int ChartDatabase::FinddbIndex | ( | wxString | PathToFind | ) |
Definition at line 1586 of file chartdbs.cpp.
bool ChartDatabase::GetCentroidOfLargestScaleChart | ( | double * | clat, |
double * | clon, | ||
ChartFamilyEnum | family | ||
) |
Definition at line 2552 of file chartdbs.cpp.
|
protectedvirtual |
Definition at line 2511 of file chartdbs.cpp.
|
inline |
Definition at line 318 of file chartdbs.h.
|
inline |
Definition at line 319 of file chartdbs.h.
|
inline |
Definition at line 329 of file chartdbs.h.
|
inline |
Definition at line 326 of file chartdbs.h.
const ChartTableEntry & ChartDatabase::GetChartTableEntry | ( | int | index | ) | const |
Definition at line 1134 of file chartdbs.cpp.
int ChartDatabase::GetDBAuxPlyPoint | ( | int | dbIndex, |
int | plyindex, | ||
int | iAuxPly, | ||
float * | lat, | ||
float * | lon | ||
) |
Definition at line 2685 of file chartdbs.cpp.
const LLBBox & ChartDatabase::GetDBBoundingBox | ( | int | dbIndex | ) |
Definition at line 2654 of file chartdbs.cpp.
bool ChartDatabase::GetDBBoundingBox | ( | int | dbindex, |
LLBBox & | box | ||
) |
Definition at line 2644 of file chartdbs.cpp.
int ChartDatabase::GetDBChartFamily | ( | int | dbIndex | ) |
Definition at line 2594 of file chartdbs.cpp.
wxString ChartDatabase::GetDBChartFileName | ( | int | dbIndex | ) |
Definition at line 2604 of file chartdbs.cpp.
int ChartDatabase::GetDBChartProj | ( | int | dbIndex | ) |
Definition at line 2584 of file chartdbs.cpp.
int ChartDatabase::GetDBChartScale | ( | int | dbIndex | ) |
Definition at line 2634 of file chartdbs.cpp.
float ChartDatabase::GetDBChartSkew | ( | int | dbIndex | ) |
Definition at line 2624 of file chartdbs.cpp.
int ChartDatabase::GetDBChartType | ( | int | dbIndex | ) |
Definition at line 2614 of file chartdbs.cpp.
|
inline |
Definition at line 317 of file chartdbs.h.
int ChartDatabase::GetDBPlyPoint | ( | int | dbIndex, |
int | plyindex, | ||
float * | lat, | ||
float * | lon | ||
) |
Definition at line 2666 of file chartdbs.cpp.
wxString ChartDatabase::GetFullChartInfo | ( | ChartBase * | pc, |
int | dbIndex, | ||
int * | char_width, | ||
int * | line_count | ||
) |
Definition at line 1321 of file chartdbs.cpp.
wxString ChartDatabase::GetMagicNumberCached | ( | wxString | dir | ) |
Definition at line 1174 of file chartdbs.cpp.
int ChartDatabase::GetnAuxPlyEntries | ( | int | dbIndex | ) |
Definition at line 2703 of file chartdbs.cpp.
ChartTableEntry * ChartDatabase::GetpChartTableEntry | ( | int | index | ) | const |
Definition at line 1141 of file chartdbs.cpp.
std::vector< float > ChartDatabase::GetReducedAuxPlyPoints | ( | int | dbIndex, |
int | iTable | ||
) |
Definition at line 2727 of file chartdbs.cpp.
std::vector< float > ChartDatabase::GetReducedPlyPoints | ( | int | dbIndex | ) |
Definition at line 2714 of file chartdbs.cpp.
|
inline |
Definition at line 348 of file chartdbs.h.
|
inline |
Definition at line 361 of file chartdbs.h.
bool ChartDatabase::IsChartAvailable | ( | int | dbIndex | ) |
Definition at line 2738 of file chartdbs.cpp.
|
inline |
Definition at line 331 of file chartdbs.h.
bool ChartDatabase::Read | ( | const wxString & | filePath | ) |
Definition at line 1183 of file chartdbs.cpp.
bool ChartDatabase::RemoveSingleChart | ( | wxString & | ChartFullPath | ) |
Definition at line 2457 of file chartdbs.cpp.
|
inline |
Definition at line 320 of file chartdbs.h.
|
inlineprotected |
Definition at line 367 of file chartdbs.h.
bool ChartDatabase::Update | ( | ArrayOfCDI & | dir_array, |
bool | bForce, | ||
wxGenericProgressDialog * | pprog | ||
) |
Definition at line 1500 of file chartdbs.cpp.
void ChartDatabase::UpdateChartClassDescriptorArray | ( | void | ) |
Definition at line 1084 of file chartdbs.cpp.
bool ChartDatabase::Write | ( | const wxString & | filePath | ) |
Definition at line 1256 of file chartdbs.cpp.
ChartTable ChartDatabase::active_chartTable |
Definition at line 355 of file chartdbs.h.
std::map<wxString, int> ChartDatabase::active_chartTable_pathindex |
Definition at line 356 of file chartdbs.h.
|
protected |
Definition at line 374 of file chartdbs.h.
|
protected |
Definition at line 372 of file chartdbs.h.
|
protected |
Definition at line 373 of file chartdbs.h.