#include <geotiffdecorator.h>

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 () |
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.
| dtTerrain::GeoTiffDecorator::GeoTiffDecorator | ( | const std::string & | name = "GeoTiffDecorator" |
) |
Constructs the decoration layer.
| virtual dtTerrain::GeoTiffDecorator::~GeoTiffDecorator | ( | ) | [inline, protected, virtual] |
| 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.
| 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.