deTerrainHeightModifier Class Reference

Terrain Height Modifier. More...

#include <deTerrainHeightModifier.h>

List of all members.

Public Member Functions

Constructors and Destructors
 deTerrainHeightModifier (deImage *heightImage)
 Creates a new height modifier.
 ~deTerrainHeightModifier ()
 Cleans up the height modifier.
Management
const decPointGetPosition () const
 Retrieves the position of the upper left corner.
void SetPosition (const decPoint &position)
 Sets the position of the upper left corner.
float GetScaling () const
 Retrieves the scaling.
void SetScaling (float scaling)
 Sets the scaling.
deImageGetHeightImage () const
 Retrieves the height image.

Detailed Description

Terrain Height Modifier.

Defines a small grid of height modifiers. The grid is overlayed on an existing height map terrain mesh and alters the heights by adding a height difference from an image. Height modifiers can protrude outside the the original height map. All points outside the valid range are ignored. The height modifier works similar to the height map itself. The position is the upper left corner of the height modifier which is on the negative X and positive Z side if looked from the terrain.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

deTerrainHeightModifier::deTerrainHeightModifier ( deImage heightImage )

Creates a new height modifier.

deTerrainHeightModifier::~deTerrainHeightModifier (  )

Cleans up the height modifier.


Member Function Documentation

deImage* deTerrainHeightModifier::GetHeightImage (  ) const [inline]

Retrieves the height image.

const decPoint& deTerrainHeightModifier::GetPosition (  ) const [inline]

Retrieves the position of the upper left corner.

float deTerrainHeightModifier::GetScaling (  ) const [inline]

Retrieves the scaling.

void deTerrainHeightModifier::SetPosition ( const decPoint position )

Sets the position of the upper left corner.

void deTerrainHeightModifier::SetScaling ( float  scaling )

Sets the scaling.


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