FlightGear next
|
#include <tilecache.hxx>
Public Types | |
typedef std::map< long, TileEntry * > | tile_map |
typedef tile_map::iterator | tile_map_iterator |
typedef tile_map::const_iterator | const_tile_map_iterator |
Public Member Functions | |
tile_map_iterator | begin () |
tile_map_iterator | end () |
const_tile_map_iterator | begin () const |
const_tile_map_iterator | end () const |
TileCache () | |
~TileCache () | |
void | init (void) |
bool | exists_stg (const SGBucket &b) const |
bool | exists_vpb (const SGBucket &b) const |
long | get_drop_tile () |
long | get_first_expired_tile () const |
void | clear_current_view () |
void | clear_entry (long cache_entry) |
void | clear_cache () |
TileEntry * | get_tile (const long tile_index) const |
STGTileEntry * | get_stg_tile (const SGBucket &b) const |
VPBTileEntry * | get_vpb_tile (const SGBucket &b) const |
size_t | get_size () const |
void | reset_traversal () |
bool | at_end () |
TileEntry * | get_current () const |
void | next () |
int | get_max_cache_size () const |
void | set_max_cache_size (int m) |
bool | insert_tile (STGTileEntry *e) |
Create a new tile and enqueue it for loading. | |
bool | insert_tile (VPBTileEntry *e) |
Create a new tile and schedule it for loading. | |
void | set_current_time (double val) |
double | get_current_time () const |
void | request_tile (TileEntry *t, float priority, bool current_view, double requesttime) |
Definition at line 33 of file tilecache.hxx.
typedef tile_map::const_iterator TileCache::const_tile_map_iterator |
Definition at line 37 of file tilecache.hxx.
typedef std::map< long, TileEntry * > TileCache::tile_map |
Definition at line 35 of file tilecache.hxx.
typedef tile_map::iterator TileCache::tile_map_iterator |
Definition at line 36 of file tilecache.hxx.
TileCache::TileCache | ( | void | ) |
Definition at line 34 of file tilecache.cxx.
TileCache::~TileCache | ( | void | ) |
Definition at line 41 of file tilecache.cxx.
|
inline |
Definition at line 106 of file tilecache.hxx.
|
inline |
Definition at line 54 of file tilecache.hxx.
|
inline |
Definition at line 56 of file tilecache.hxx.
void TileCache::clear_cache | ( | ) |
Definition at line 180 of file tilecache.cxx.
void TileCache::clear_current_view | ( | ) |
Definition at line 156 of file tilecache.cxx.
void TileCache::clear_entry | ( | long | cache_entry | ) |
Definition at line 174 of file tilecache.cxx.
|
inline |
Definition at line 55 of file tilecache.hxx.
|
inline |
Definition at line 57 of file tilecache.hxx.
bool TileCache::exists_stg | ( | const SGBucket & | b | ) | const |
Definition at line 78 of file tilecache.cxx.
bool TileCache::exists_vpb | ( | const SGBucket & | b | ) | const |
Definition at line 85 of file tilecache.cxx.
|
inline |
Definition at line 107 of file tilecache.hxx.
|
inline |
Definition at line 125 of file tilecache.hxx.
long TileCache::get_drop_tile | ( | ) |
Definition at line 96 of file tilecache.cxx.
long TileCache::get_first_expired_tile | ( | ) | const |
Definition at line 138 of file tilecache.cxx.
|
inline |
Definition at line 113 of file tilecache.hxx.
|
inline |
Definition at line 102 of file tilecache.hxx.
STGTileEntry * TileCache::get_stg_tile | ( | const SGBucket & | b | ) | const |
Definition at line 249 of file tilecache.cxx.
|
inline |
Definition at line 89 of file tilecache.hxx.
VPBTileEntry * TileCache::get_vpb_tile | ( | const SGBucket & | b | ) | const |
Definition at line 263 of file tilecache.cxx.
void TileCache::init | ( | void | ) |
Definition at line 63 of file tilecache.cxx.
bool TileCache::insert_tile | ( | STGTileEntry * | e | ) |
Create a new tile and enqueue it for loading.
Create a new tile and schedule it for loading.
b |
Definition at line 202 of file tilecache.cxx.
bool TileCache::insert_tile | ( | VPBTileEntry * | e | ) |
Create a new tile and schedule it for loading.
VPB version, with negative index.
Definition at line 214 of file tilecache.cxx.
|
inline |
Definition at line 111 of file tilecache.hxx.
void TileCache::request_tile | ( | TileEntry * | t, |
float | priority, | ||
bool | current_view, | ||
double | requesttime ) |
Definition at line 225 of file tilecache.cxx.
|
inline |
Definition at line 105 of file tilecache.hxx.
|
inline |
Definition at line 124 of file tilecache.hxx.
|
inline |
Definition at line 114 of file tilecache.hxx.