#include <src/Terrain.h>
Inheritance diagram for Terrain:


Public Member Functions | |
| Terrain (double worldSize, double maxHeight, int level, double persistance=0.5, double power=1.0) | |
| virtual double | getFloorZ (const double x, const double y) |
| Returns the Z coordinate of the floor at the given (x,y) world coordinate. | |
| virtual osg::Vec3d | getFloorNormal (const double x, const double y) |
| Returns the normal of the floor at the given (x,y) world coordinate. | |
| osg::Group * | drawNormals (osg::Group *normalGroup=0) |
| Draw the terrain normals. | |
| double | getWorldSize () const |
| double | getHalfWorldSize () const |
| double | getMaxHeight () const |
| const double * | getData () const |
| const osg::Vec3Array * | getNormals () const |
| double | getDataArraySize () const |
| double | getNormalsArraySize () const |
Protected Member Functions | |
| double | wrapDataEdge (int x, int y) |
Protected Attributes | |
| double | worldSize |
| double | halfWorldSize |
| double | invWorldSize_dsize |
| double | maxHeight |
| double | persistance |
| double | power |
| int | dsize |
| int | dsizep1 |
| int | level |
| int | dsizeMask |
| double * | data |
| osg::Vec3Array * | normals |
| osg::Vec4Array * | colorArray |
|
|
Draw the terrain normals.
|
|
||||||||||||
|
Returns the normal of the floor at the given (x,y) world coordinate. If outside, propagate the border value Implements TerrainInterface. |
|
||||||||||||
|
Returns the Z coordinate of the floor at the given (x,y) world coordinate. If outside, propagate the border value Implements TerrainInterface. |
1.4.1