#include <colormapdecorator.h>

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. | |
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.
| dtTerrain::ColorMapDecorator::ColorMapDecorator | ( | const std::string & | name = "ColorMapDecorator" |
) |
Constructs the decoration layer.
| 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.
| 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.