dtTerrain::ColorMapDecorator Class Reference

This terrain decorator is a terrain tile base texture decorator. More...

#include <colormapdecorator.h>

Inheritance diagram for dtTerrain::ColorMapDecorator:

dtTerrain::TerrainDecorationLayer dtCore::Base

List of all members.

Public Member Functions

 ColorMapDecorator (const std::string &name="ColorMapDecorator")
 Constructs the decoration layer.
virtual void OnLoadTerrainTile (PagedTerrainTile &tile)
 Generates a base texture map for this tile using the current height-color mapping assigned to this decorator.
virtual osg::Node * GetOSGNode ()
 Since this decorator does not add any geometry to the terrain, just return NULL here.


Detailed Description

This terrain decorator is a terrain tile base texture decorator.

It calculates a texture map for the tile based on its height field. Color values may be mapped to specific height values. All color values falling between these posts are interpolated forming a smooth gradient.


Constructor & Destructor Documentation

dtTerrain::ColorMapDecorator::ColorMapDecorator ( const std::string &  name = "ColorMapDecorator"  ) 

Constructs the decoration layer.


Member Function Documentation

void dtTerrain::ColorMapDecorator::OnLoadTerrainTile ( PagedTerrainTile tile  )  [virtual]

Generates a base texture map for this tile using the current height-color mapping assigned to this decorator.

Parameters:
tile The tile with which to generate the base texture.

Implements dtTerrain::TerrainDecorationLayer.

virtual osg::Node* dtTerrain::ColorMapDecorator::GetOSGNode (  )  [inline, virtual]

Since this decorator does not add any geometry to the terrain, just return NULL here.

Implements dtTerrain::TerrainDecorationLayer.


http://www.delta3d.org
2.0.0 generated 14 Feb 2008