Logo Search packages:      
Sourcecode: gaia version File versions  Download package

TextureTile Class Reference

#include <TextureTile.h>

Inheritance diagram for TextureTile:

Tile

List of all members.


Detailed Description

Tile containing one image of earth surface.

Texture tiles are intended to be organized as quadtree. TextureTile is wrapper around actual Texture object.

Definition at line 35 of file TextureTile.h.


Public Member Functions

ticks_t GetAge ()
int GetLevel ()
TextureTilePtr GetParent ()
virtual int GetType ()
int GetX ()
int GetY ()
int IsLoaded ()
virtual int IsNull ()
int IsOld ()
virtual int IsReady ()
virtual int IsSaveable ()
void Load (RawBuffer *data, int keep)
virtual void Null ()
virtual RawBufferReleaseRawData ()
void SetTexture ()
 TextureTile (int x, int y, int level, TextureTilePtr parent)
void Touch ()
void Unload ()
virtual ~TextureTile ()

Protected Member Functions

unsigned int DecRef ()
TextureTilePtr GetChild (int x, int y)
TextureTilePtr GetChild (int n)
unsigned int IncRef ()
int IsLeaf ()
void SetChild (int x, int y, TextureTilePtr child)
void SetChild (int n, TextureTilePtr child)

Protected Attributes

TextureTilePtr m_Child [4]
 Child tiles in quadtree.
int m_IsNull
 Indicates whether this tile is know to not exist.
ticks_t m_LastUsed
 Last time the tile was used.
int m_Level
 Level. Range is [0..] (actually [0..18]).
TextureTilePtr m_Parent
 Parent tile in quadtree.
RawBufferm_RawData
 Raw (compressed) data stored to be saved later.
unsigned int m_RefCount
 Reference counter, see SmartPtr.
pthread_mutex_t m_RefCountMutex
 Mutex to protect refcount.
int m_X
 X coordinate. Range is [0..(2^level)-1].
int m_Y
 Y coordinate. Range is [0..(2^level)-1].

Private Attributes

Texturem_Texture
 The texture itself.

Friends

class SmartPtr< TextureTile >
class WorldWindTileManager

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

Generated by  Doxygen 1.6.0   Back to index