OpenCPN Partial API docs
Loading...
Searching...
No Matches
ChartMBTiles Class Reference
Inheritance diagram for ChartMBTiles:
ChartBase

Public Member Functions

virtual ThumbDataGetThumbData (int tnx, int tny, float lat, float lon)
 
virtual ThumbDataGetThumbData ()
 
virtual bool UpdateThumbData (double lat, double lon)
 
virtual bool AdjustVP (ViewPort &vp_last, ViewPort &vp_proposed)
 
int GetNativeScale ()
 
double GetNormalScaleMin (double canvas_scale_factor, bool b_allow_overzoom)
 
double GetNormalScaleMax (double canvas_scale_factor, int canvas_width)
 
virtual InitReturn Init (const wxString &name, ChartInitFlag init_flags)
 
bool RenderRegionViewOnDC (wxMemoryDC &dc, const ViewPort &VPoint, const OCPNRegion &Region)
 
virtual bool RenderRegionViewOnGL (const wxGLContext &glc, const ViewPort &VPoint, const OCPNRegion &RectRegion, const LLRegion &Region)
 
virtual double GetNearestPreferredScalePPM (double target_scale_ppm)
 
virtual void GetValidCanvasRegion (const ViewPort &VPoint, OCPNRegion *pValidRegion)
 
virtual LLRegion GetValidRegion ()
 
virtual bool GetChartExtent (Extent *pext)
 
void SetColorScheme (ColorScheme cs, bool bApplyImmediate)
 
double GetPPM ()
 
double GetZoomFactor ()
 
- Public Member Functions inherited from ChartBase
virtual InitReturn Init (const wxString &name, ChartInitFlag init_flags)=0
 
virtual void Activate (void)
 
virtual void Deactivate (void)
 
virtual ThumbDataGetThumbData (int tnx, int tny, float lat, float lon)=0
 
virtual ThumbDataGetThumbData ()=0
 
virtual bool UpdateThumbData (double lat, double lon)=0
 
virtual double GetNormalScaleMin (double canvas_scale_factor, bool b_allow_overzoom)=0
 
virtual double GetNormalScaleMax (double canvas_scale_factor, int canvas_width)=0
 
virtual bool GetChartExtent (Extent *pext)=0
 
virtual OcpnProjType GetChartProjectionType ()
 
virtual wxDateTime GetEditionDate (void)
 
virtual wxString GetPubDate ()
 
virtual int GetNativeScale ()
 
wxString GetFullPath () const
 
wxString GetHashKey () const
 
wxString GetName ()
 
wxString GetDescription ()
 
wxString GetID ()
 
wxString GetSE ()
 
wxString GetDepthUnits ()
 
wxString GetSoundingsDatum ()
 
wxString GetDatumString ()
 
wxString GetExtraInfo ()
 
double GetChart_Error_Factor ()
 
ChartTypeEnum GetChartType ()
 
ChartFamilyEnum GetChartFamily ()
 
double GetChartSkew ()
 
virtual ChartDepthUnitType GetDepthUnitType (void)
 
virtual bool IsReadyToRender ()
 
virtual bool RenderRegionViewOnDC (wxMemoryDC &dc, const ViewPort &VPoint, const OCPNRegion &Region)=0
 
virtual bool RenderRegionViewOnGL (const wxGLContext &glc, const ViewPort &VPoint, const OCPNRegion &RectRegion, const LLRegion &Region)=0
 
virtual bool AdjustVP (ViewPort &vp_last, ViewPort &vp_proposed)=0
 
virtual void GetValidCanvasRegion (const ViewPort &VPoint, OCPNRegion *pValidRegion)=0
 
virtual LLRegion GetValidRegion ()=0
 
virtual void SetColorScheme (ColorScheme cs, bool bApplyImmediate=true)=0
 
virtual double GetNearestPreferredScalePPM (double target_scale_ppm)=0
 
virtual int GetCOVREntries ()
 
virtual int GetCOVRTablePoints (int iTable)
 
virtual int GetCOVRTablenPoints (int iTable)
 
virtual float * GetCOVRTableHead (int iTable)
 
virtual int GetNoCOVREntries ()
 
virtual int GetNoCOVRTablePoints (int iTable)
 
virtual int GetNoCOVRTablenPoints (int iTable)
 
virtual float * GetNoCOVRTableHead (int iTable)
 

Protected Member Functions

bool RenderViewOnDC (wxMemoryDC &dc, const ViewPort &VPoint)
 
InitReturn PreInit (const wxString &name, ChartInitFlag init_flags, ColorScheme cs)
 
InitReturn PostInit (void)
 
void PrepareTiles ()
 
void PrepareTilesForZoom (int zoomFactor, bool bset_geom)
 
bool getTileTexture (mbTileDescriptor *tile)
 
void FlushTiles (void)
 
void FlushTextures (void)
 
bool RenderTile (mbTileDescriptor *tile, int zoomLevel, const ViewPort &VPoint)
 

Protected Attributes

