OpenCPN Partial API docs
ChartDB Class Reference
Inheritance diagram for ChartDB:
ChartDatabase

Public Member Functions

bool LoadBinary (const wxString &filename, ArrayOfCDI &dir_array_check)
 
bool SaveBinary (const wxString &filename)
 
int BuildChartStack (ChartStack *cstk, float lat, float lon, int groupIndex)
 
int BuildChartStack (ChartStack *cstk, float lat, float lon, int db_add, int groupIndex)
 
bool EqualStacks (ChartStack *, ChartStack *)
 
bool CopyStack (ChartStack *pa, ChartStack *pb)
 
wxString GetFullPath (ChartStack *ps, int stackindex)
 
int GetStackChartScale (ChartStack *ps, int stackindex, char *buf, int nbuf)
 
int GetCSPlyPoint (ChartStack *ps, int stackindex, int plyindex, float *lat, float *lon)
 
ChartTypeEnum GetCSChartType (ChartStack *ps, int stackindex)
 
ChartFamilyEnum GetCSChartFamily (ChartStack *ps, int stackindex)
 
bool SearchForChartDir (const wxString &dir)
 
ChartBaseOpenStackChartConditional (ChartStack *ps, int start_index, bool bLargest, ChartTypeEnum New_Type, ChartFamilyEnum New_Family_Fallback)
 
wxArrayPtrVoid * GetChartCache (void)
 
std::vector< int > GetCSArray (ChartStack *ps)
 
int GetStackEntry (ChartStack *ps, wxString fp)
 
bool IsChartInCache (int dbindex)
 
bool IsChartInCache (wxString path)
 
bool IsChartInGroup (const int db_index, const int group)
 
bool IsENCInGroup (const int group)
 
bool IsNonMBTileInGroup (const int group)
 
ChartBaseOpenChartFromStack (ChartStack *pStack, int StackEntry, ChartInitFlag iflag=FULL_INIT)
 
ChartBaseOpenChartFromDB (int index, ChartInitFlag init_flag)
 
ChartBaseOpenChartFromDBAndLock (int index, ChartInitFlag init_flag, bool lock=true)
 
ChartBaseOpenChartFromDBAndLock (wxString chart_path, ChartInitFlag init_flag)
 
ChartBaseOpenChartFromDB (wxString chart_path, ChartInitFlag init_flag)
 
void ApplyColorSchemeToCachedCharts (ColorScheme cs)
 
void PurgeCache ()
 
void PurgeCachePlugins ()
 
bool DeleteCacheChart (ChartBase *pChart)
 
void LockCache (bool bl)
 
void LockCache ()
 
void UnLockCache ()
 
bool IsCacheLocked ()
 
wxXmlDocument GetXMLDescription (int dbIndex, bool b_getGeom)
 
bool LockCacheChart (int index)
 
bool IsChartLocked (int index)
 
void UnLockCacheChart (int index)
 
void UnLockAllCacheCharts ()
 
void ClearCacheInUseFlags (void)
 
void PurgeCacheUnusedCharts (double factor)
 
bool IsBusy ()
 
bool CheckExclusiveTileGroup (int canvasIndex)
 
bool CheckAnyCanvasExclusiveTileGroup ()
 
- Public Member Functions inherited from ChartDatabase
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 ChartTableEntryGetChartTableEntry (int index) const
 
ChartTableEntryGetpChartTableEntry (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 ()
 

Protected Member Functions

virtual ChartBaseGetChart (const wxChar *theFilePath, ChartClassDescriptor &chart_desc) const
 
- Protected Member Functions inherited from ChartDatabase
int AddChartDirectory (const wxString &theDir, bool bshow_prog)
 
void SetValid (bool valid)
 
ChartTableEntryCreateChartTableEntry (const wxString &filePath, wxString &utf8Path, ChartClassDescriptor &chart_desc)
 

Additional Inherited Members

- Public Attributes inherited from ChartDatabase
ChartTable active_chartTable
 
std::map< wxString, int > active_chartTable_pathindex
 
- Protected Attributes inherited from ChartDatabase
std::vector< ChartClassDescriptorm_ChartClassDescriptorArray
 
ArrayOfCDI m_dir_array
 
bool m_b_busy
 

Detailed Description

Definition at line 93 of file chartdb.h.


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