![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
Public Member Functions | |
TSLTerrainVSInputTerrainDatabase (TSLTerrainDatabase *database, TSLMUExtent displayExtent, unsigned int displayWidth, unsigned int displayHeight) | |
virtual bool | getData (unsigned int x, unsigned int y, double &value, const TSLTerrainVSAlgorithm::Parameters ¶ms) |
void | displayParameters (TSLMUExtent displayExtent, unsigned int displayWidth, unsigned int displayHeight) |
virtual bool | valid (const TSLTerrainVSAlgorithm::Parameters ¶ms) const |
void | cacheLimit (unsigned int limit) |
virtual void | processFinished () |
virtual const TSLCoordinateSystem * | coordinateSystem () |
![]() | |
virtual TSLMUExtent | queryExtent () const |
virtual unsigned int | width () const |
virtual unsigned int | height () const |
void | inc () |
void | dec () |
virtual bool | offsetToLatLong (unsigned int x, unsigned int y, double &lat, double &lon) |
virtual bool | offsetToMU (unsigned int x, unsigned int y, double &muX, double &muY) |
virtual bool | MUToOffset (double muX, double muY, unsigned int &x, unsigned int &y) |
virtual bool | LatLongToOffset (double lat, double lon, unsigned int &x, unsigned int &y) |
virtual double | postDistanceX () |
virtual double | postDistanceY () |
Additional Inherited Members | |
![]() | |
TSLTerrainVSInput (unsigned int width, unsigned int height, TSLMUExtent extent, TSLCoordinateSystem *coordinateSystem) | |
TSLTerrainVSInput () | |
TSLTerrainVSInput (const TSLTerrainVSInput &other) | |
virtual | ~TSLTerrainVSInput () |
![]() | |
unsigned int | m_width |
unsigned int | m_height |
TSLCoordinateSystem * | m_coordinateSystem |
double | m_postDistanceX |
double | m_postDistanceY |
TSLMUExtent | m_extent |
TSLTerrainVSInputTerrainDatabase::TSLTerrainVSInputTerrainDatabase | ( | TSLTerrainDatabase * | database, |
TSLMUExtent | displayExtent, | ||
unsigned int | displayWidth, | ||
unsigned int | displayHeight ) |
Constructor.
Initialises the base parameters of the input object.
The displayExtent, width and height are used to select an appropriate layer, and data resolution from the terrain database.
database | The TSLTerrainDatabase to read input data from. The application is responsible for deleting this object. |
displayExtent | The extent currently displayed by an application |
displayWidth | The width of an application's current display |
displayHeight | The height of an application's current display |
void TSLTerrainVSInputTerrainDatabase::cacheLimit | ( | unsigned int | limit | ) |
Set the maximum size of the cache, in MB.
The initial cache size limit is 64MB.
|
virtual |
Query the coordinate system of the input data.
This object must provide a coordinate system in order for viewshed operations, and any height adjustment calculations to be valid.
Reimplemented from TSLTerrainVSInput.
void TSLTerrainVSInputTerrainDatabase::displayParameters | ( | TSLMUExtent | displayExtent, |
unsigned int | displayWidth, | ||
unsigned int | displayHeight ) |
Constructor.
Initialises the base parameters of the input object.
The displayExtent, width and height are used to select an appropriate layer, and data resolution from the terrain database.
displayExtent | The extent currently displayed by an application |
displayWidth | The width of an application's current display |
displayHeight | The height of an application's current display |
|
virtual |
Query a height value from the input data.
If the valid() method has returned false, this method will never be called by the viewshed algorithm.
The location given to this method is specified as an offset, from the bottom-left of the data.
This method should set the value parameter to the requested height value, and return true. If there is no height data available for the requested location this method should return false.
x | The x offset to query |
y | The y offset to query |
value | Storage for the height value |
params | The parameters of the viewshed operation |
Implements TSLTerrainVSInput.
|
virtual |
This method will be called by the viewshed algorithm when the viewshed calculation has finished.
This object uses this method to cleanup the per-thread storage used in the caching mechanism.
Implements TSLTerrainVSInput.
|
virtual |
This method will be called by the viewshed algorithm, to provide the input object with a mechanism for initialisation, and an opportunity to terminate the viewshed calculation if required.
The extent provided by params.m_viewShedMUExtent should not be considered valid during this call, as it will not have been fully calculated.
The TSLTerrainVSInputTerrainDatabase object is considered valid if: The provided TSLTerrainDatabase is not empty. The provided TSLTerrainDatabase contains data, for the provided extent.
params | The parameters of the viewshed operation. |
Implements TSLTerrainVSInput.