VTK
|
#include <vtkOpenGLContextDevice2DPrivate.h>
Classes | |
struct | CacheData |
struct | CacheElement |
Public Member Functions | |
CacheData & | GetCacheData (const Key &key) |
CacheData & | GetCacheData (const Key &key) |
vtkTextureImageCache () | |
bool | IsKeyInCache (const Key &key) const |
void | ReleaseGraphicsResources (vtkWindow *window) |
vtkTextureImageCache () | |
bool | IsKeyInCache (const Key &key) const |
void | ReleaseGraphicsResources (vtkWindow *window) |
Protected Member Functions | |
CacheData & | AddCacheData (const Key &key, const CacheData &cacheData) |
CacheData & | AddCacheData (const Key &key, const CacheData &cacheData) |
Protected Attributes | |
std::list< CacheElement > | Cache |
size_t | MaxSize |
Definition at line 53 of file vtkOpenGLContextDevice2DPrivate.h.
vtkTextureImageCache< Key >::vtkTextureImageCache | ( | ) | [inline] |
Construct a texture image cache with a maximum number of texture of
Definition at line 95 of file vtkOpenGLContextDevice2DPrivate.h.
vtkTextureImageCache< Key >::vtkTextureImageCache | ( | ) | [inline] |
Construct a texture image cache with a maximum number of texture of
Definition at line 95 of file vtkOpenGLContextDevice2DPrivate.h.
bool vtkTextureImageCache< Key >::IsKeyInCache | ( | const Key & | key | ) | const [inline] |
Search the cache list to see if a given key already exists. Returns true if the key is found, false otherwise.
Definition at line 104 of file vtkOpenGLContextDevice2DPrivate.h.
vtkTextureImageCache< Key >::CacheData & vtkTextureImageCache< Key >::GetCacheData | ( | const Key & | key | ) |
Return the cache associated to a key. If the key doesn't exist yet in the cache list, create a new cache. The returned cache is moved at the beginning of the cache list for faster search next time. The most use cache is faster to be searched.
Definition at line 155 of file vtkOpenGLContextDevice2DPrivate.h.
void vtkTextureImageCache< Key >::ReleaseGraphicsResources | ( | vtkWindow * | window | ) | [inline] |
Release all the OpenGL Pixel Buffer Object(PBO) associated with the textures of the cache list.
Definition at line 119 of file vtkOpenGLContextDevice2DPrivate.h.
CacheData& vtkTextureImageCache< Key >::AddCacheData | ( | const Key & | key, |
const CacheData & | cacheData | ||
) | [inline, protected] |
Add a new cache entry into the cache list. Enforce the MaxSize size of the list by removing the least used cache if needed.
Definition at line 133 of file vtkOpenGLContextDevice2DPrivate.h.
bool vtkTextureImageCache< Key >::IsKeyInCache | ( | const Key & | key | ) | const [inline] |
Search the cache list to see if a given key already exists. Returns true if the key is found, false otherwise.
Definition at line 104 of file vtkOpenGLContextDevice2DPrivate.h.
CacheData& vtkTextureImageCache< Key >::GetCacheData | ( | const Key & | key | ) |
Return the cache associated to a key. If the key doesn't exist yet in the cache list, create a new cache. The returned cache is moved at the beginning of the cache list for faster search next time. The most use cache is faster to be searched.
void vtkTextureImageCache< Key >::ReleaseGraphicsResources | ( | vtkWindow * | window | ) | [inline] |
Release all the OpenGL Pixel Buffer Object(PBO) associated with the textures of the cache list.
Definition at line 119 of file vtkOpenGLContextDevice2DPrivate.h.
CacheData& vtkTextureImageCache< Key >::AddCacheData | ( | const Key & | key, |
const CacheData & | cacheData | ||
) | [inline, protected] |
Add a new cache entry into the cache list. Enforce the MaxSize size of the list by removing the least used cache if needed.
Definition at line 133 of file vtkOpenGLContextDevice2DPrivate.h.
std::list< CacheElement > vtkTextureImageCache< Key >::Cache [protected] |
List of a pair of key and cache data.
Definition at line 146 of file vtkOpenGLContextDevice2DPrivate.h.
size_t vtkTextureImageCache< Key >::MaxSize [protected] |
Maximum size the cache list can be.
Definition at line 149 of file vtkOpenGLContextDevice2DPrivate.h.