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

◆ TileCache()

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

Definition at line 47 of file tile_cache.cpp.

◆ ~TileCache()

multires_image::TileCache::~TileCache ( void  )

Definition at line 80 of file tile_cache.cpp.

Member Function Documentation

◆ DeleteTextureSlot

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

Definition at line 92 of file tile_cache.cpp.

◆ Exit()

void multires_image::TileCache::Exit ( )

Definition at line 189 of file tile_cache.cpp.

◆ Load()

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

Definition at line 97 of file tile_cache.cpp.

◆ LoadTexture()

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

Definition at line 194 of file tile_cache.cpp.

◆ LoadTextureSlot

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

Definition at line 87 of file tile_cache.cpp.

◆ Precache() [1/2]

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

Definition at line 125 of file tile_cache.cpp.

◆ Precache() [2/2]

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

Definition at line 119 of file tile_cache.cpp.

◆ PrecacheLayer()

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

Definition at line 149 of file tile_cache.cpp.

◆ SetCurrentLayer()

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

Definition at line 64 of file tile_cache.h.

◆ SignalDeleteTexture

void multires_image::TileCache::SignalDeleteTexture ( Tile )
signal

◆ SignalLoadTexture

void multires_image::TileCache::SignalLoadTexture ( Tile )
signal

◆ SignalMemorySize

void multires_image::TileCache::SignalMemorySize ( int64_t  )
signal

◆ UnloadTexture()

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

Definition at line 220 of file tile_cache.cpp.

Friends And Related Function Documentation

◆ CacheThread

friend class CacheThread
friend

Definition at line 104 of file tile_cache.h.

◆ FreeThread

friend class FreeThread
friend

Definition at line 115 of file tile_cache.h.

Member Data Documentation

◆ m_cacheThread

CacheThread multires_image::TileCache::m_cacheThread
private

Definition at line 117 of file tile_cache.h.

◆ m_currentLayer

int32_t multires_image::TileCache::m_currentLayer
private

Definition at line 80 of file tile_cache.h.

◆ m_currentPosition

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

Definition at line 81 of file tile_cache.h.

◆ m_exit

bool multires_image::TileCache::m_exit
private

Definition at line 82 of file tile_cache.h.

◆ m_freeThread

FreeThread multires_image::TileCache::m_freeThread
private

Definition at line 118 of file tile_cache.h.

◆ m_memorySize

int64_t multires_image::TileCache::m_memorySize
private

Definition at line 83 of file tile_cache.h.

◆ m_precacheRequests

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

Definition at line 85 of file tile_cache.h.

◆ m_precacheRequestSet

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

Definition at line 89 of file tile_cache.h.

◆ m_precacheRequestSetLock

QMutex multires_image::TileCache::m_precacheRequestSetLock
private

Definition at line 123 of file tile_cache.h.

◆ m_precacheRequestsLock

QMutex multires_image::TileCache::m_precacheRequestsLock
private

Definition at line 122 of file tile_cache.h.

◆ m_renderRequests

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

Definition at line 86 of file tile_cache.h.

◆ m_renderRequestSet

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

Definition at line 88 of file tile_cache.h.

◆ m_renderRequestSetLock

QMutex multires_image::TileCache::m_renderRequestSetLock
private

Definition at line 121 of file tile_cache.h.

◆ m_renderRequestsLock

QMutex multires_image::TileCache::m_renderRequestsLock
private

Definition at line 120 of file tile_cache.h.

◆ m_textureLoaded

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

Definition at line 87 of file tile_cache.h.

◆ m_textureLoadedLock

QMutex multires_image::TileCache::m_textureLoadedLock
private

Definition at line 124 of file tile_cache.h.

◆ m_tileSet

TileSet* multires_image::TileCache::m_tileSet
private

Definition at line 78 of file tile_cache.h.

◆ m_widget

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 Sun Sep 8 2024 02:27:21