![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
A basic compositor, which stores the visibility of each point of the viewshed.
This compositor requires a TSLTerrainVSOutput object, in order to store results. This object must be initialised with the dataType TSLTerrainVSOutput::type TSLTerrainVSVisibility.
Public Member Functions | |
TSLTerrainVSCompositorVisibility (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 () |
TSLTerrainVSCompositorVisibility::TSLTerrainVSCompositorVisibility | ( | TSLTerrainVSOutput * | output | ) |
TSLTerrainVSVisibility TSLTerrainVSCompositorVisibility::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.