float m_LonMax
 
float m_LonMin
 
float m_LatMax
 
float m_LatMin
 
double m_ppm_avg
 
int m_b_cdebug
 
int m_minZoom
 
int m_maxZoom
 
mbTileZoomDescriptor ** m_tileArray
 
LLRegion m_minZoomRegion
 
wxBitmapType m_imageType
 
double m_zoomScaleFactor
 
MBTilesType m_Type
 
MBTilesScheme m_Scheme
 
SQLite::Database * m_pDB
 
int m_nTiles
 
std::string m_format
 
GLShaderProgramm_tile_shader_program
 
- Protected Attributes inherited from ChartBase
int m_Chart_Scale
 
ChartTypeEnum m_ChartType
 
ChartFamilyEnum m_ChartFamily
 
wxString m_FullPath
 
wxString m_Name
 
wxString m_Description
 
wxString m_ID
 
wxString m_SE
 
wxString m_SoundingsDatum
 
wxString m_datum_str
 
wxString m_ExtraInfo
 
wxString m_PubYear
 
wxString m_DepthUnits
 
OcpnProjType m_projection
 
ChartDepthUnitType m_depth_unit_id
 
wxDateTime m_EdDate
 
ThumbDatapThumbData
 
ColorScheme m_global_color_scheme
 
bool bReadyToRender
 
double Chart_Error_Factor
 
double m_lon_datum_adjust
 
double m_lat_datum_adjust
 
double m_Chart_Skew
 
int m_nCOVREntries
 
int * m_pCOVRTablePoints
 
float ** m_pCOVRTable
 
int m_nNoCOVREntries
 
int * m_pNoCOVRTablePoints
 
float ** m_pNoCOVRTable
 

Detailed Description

Definition at line 70 of file mbtiles.h.

Constructor & Destructor Documentation

◆ ChartMBTiles()

ChartMBTiles::ChartMBTiles ( )

Definition at line 252 of file mbtiles.cpp.

◆ ~ChartMBTiles()

ChartMBTiles::~ChartMBTiles ( )
virtual

Definition at line 289 of file mbtiles.cpp.

Member Function Documentation

◆ AdjustVP()

bool ChartMBTiles::AdjustVP ( ViewPort vp_last,
ViewPort vp_proposed 
)
virtual

Implements ChartBase.

Definition at line 309 of file mbtiles.cpp.

◆ FlushTextures()

void ChartMBTiles::FlushTextures ( void  )
protected

Definition at line 698 of file mbtiles.cpp.

◆ FlushTiles()

void ChartMBTiles::FlushTiles ( void  )
protected

Definition at line 682 of file mbtiles.cpp.

◆ GetChartExtent()

bool ChartMBTiles::GetChartExtent ( Extent pext)
virtual

Implements ChartBase.

Definition at line 732 of file mbtiles.cpp.

◆ GetNativeScale()

int ChartMBTiles::GetNativeScale ( void  )
inlinevirtual

Reimplemented from ChartBase.

Definition at line 84 of file mbtiles.h.

◆ GetNearestPreferredScalePPM()

double ChartMBTiles::GetNearestPreferredScalePPM ( double  target_scale_ppm)
virtual

Implements ChartBase.

Definition at line 332 of file mbtiles.cpp.

◆ GetNormalScaleMax()

double ChartMBTiles::GetNormalScaleMax ( double  canvas_scale_factor,
int  canvas_width 
)
virtual

Implements ChartBase.

Definition at line 326 of file mbtiles.cpp.

◆ GetNormalScaleMin()

double ChartMBTiles::GetNormalScaleMin ( double  canvas_scale_factor,
bool  b_allow_overzoom 
)
virtual

Implements ChartBase.

Definition at line 316 of file mbtiles.cpp.

◆ GetPPM()

double ChartMBTiles::GetPPM ( )
inline

Definition at line 108 of file mbtiles.h.

◆ GetThumbData() [1/2]

ThumbData * ChartMBTiles::GetThumbData ( )
virtual

Implements ChartBase.

Definition at line 301 of file mbtiles.cpp.

◆ GetThumbData() [2/2]

ThumbData * ChartMBTiles::GetThumbData ( int  tnx,
int  tny,
float  lat,
float  lon 
)
virtual

Implements ChartBase.

Definition at line 303 of file mbtiles.cpp.

◆ getTileTexture()

bool ChartMBTiles::getTileTexture ( mbTileDescriptor tile)
protected

Definition at line 761 of file mbtiles.cpp.

◆ GetValidCanvasRegion()

void ChartMBTiles::GetValidCanvasRegion ( const ViewPort VPoint,
OCPNRegion pValidRegion 
)
virtual

Implements ChartBase.

Definition at line 748 of file mbtiles.cpp.

◆ GetValidRegion()

LLRegion ChartMBTiles::GetValidRegion ( )
virtual

Implements ChartBase.

Definition at line 755 of file mbtiles.cpp.

◆ GetZoomFactor()

