![]() |
MapLink Pro 11.1.2.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
A basic compositor, which stores the visibility of a set of viewsheds.
This compositor requires a TSLTerrainVSOutput object, in order to store the results.
When the View Sheds are being calculated they will all need to call this compositor, which will perform an OR on any visible pixel.
Public Member Functions | |
TSLTerrainVSCompositorCumulativeVisibility (TSLTerrainVSOutput *output) | |
virtual void | setData (unsigned int x, unsigned int y, TSLTerrainVSVisibility visibility, double terrainHeight, const TSLTerrainVSAlgorithm::Parameters &viewshedParameters) |
TSLTerrainVSVisibility | getData (unsigned int x, unsigned int y) |
virtual bool | valid (const TSLTerrainVSAlgorithm::Parameters ¶ms) |
![]() | |
void | inc () |
void | dec () |
Additional Inherited Members | |
![]() | |
TSLTerrainVSCompositor (const TSLTerrainVSCompositor &other) | |
TSLTerrainVSCompositor () | |
virtual | ~TSLTerrainVSCompositor () |
TSLTerrainVSCompositorCumulativeVisibility::TSLTerrainVSCompositorCumulativeVisibility | ( | TSLTerrainVSOutput * | output | ) |
TSLTerrainVSVisibility TSLTerrainVSCompositorCumulativeVisibility::getData | ( | unsigned int | x, |
unsigned int | y ) |
Query a value from the output data, as a visibility enum
|
virtual |
This method is called by the viewshed algorithm, each time a point has been processed.
This compositor will store the visibility argument in the output array. The other arguments will not be stored.
x | The x offset of the point, from the bottom-left of the input data. |
y | The y offset of the point, from the bottom-left of the input data. |
visibility | An enum which specifies whether this point is visible/not visible from the centre of the viewshed, or that there was no input data available for this point. |
terrainHeight | The height of the terrain at this point, read from the input object. |
viewshedParameters | The parameters of the current viewshed operation. |
Implements TSLTerrainVSCompositor.
|
virtual |
This method will be called by the viewshed algorithm, to provide the compositor with a mechanism for initialisation, and an opportunite to terminate the viewshed calculation if required.
The map unit extent that the viewshed will be calculated for can be retrieved via params.m_viewShedMUExtent. This may not be the same as the input object's extent, or the requested extent (based on center point and maxRadius).
params | The parameters of the viewshed operation. |
The TSLTerrainVSCompositorVisibility object will always return true from this method. Any provided output object must be capable of recieving data for the entire input data extent.
Implements TSLTerrainVSCompositor.