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 109 of file glTexCache.h.

Constructor & Destructor Documentation

◆ glTexFactory()

glTexFactory::glTexFactory ( ChartBase chart,
int  raster_format 
)

Definition at line 159 of file glTexCache.cpp.

◆ ~glTexFactory()

glTexFactory::~glTexFactory ( )

Definition at line 207 of file glTexCache.cpp.

Member Function Documentation

◆ AccumulateMemStatistics()

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

Definition at line 320 of file glTexCache.cpp.

◆ BackgroundCompressionAsJob()

bool glTexFactory::BackgroundCompressionAsJob ( ) const

Definition at line 401 of file glTexCache.cpp.

◆ BuildTexture()

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

Definition at line 497 of file glTexCache.cpp.

◆ DeleteAllDescriptors()

void glTexFactory::DeleteAllDescriptors ( void  )

Definition at line 391 of file glTexCache.cpp.

◆ DeleteAllTextures()

void glTexFactory::DeleteAllTextures ( void  )

Definition at line 342 of file glTexCache.cpp.

◆ DeleteSomeTextures()

void glTexFactory::DeleteSomeTextures ( long  target)

Definition at line 361 of file glTexCache.cpp.

◆ DeleteTexture()

void glTexFactory::DeleteTexture ( const wxRect &  rect)

Definition at line 332 of file glTexCache.cpp.

◆ FreeSome()

void glTexFactory::FreeSome ( long  target)

Definition at line 383 of file glTexCache.cpp.

◆ GetCenter()

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

Definition at line 148 of file glTexCache.h.

◆ GetChartPath()

wxString glTexFactory::GetChartPath ( )
inline

Definition at line 124 of file glTexCache.h.

◆ GetHashKey()

wxString glTexFactory::GetHashKey ( )
inline

Definition at line 125 of file glTexCache.h.

◆ GetLRUTime()

int glTexFactory::GetLRUTime ( )
inline

Definition at line 137 of file glTexCache.h.

◆ GetOrCreateTD()

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

Definition at line 460 of file glTexCache.cpp.

◆ GetpTD()

glTextureDescriptor * glTexFactory::GetpTD ( wxRect &  rect)

Definition at line 230 of file glTexCache.cpp.

◆ GetTextureLevel()

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

Definition at line 912 of file glTexCache.cpp.

◆ GetTiles()

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

Definition at line 144 of file glTexCache.h.

◆ IsLevelInCache()

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

Definition at line 446 of file glTexCache.cpp.

◆ OnTimer()

bool glTexFactory::OnTimer ( )

Definition at line 235 of file glTexCache.cpp.

◆ PrepareTexture()

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

Definition at line 639 of file glTexCache.cpp.

◆ PrepareTiles()

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

Definition at line 703 of file glTexCache.cpp.

◆ PurgeBackgroundCompressionPool()

void glTexFactory::PurgeBackgroundCompressionPool ( )

Definition at line 405 of file glTexCache.cpp.

◆ SetHashKey()

void glTexFactory::SetHashKey ( wxString  key)
inline

Definition at line 126 of file glTexCache.h.

◆ SetLRUTime()

void glTexFactory::SetLRUTime ( int  lru)
inline

Definition at line 136 of file glTexCache.h.

◆ UpdateCacheAllLevels()

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

Definition at line 894 of file glTexCache.cpp.


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