OpenCPN Partial API docs
Loading...
Searching...
No Matches
glTexFactory Class Reference

Public Member Functions

 glTexFactory (ChartBase *chart, int raster_format)
 
glTextureDescriptorGetOrCreateTD (const wxRect &rect)
 
bool BuildTexture (glTextureDescriptor *ptd, int base_level, const wxRect &rect)
 
bool PrepareTexture (int base_level, const wxRect &rect, ColorScheme color_scheme, int mem_used)
 
int GetTextureLevel (glTextureDescriptor *ptd, const wxRect &rect, int level, ColorScheme color_scheme)
 
bool UpdateCacheAllLevels (const wxRect &rect, ColorScheme color_scheme, unsigned char **compcomp_array, int *compcomp_size)
 
bool IsLevelInCache (int level, const wxRect &rect, ColorScheme color_scheme)
 
wxString GetChartPath ()
 
wxString GetHashKey ()
 
void SetHashKey (wxString key)
 
bool OnTimer ()
 
void AccumulateMemStatistics (int &map_size, int &comp_size, int &compcomp_size)
 
void DeleteTexture (const wxRect &rect)
 
void DeleteAllTextures (void)
 
void DeleteSomeTextures (long target)
 
void DeleteAllDescriptors (void)
 
bool BackgroundCompressionAsJob () const
 
void PurgeBackgroundCompressionPool ()
 
void SetLRUTime (int lru)
 
int GetLRUTime ()
 
void FreeSome (long target)
 
void FreeIfCached ()
 
glTextureDescriptorGetpTD (wxRect &rect)
 
void PrepareTiles (const ViewPort &vp, bool use_norm_vp, ChartBase *pChart)
 
glTexTile ** GetTiles (int &num)
 
void GetCenter (double &lat, double &lon)
 

Detailed Description

Definition at line 108 of file gl_tex_cache.h.

Constructor & Destructor Documentation

◆ glTexFactory()

glTexFactory::glTexFactory ( ChartBase chart,
int  raster_format 
)

Definition at line 149 of file gl_tex_cache.cpp.

◆ ~glTexFactory()

glTexFactory::~glTexFactory ( )

Definition at line 197 of file gl_tex_cache.cpp.

Member Function Documentation

◆ AccumulateMemStatistics()

void glTexFactory::AccumulateMemStatistics ( int &  map_size,
int &  comp_size,
int &  compcomp_size 
)

Definition at line 310 of file gl_tex_cache.cpp.

◆ BackgroundCompressionAsJob()

bool glTexFactory::BackgroundCompressionAsJob ( ) const

Definition at line 391 of file gl_tex_cache.cpp.

◆ BuildTexture()

bool glTexFactory::BuildTexture ( glTextureDescriptor ptd,
int  base_level,
const wxRect &  rect 
)

Definition at line 487 of file gl_tex_cache.cpp.

◆ DeleteAllDescriptors()

void glTexFactory::DeleteAllDescriptors ( void  )

Definition at line 381 of file gl_tex_cache.cpp.

◆ DeleteAllTextures()

void glTexFactory::DeleteAllTextures ( void  )

Definition at line 332 of file gl_tex_cache.cpp.

◆ DeleteSomeTextures()

void glTexFactory::DeleteSomeTextures ( long  target)

Definition at line 351 of file gl_tex_cache.cpp.

◆ DeleteTexture()

void glTexFactory::DeleteTexture ( const wxRect &  rect)

Definition at line 322 of file gl_tex_cache.cpp.

◆ FreeSome()

void glTexFactory::FreeSome ( long  target)

Definition at line 373 of file gl_tex_cache.cpp.

◆ GetCenter()

void glTexFactory::GetCenter ( double &  lat,
double &  lon 
)
inline

Definition at line 147 of file gl_tex_cache.h.

◆ GetChartPath()

wxString glTexFactory::GetChartPath ( )
inline

Definition at line 123 of file gl_tex_cache.h.

◆ GetHashKey()

wxString glTexFactory::GetHashKey ( )
inline

Definition at line 124 of file gl_tex_cache.h.

◆ GetLRUTime()

int glTexFactory::GetLRUTime ( )
inline

Definition at line 136 of file gl_tex_cache.h.

◆ GetOrCreateTD()

glTextureDescriptor * glTexFactory::GetOrCreateTD ( const wxRect &  rect)

Definition at line 450 of file gl_tex_cache.cpp.

◆ GetpTD()

glTextureDescriptor * glTexFactory::GetpTD ( wxRect &  rect)

Definition at line 220 of file gl_tex_cache.cpp.

◆ GetTextureLevel()

int glTexFactory::GetTextureLevel ( glTextureDescriptor ptd,
const wxRect &  rect,
int  level,
ColorScheme  color_scheme 
)

Definition at line 902 of file gl_tex_cache.cpp.

◆ GetTiles()

glTexTile ** glTexFactory::GetTiles ( int &  num)
inline

Definition at line 143 of file gl_tex_cache.h.

◆ IsLevelInCache()

bool glTexFactory::IsLevelInCache ( int  level,
const wxRect &  rect,
ColorScheme  color_scheme 
)

Definition at line 436 of file gl_tex_cache.cpp.

◆ OnTimer()

bool glTexFactory::OnTimer ( )

Definition at line 225 of file gl_tex_cache.cpp.

◆ PrepareTexture()

bool glTexFactory::PrepareTexture ( int  base_level,
const wxRect &  rect,
ColorScheme  color_scheme,
int  mem_used 
)

Definition at line 629 of file gl_tex_cache.cpp.

◆ PrepareTiles()

void glTexFactory::PrepareTiles ( const ViewPort vp,
bool  use_norm_vp,
ChartBase pChart 
)

Definition at line 693 of file gl_tex_cache.cpp.

◆ PurgeBackgroundCompressionPool()

void glTexFactory::PurgeBackgroundCompressionPool ( )

Definition at line 395 of file gl_tex_cache.cpp.

◆ SetHashKey()

void glTexFactory::SetHashKey ( wxString  key)
inline

Definition at line 125 of file gl_tex_cache.h.

◆ SetLRUTime()

void glTexFactory::SetLRUTime ( int  lru)
inline

Definition at line 135 of file gl_tex_cache.h.

◆ UpdateCacheAllLevels()

bool glTexFactory::UpdateCacheAllLevels ( const wxRect &  rect,
ColorScheme  color_scheme,
unsigned char **  compcomp_array,
int *  compcomp_size 
)

Definition at line 884 of file gl_tex_cache.cpp.


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