195 void SetValid(
bool valid) { bValid = valid; }
196 time_t GetFileTime()
const {
return file_date; }
197 time_t GetChartEditionDate()
const {
return edition_date; }
199 int GetnPlyEntries()
const {
return nPlyEntries; }
200 float *GetpPlyTable()
const {
return pPlyTable; }
202 int GetnAuxPlyEntries()
const {
return nAuxPlyEntries; }
203 float *GetpAuxPlyTableEntry(
int index)
const {
return pAuxPlyTable[index]; }
204 int GetAuxCntTableEntry(
int index)
const {
return pAuxCntTable[index]; }
206 int GetnNoCovrPlyEntries()
const {
return nNoCovrPlyEntries; }
207 float *GetpNoCovrPlyTableEntry(
int index)
const {
208 return pNoCovrPlyTable[index];
210 int GetNoCovrCntTableEntry(
int index)
const {
return pNoCovrCntTable[index]; }
212 const LLBBox &GetBBox()
const {
return m_bbox; }
214 char *GetpFullPath()
const {
return pFullPath; }
215 float GetLonMax()
const {
return LonMax; }
216 float GetLonMin()
const {
return LonMin; }
217 float GetLatMax()
const {
return LatMax; }
218 float GetLatMin()
const {
return LatMin; }
219 int GetScale()
const {
return Scale; }
220 int GetChartType()
const {
return ChartType; }
221 int GetChartFamily()
const {
return ChartFamily; }
222 int GetChartProjectionType()
const {
return ProjectionType; }
223 float GetChartSkew()
const {
return Skew; }
225 bool GetbValid() {
return bValid; }
226 void SetEntryOffset(
int n) { EntryOffset = n; }
227 const wxString *GetpFileName(
void)
const {
return m_pfilename; }
228 wxString *GetpsFullPath(
void)
const {
return m_psFullPath; }
229 wxString GetFullSystemPath()
const {
return m_fullSystemPath; }
230 const std::string &GetFullPath()
const {
return m_FullPath; }
232 const std::vector<int> &GetGroupArray(
void)
const {
return m_GroupArray; }
233 void ClearGroupArray(
void) { m_GroupArray.clear(); }
234 void AddIntToGroupArray(
int val) { m_GroupArray.push_back(val); }
235 void SetAvailable(
bool avail) { m_bavail = avail; }
237 std::vector<float> GetReducedPlyPoints();
238 std::vector<float> GetReducedAuxPlyPoints(
int iTable);
240 LLRegion quilt_candidate_region;
242 void SetScale(
int scale);
243 bool Scale_eq(
int b)
const {
return abs(Scale - b) <= rounding; }
244 bool Scale_ge(
int b)
const {
return Scale_eq(b) || Scale > b; }
245 bool Scale_gt(
int b)
const {
return Scale > b && !Scale_eq(b); }
263 float **pAuxPlyTable;
268 int nNoCovrPlyEntries;
269 int *pNoCovrCntTable;
270 float **pNoCovrPlyTable;
272 std::vector<int> m_GroupArray;
273 wxString *m_pfilename;
274 wxString *m_psFullPath;
275 wxString m_fullSystemPath;
276 std::string m_FullPath;
281 std::vector<float> m_reducedPlyPoints;
283 std::vector<std::vector<float>> m_reducedAuxPlyPointsVector;
321 bool Create(ArrayOfCDI &dir_array, wxGenericProgressDialog *pprog);
329 bool Update(ArrayOfCDI &dir_array,
bool bForce,
330 wxGenericProgressDialog *pprog);
332 bool Read(
const wxString &filePath);
333 bool Write(
const wxString &filePath);
335 bool AddSingleChart(wxString &fullpath,
bool b_force_full_search =
true);
336 bool RemoveSingleChart(wxString &ChartFullPath);
338 const wxString &GetDBFileName()
const {
return m_DBFileName; }
339 ArrayOfCDI &GetChartDirArray() {
return m_dir_array; }
340 wxArrayString &GetChartDirArrayString() {
return m_chartDirs; }
341 void SetChartDirArray(ArrayOfCDI array) { m_dir_array = array; }
342 bool CompareChartDirArray(ArrayOfCDI &test_array);
343 wxString GetMagicNumberCached(wxString dir);
345 void UpdateChartClassDescriptorArray(
void);
347 int GetChartTableEntries()
const {
return active_chartTable.size(); }
350 inline ChartTable &GetChartTable() {
return active_chartTable; }
352 bool IsValid()
const {
return bValid; }
353 int DisableChart(wxString &PathToDisable);
354 bool GetCentroidOfLargestScaleChart(
double *clat,
double *clon,
355 ChartFamilyEnum family);
356 int GetDBChartType(
int dbIndex);
357 int GetDBChartFamily(
int dbIndex);
358 float GetDBChartSkew(
int dbIndex);
359 int GetDBChartProj(
int dbIndex);
360 int GetDBChartScale(
int dbIndex);
362 bool GetDBBoundingBox(
int dbindex, LLBBox &box);
363 const LLBBox &GetDBBoundingBox(
int dbIndex);
365 int GetnAuxPlyEntries(
int dbIndex);
366 int GetDBPlyPoint(
int dbIndex,
int plyindex,
float *lat,
float *lon);
367 int GetDBAuxPlyPoint(
int dbIndex,
int plyindex,
int iAuxPly,
float *lat,
369 int GetVersion() {
return m_dbversion; }
370 wxString GetFullChartInfo(
ChartBase *pc,
int dbIndex,
int *char_width,
372 int FinddbIndex(wxString PathToFind);
373 wxString GetDBChartFileName(
int dbIndex);
374 void ApplyGroupArray(ChartGroupArray *pGroupArray);
375 bool IsChartAvailable(
int dbIndex);
376 ChartTable active_chartTable;
377 std::map<wxString, int> active_chartTable_pathindex;
379 std::vector<float> GetReducedPlyPoints(
int dbIndex);
380 std::vector<float> GetReducedAuxPlyPoints(
int dbIndex,
int iTable);
382 bool IsBusy() {
return m_b_busy; }
385 virtual ChartBase *GetChart(
const wxChar *theFilePath,
387 int AddChartDirectory(
const wxString &theDir,
bool bshow_prog);
388 void SetValid(
bool valid) { bValid = valid; }
393 std::vector<ChartClassDescriptor> m_ChartClassDescriptorArray;
394 ArrayOfCDI m_dir_array;
398 bool IsChartDirUsed(
const wxString &theDir);
400 int SearchDirAndAddCharts(wxString &dir_name_base,
402 wxGenericProgressDialog *pprog);
405 wxGenericProgressDialog *pprog,
406 wxString &dir_magic,
bool bForce);
407 bool DetectDirChange(
const wxString &dir_path,
const wxString &prog_label,
408 const wxString &magic, wxString &new_magic,
409 wxGenericProgressDialog *pprog);
412 wxGenericProgressDialog *pprog,
int isearch,
413 bool bthis_dir_in_dB);
415 bool Check_CM93_Structure(wxString dir_name);
418 wxArrayString m_chartDirs;
422 m_ChartTableEntryDummy;
423 wxString m_DBFileName;
Represents an entry in the chart table, containing information about a single chart.