![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
An Observer encapsulates the parameters necessary to perform a viewshed operation.
Multiple Observers may be added to the datalayer. Each Observer within the layer will result in a viewshed calculation being performed and displayed by the data layer.
Public Member Functions | |
Observer () | |
Constructor. | |
Observer (const TSLMUCoord &position, double startHeight, bool startHeightRelativeToGround, double maxRadius) | |
Constructor. | |
Observer (const Observer &other) | |
Copy constructor. | |
~Observer () | |
Destructor. | |
Observer & | operator= (const Observer &other) |
Assignment operator. | |
bool | operator== (const Observer &other) const |
Equality operator. | |
const char * | name () |
void | name (const char *str) |
TSLMUCoord & | position () |
void | position (const TSLMUCoord &p) |
double | startHeight () const |
void | startHeight (double height) |
bool | startHeightRelativeToGround () const |
void | startHeightRelativeToGround (bool relative) |
double | endHeight () const |
void | endHeight (double height) |
bool | endHeightRelativeToGround () const |
void | endHeightRelativeToGround (bool relative) |
double | minRadius () const |
void | minRadius (double radius) |
double | maxRadius () const |
void | maxRadius (double radius) |
TSLViewShedDataLayer::Observer::Observer | ( | ) |
Constructor.
TSLViewShedDataLayer::Observer::Observer | ( | const TSLMUCoord & | position, |
double | startHeight, | ||
bool | startHeightRelativeToGround, | ||
double | maxRadius ) |
Constructor.
TSLViewShedDataLayer::Observer::Observer | ( | const Observer & | other | ) |
Copy constructor.
TSLViewShedDataLayer::Observer::~Observer | ( | ) |
Destructor.
double TSLViewShedDataLayer::Observer::endHeight | ( | ) | const |
Get the end height of the Observer.
By default viewshed calculations will check which points on the ground can be seen from the Observer's position.
If the end height is set the calculation will check whether a point above the ground can be seen from the Observer's position such as the top of a mast or an aircraft.
If endHeightRelativeToGround is true then this height is relative to the ground (at each point within the viewshed calculation). Otherwise this height is relative to zero in the input data (usually sea level).
The default value of this parameter is zero.
void TSLViewShedDataLayer::Observer::endHeight | ( | double | height | ) |
bool TSLViewShedDataLayer::Observer::endHeightRelativeToGround | ( | ) | const |
Get whether the end height is relative to the ground.
The default value of this parameter is true.
void TSLViewShedDataLayer::Observer::endHeightRelativeToGround | ( | bool | relative | ) |
Set whether the end height is relative to the ground.
relative | Whether endHeight is relative to the ground (At each point within the viewshed calculation). |
double TSLViewShedDataLayer::Observer::maxRadius | ( | ) | const |
void TSLViewShedDataLayer::Observer::maxRadius | ( | double | radius | ) |
double TSLViewShedDataLayer::Observer::minRadius | ( | ) | const |
void TSLViewShedDataLayer::Observer::minRadius | ( | double | radius | ) |
const char * TSLViewShedDataLayer::Observer::name | ( | ) |
void TSLViewShedDataLayer::Observer::name | ( | const char * | str | ) |
bool TSLViewShedDataLayer::Observer::operator== | ( | const Observer & | other | ) | const |
Equality operator.
TSLMUCoord & TSLViewShedDataLayer::Observer::position | ( | ) |
void TSLViewShedDataLayer::Observer::position | ( | const TSLMUCoord & | p | ) |
double TSLViewShedDataLayer::Observer::startHeight | ( | ) | const |
Get the height of the Observer.
The units of this value are defined by the input data. Usually this is metres.
If startHeightRelativeToGround is true then this height is relative to the ground level at position. Otherwise this height is relative to zero in the input data (usually sea level).
void TSLViewShedDataLayer::Observer::startHeight | ( | double | height | ) |
bool TSLViewShedDataLayer::Observer::startHeightRelativeToGround | ( | ) | const |
Get whether startHeight is relative to the ground.
void TSLViewShedDataLayer::Observer::startHeightRelativeToGround | ( | bool | relative | ) |
Set whether startHeight is relative to the ground.
relative | Whether startHeight is relative to the ground at position. |