Classes | Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
multires_image::TileCache Class Reference

#include <tile_cache.h>

Inheritance diagram for multires_image::TileCache:
Inheritance graph
[legend]

Classes

class  CacheThread
 
class  FreeThread
 

Public Slots

void DeleteTextureSlot (Tile *)
 
void LoadTextureSlot (Tile *)
 

Signals

void SignalDeleteTexture (Tile *)
 
void SignalLoadTexture (Tile *)
 
void SignalMemorySize (int64_t)
 

Public Member Functions

void Exit ()
 
void Load (Tile *tile)
 
void Precache (const tf::Point &position)
 
void Precache (double x, double y)
 
void SetCurrentLayer (int layer)
 
 TileCache (TileSet *tileSet, QGLWidget *widget)
 
 ~TileCache (void)
 

Private Member Functions

void LoadTexture (Tile *tile)
 
void PrecacheLayer (int layer, const tf::Point &position, int size)
 
void UnloadTexture (Tile *tile)
 

Private Attributes

CacheThread m_cacheThread
 
int32_t m_currentLayer
 
tf::Point m_currentPosition
 
bool m_exit
 
FreeThread m_freeThread
 
int64_t m_memorySize
 
std::vector< std::queue< Tile * > > m_precacheRequests
 
std::map< int64_t, Tile * > m_precacheRequestSet
 
QMutex m_precacheRequestSetLock
 
QMutex m_precacheRequestsLock
 
std::stack< Tile * > m_renderRequests
 
std::map< int64_t, Tile * > m_renderRequestSet
 
QMutex m_renderRequestSetLock
 
QMutex m_renderRequestsLock
 
std::map< int64_t, Tile * > m_textureLoaded
 
QMutex m_textureLoadedLock
 
TileSetm_tileSet
 
QGLWidget * m_widget
 

Friends

class CacheThread
 
class FreeThread
 

Detailed Description

Definition at line 52 of file tile_cache.h.

Constructor & Destructor Documentation

multires_image::TileCache::TileCache ( TileSet tileSet,
QGLWidget *  widget 
)

Definition at line 47 of file tile_cache.cpp.

multires_image::TileCache::~TileCache ( void  )

Definition at line 80 of file tile_cache.cpp.

Member Function Documentation

void multires_image::TileCache::DeleteTextureSlot ( Tile tile)
slot

Definition at line 92 of file tile_cache.cpp.

void multires_image::TileCache::Exit ( )

Definition at line 189 of file tile_cache.cpp.

void multires_image::TileCache::Load ( Tile tile)

Definition at line 97 of file tile_cache.cpp.

void multires_image::TileCache::LoadTexture ( Tile tile)
private

Definition at line 194 of file tile_cache.cpp.

void multires_image::TileCache::LoadTextureSlot ( Tile tile)
slot

Definition at line 87 of file tile_cache.cpp.

void multires_image::TileCache::Precache ( const tf::Point position)

Definition at line 125 of file tile_cache.cpp.

void multires_image::TileCache::Precache ( double  x,
double  y 
)

Definition at line 119 of file tile_cache.cpp.

void multires_image::TileCache::PrecacheLayer ( int  layer,
const tf::Point position,
int  size 
)
private

Definition at line 149 of file tile_cache.cpp.

void multires_image::TileCache::SetCurrentLayer ( int  layer)
inline

Definition at line 64 of file tile_cache.h.

void multires_image::TileCache::SignalDeleteTexture ( Tile )
signal
void multires_image::TileCache::SignalLoadTexture ( Tile )
signal
void multires_image::TileCache::SignalMemorySize ( int64_t  )
signal
void multires_image::TileCache::UnloadTexture ( Tile tile)
private

Definition at line 220 of file tile_cache.cpp.

Friends And Related Function Documentation

friend class CacheThread
friend

Definition at line 104 of file tile_cache.h.

friend class FreeThread
friend

Definition at line 115 of file tile_cache.h.

Member Data Documentation

CacheThread multires_image::TileCache::m_cacheThread
private

Definition at line 117 of file tile_cache.h.

int32_t multires_image::TileCache::m_currentLayer
private

Definition at line 80 of file tile_cache.h.

tf::Point multires_image::TileCache::m_currentPosition
private

Definition at line 81 of file tile_cache.h.

bool multires_image::TileCache::m_exit
private

Definition at line 82 of file tile_cache.h.

FreeThread multires_image::TileCache::m_freeThread
private

Definition at line 118 of file tile_cache.h.

int64_t multires_image::TileCache::m_memorySize
private

Definition at line 83 of file tile_cache.h.

std::vector<std::queue<Tile*> > multires_image::TileCache::m_precacheRequests
private

Definition at line 85 of file tile_cache.h.

std::map<int64_t, Tile*> multires_image::TileCache::m_precacheRequestSet
private

Definition at line 89 of file tile_cache.h.

QMutex multires_image::TileCache::m_precacheRequestSetLock
private

Definition at line 123 of file tile_cache.h.

QMutex multires_image::TileCache::m_precacheRequestsLock
private

Definition at line 122 of file tile_cache.h.

std::stack<Tile*> multires_image::TileCache::m_renderRequests
private

Definition at line 86 of file tile_cache.h.

std::map<int64_t, Tile*> multires_image::TileCache::m_renderRequestSet
private

Definition at line 88 of file tile_cache.h.

QMutex multires_image::TileCache::m_renderRequestSetLock
private

Definition at line 121 of file tile_cache.h.

QMutex multires_image::TileCache::m_renderRequestsLock
private

Definition at line 120 of file tile_cache.h.

std::map<int64_t, Tile*> multires_image::TileCache::m_textureLoaded
private

Definition at line 87 of file tile_cache.h.

QMutex multires_image::TileCache::m_textureLoadedLock
private

Definition at line 124 of file tile_cache.h.

TileSet* multires_image::TileCache::m_tileSet
private

Definition at line 78 of file tile_cache.h.

QGLWidget* multires_image::TileCache::m_widget
private

Definition at line 79 of file tile_cache.h.


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


multires_image
Author(s): Marc Alban
autogenerated on Thu Jun 6 2019 19:25:30