dtTerrain::GeoTiffDecorator Class Reference

This class is a terrain texturing decorator that supports the mapping of geospecific images onto terrain tiles. More...

#include <geotiffdecorator.h>

Inheritance diagram for dtTerrain::GeoTiffDecorator:

dtTerrain::TerrainDecorationLayer dtCore::Base

List of all members.

Public Member Functions

 GeoTiffDecorator (const std::string &name="GeoTiffDecorator")
 Constructs the decoration layer.
virtual void OnLoadTerrainTile (PagedTerrainTile &tile)
 Based on the currently registered geo tiff images, this method will generate a base texture and assign it to the tile.
virtual osg::Node * GetOSGNode ()
 Since this decorator does not add any geometry to the terrain, just return NULL here.
void AddGeoSpecificImage (const std::string &fileName)
 Adds a new geo tiff image to the decorator.
void LoadAllGeoSpecificImages ()
 Loads any images in the image list.
osg::Image * CalculateBaseImage (int lat, int lon)
 Calculates an image based on the curret geospecific image set.
void SetResultingImageDimensions (unsigned int w, unsigned int h)
 Sets the image dimensions for the resulting terrain tile base texture.

Protected Member Functions

virtual ~GeoTiffDecorator ()


Detailed Description

This class is a terrain texturing decorator that supports the mapping of geospecific images onto terrain tiles.

A user may add as many geospecific images as they wish and the appropriate image region will be loaded and assigned to the terrain tile as needed.


Constructor & Destructor Documentation

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

Constructs the decoration layer.

virtual dtTerrain::GeoTiffDecorator::~GeoTiffDecorator (  )  [inline, protected, virtual]


Member Function Documentation

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

Based on the currently registered geo tiff images, this method will generate a base texture and assign it to the tile.

Implements dtTerrain::TerrainDecorationLayer.

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

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

Implements dtTerrain::TerrainDecorationLayer.

void dtTerrain::GeoTiffDecorator::AddGeoSpecificImage ( const std::string &  fileName  )  [inline]

Adds a new geo tiff image to the decorator.

void dtTerrain::GeoTiffDecorator::LoadAllGeoSpecificImages (  ) 

Loads any images in the image list.

osg::Image * dtTerrain::GeoTiffDecorator::CalculateBaseImage ( int  lat,
int  lon 
)

Calculates an image based on the curret geospecific image set.

Parameters:
lat The latitude to build an image for.
lon The longitude to build an image for.

void dtTerrain::GeoTiffDecorator::SetResultingImageDimensions ( unsigned int  w,
unsigned int  h 
) [inline]

Sets the image dimensions for the resulting terrain tile base texture.


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