double ChartMBTiles::GetZoomFactor ( )
inline

Definition at line 109 of file mbtiles.h.

◆ Init()

InitReturn ChartMBTiles::Init ( const wxString &  name,
ChartInitFlag  init_flags 
)
virtual

Implements ChartBase.

Definition at line 443 of file mbtiles.cpp.

◆ PostInit()

InitReturn ChartMBTiles::PostInit ( void  )
protected

Definition at line 656 of file mbtiles.cpp.

◆ PreInit()

InitReturn ChartMBTiles::PreInit ( const wxString &  name,
ChartInitFlag  init_flags,
ColorScheme  cs 
)
protected

Definition at line 650 of file mbtiles.cpp.

◆ PrepareTiles()

void ChartMBTiles::PrepareTiles ( )
protected

Definition at line 670 of file mbtiles.cpp.

◆ PrepareTilesForZoom()

void ChartMBTiles::PrepareTilesForZoom ( int  zoomFactor,
bool  bset_geom 
)
protected

Definition at line 715 of file mbtiles.cpp.

◆ RenderRegionViewOnDC()

bool ChartMBTiles::RenderRegionViewOnDC ( wxMemoryDC &  dc,
const ViewPort VPoint,
const OCPNRegion Region 
)
virtual

Implements ChartBase.

Definition at line 1258 of file mbtiles.cpp.

◆ RenderRegionViewOnGL()

bool ChartMBTiles::RenderRegionViewOnGL ( const wxGLContext &  glc,
const ViewPort VPoint,
const OCPNRegion RectRegion,
const LLRegion &  Region 
)
virtual

Implements ChartBase.

Definition at line 1052 of file mbtiles.cpp.

◆ RenderTile()

bool ChartMBTiles::RenderTile ( mbTileDescriptor tile,
int  zoomLevel,
const ViewPort VPoint 
)
protected

Definition at line 956 of file mbtiles.cpp.

◆ RenderViewOnDC()

bool ChartMBTiles::RenderViewOnDC ( wxMemoryDC &  dc,
const ViewPort VPoint 
)
protected

Definition at line 757 of file mbtiles.cpp.

◆ SetColorScheme()

void ChartMBTiles::SetColorScheme ( ColorScheme  cs,
bool  bApplyImmediate 
)
virtual

Implements ChartBase.

Definition at line 741 of file mbtiles.cpp.

◆ UpdateThumbData()

bool ChartMBTiles::UpdateThumbData ( double  lat,
double  lon 
)
virtual

Implements ChartBase.

Definition at line 307 of file mbtiles.cpp.

Member Data Documentation

◆ m_b_cdebug

int ChartMBTiles::m_b_cdebug
protected

Definition at line 133 of file mbtiles.h.

◆ m_format

std::string ChartMBTiles::m_format
protected

Definition at line 147 of file mbtiles.h.

◆ m_imageType

wxBitmapType ChartMBTiles::m_imageType
protected

Definition at line 138 of file mbtiles.h.

◆ m_LatMax

float ChartMBTiles::m_LatMax
protected

Definition at line 128 of file mbtiles.h.

◆ m_LatMin

float ChartMBTiles::m_LatMin
protected

Definition at line 128 of file mbtiles.h.

◆ m_LonMax

float ChartMBTiles::m_LonMax
protected

Definition at line 128 of file mbtiles.h.

◆ m_LonMin

float ChartMBTiles::m_LonMin
protected

Definition at line 128 of file mbtiles.h.

◆ m_maxZoom

int ChartMBTiles::m_maxZoom
protected

Definition at line 135 of file mbtiles.h.

◆ m_minZoom

int ChartMBTiles::m_minZoom
protected

Definition at line 135 of file mbtiles.h.

◆ m_minZoomRegion

LLRegion ChartMBTiles::m_minZoomRegion
protected

Definition at line 137 of file mbtiles.h.

◆ m_nTiles

int ChartMBTiles::m_nTiles
protected

Definition at line 146 of file mbtiles.h.

◆ m_pDB

SQLite::Database* ChartMBTiles::m_pDB
protected

Definition at line 145 of file mbtiles.h.

◆ m_ppm_avg

double ChartMBTiles::m_ppm_avg
protected

Definition at line 130 of file mbtiles.h.

◆ m_Scheme

MBTilesScheme ChartMBTiles::m_Scheme
protected

Definition at line 143 of file mbtiles.h.

◆ m_tile_shader_program

GLShaderProgram* ChartMBTiles::m_tile_shader_program
protected

Definition at line 149 of file mbtiles.h.

◆ m_tileArray

mbTileZoomDescriptor** ChartMBTiles::m_tileArray
protected

Definition at line 136 of file mbtiles.h.

◆ m_Type

MBTilesType ChartMBTiles::m_Type
protected

Definition at line 142 of file mbtiles.h.

◆ m_zoomScaleFactor

double ChartMBTiles::m_zoomScaleFactor
protected

Definition at line 140 of file mbtiles.h.


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