Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

HeightMapLoader Class Reference

#include <HeightMapLoader.h>

Inheritance diagram for HeightMapLoader:

[legend]
Collaboration diagram for HeightMapLoader:
[legend]
List of all members.

Public Methods

 HeightMapLoader (string filename, int width, int height)
virtual ~HeightMapLoader ()
virtual void load ()
int getHeight (int x, int z)
virtual int getHeight2 (int x, int z)
int getScaleSize ()
int getWidthDimension ()
int getHeightDimension ()

Protected Methods

void buildTriangles ()
void buildSquares ()
void decimate ()
void decimate2 ()
void decimate3 ()
void decimateRepeat ()
void triangulate ()
vector< int > findIndiciesAtVerticie (Vector3 v)

Protected Attributes

int _width
int _height
int * _data
int _scaleSize
int _scaleHeight
vector< Vector3_facesTmp

Detailed Description

Loads Height Maps (grayscale .raw files)

author: Line72: dillavou@uab.edu


Constructor & Destructor Documentation

HeightMapLoader::HeightMapLoader string    filename,
int    width,
int    height
 

HeightMapLoader::~HeightMapLoader   [virtual]
 


Member Function Documentation

void HeightMapLoader::buildSquares   [protected]
 

build everything in squares for decimation

void HeightMapLoader::buildTriangles   [protected]
 

build the triangle strips normals, and uv coords

void HeightMapLoader::decimate   [protected]
 

Simplifies the terrain

void HeightMapLoader::decimate2   [protected]
 

void HeightMapLoader::decimate3   [protected]
 

void HeightMapLoader::decimateRepeat   [protected]
 

vector< int > HeightMapLoader::findIndiciesAtVerticie Vector3    v [protected]
 

int HeightMapLoader::getHeight int    x,
int    z
 

get the height at a certain point

int HeightMapLoader::getHeight2 int    x,
int    z
[virtual]
 

get the height at a certain point with the scale size calculated in

int HeightMapLoader::getHeightDimension   [inline]
 

int HeightMapLoader::getScaleSize   [inline]
 

int HeightMapLoader::getWidthDimension   [inline]
 

void HeightMapLoader::load   [virtual]
 

Load the height map

Implements FileLoader.

void HeightMapLoader::triangulate   [protected]
 

convert the squares into triangles


Member Data Documentation

int* HeightMapLoader::_data [protected]
 

vector< Vector3 > HeightMapLoader::_facesTmp [protected]
 

int HeightMapLoader::_height [protected]
 

int HeightMapLoader::_scaleHeight [protected]
 

int HeightMapLoader::_scaleSize [protected]
 

int HeightMapLoader::_width [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Apr 21 11:11:10 2004 for naturecalls by doxygen1.2.18