Tile Class Reference

#include <Tile.h>

List of all members.

Public Member Functions

 Tile (int _x, int _y, int _lod, TerrainDatabase *_database=0)
 ~Tile ()
void Init (int _size, int _imageSize, int _x, int _y, int _lod, float _pixelSize=1., TerrainDatabase *_database=0)
void ImportHeightmap (float *map, int stride=0)
void AllocateHeightmap ()
void AllocateBitmap ()
void CreateStateSet ()
float GetHeight (int _x, int _y)
int LODMultiplier (int _lod)

Public Attributes

int size
int imageSize
int lod
int x
int y
int dataSize
byte * bitmap
float * heightmap
float pixelSize
float diameter
osg::ref_ptr< osg::StateSet > stateset

Constructor & Destructor Documentation

Tile::Tile ( int  _x,
int  _y,
int  _lod,
TerrainDatabase _database = 0 
)
Tile::~Tile (  ) 

Member Function Documentation

void Tile::AllocateBitmap (  ) 
void Tile::AllocateHeightmap (  ) 
void Tile::CreateStateSet (  ) 
float Tile::GetHeight ( int  _x,
int  _y 
)
void Tile::ImportHeightmap ( float *  map,
int  stride = 0 
)
void Tile::Init ( int  _size,
int  _imageSize,
int  _x,
int  _y,
int  _lod,
float  _pixelSize = 1.,
TerrainDatabase _database = 0 
)
int Tile::LODMultiplier ( int  _lod  ) 

Member Data Documentation

byte* Tile::bitmap
int Tile::lod
osg::ref_ptr<osg::StateSet> Tile::stateset
int Tile::x
int Tile::y

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

Generated on Thu Jan 14 20:50:13 2010 for TerrainEditor by  doxygen 1.6.1