![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
Note: This class has been deprecated, and the functionality replaced. Please see the headers in 'MapLinkTerrainViewShed.h' and the 'MapLink Pro Developer's Guide' for more information. The MapLink Terrain Viewer sample application has been updated to demonstrate the usage of the new viewshed classes.
This class handles the results of a TSLTerrainViewShed calculateLineOfSight operation. It has an array of line of sight data and its dimensions.
Public Types | |
enum | LOSTriStateEnum { LOSTriStateNoData = 0 , LOSTriStateVisible = 1 , LOSTriStateNotVisible = 2 } |
Public Member Functions | |
TSLTerrainViewShedData (int numRows, int numColumns, int losOriginX, int losOriginY, double cellDistanceMUInX, double cellDistanceMUInY, LOSTriStateEnum *los, int *accurateLOS) | |
void | destroy () |
int * | getAccurateLos () const |
double | getCellDistanceMUInX () const |
double | getCellDistanceMUInY () const |
LOSTriStateEnum * | getLos () const |
int | getLosOriginX () const |
int | getLosOriginY () const |
int | getNumColumns () const |
int | getNumRows () const |
void | setAccurateLos (int *value) |
void | setCellDistanceMUInX (double value) |
void | setCellDistanceMUInY (double value) |
void | setLos (LOSTriStateEnum *value) |
void | setLosOriginX (int value) |
void | setLosOriginY (int value) |
void | setNumColumns (int value) |
void | setNumRows (int value) |
Protected Member Functions | |
~TSLTerrainViewShedData () | |
Protected Attributes | |
int * | m_accurateLOS |
double | m_cellDistanceMUInX |
double | m_cellDistanceMUInY |
LOSTriStateEnum * | m_los |
int | m_losOriginX |
int | m_losOriginY |
int | m_numColumns |
int | m_numRows |
This tristate indicates the visibility of each terrain point.
LOSTriStateNoData - Currently only used to indicate that the data is outside the query extent. Reserved for future use.
LOSTriStateVisible - The point is visible
LOSTriStateNotVisible - The point is not visible
Enumerator | |
---|---|
LOSTriStateNoData | |
LOSTriStateVisible | |
LOSTriStateNotVisible |
TSLTerrainViewShedData::TSLTerrainViewShedData | ( | int | numRows, |
int | numColumns, | ||
int | losOriginX, | ||
int | losOriginY, | ||
double | cellDistanceMUInX, | ||
double | cellDistanceMUInY, | ||
LOSTriStateEnum * | los, | ||
int * | accurateLOS ) |
|
protected |
void TSLTerrainViewShedData::destroy | ( | ) |
Destroy TSLTerrainViewShedData object.
This method should be called by the user as soon as the data is not required.
|
inline |
Get the accurate line of sight data array. If the accurate flag was passed to the calculateLineOfSight method then use this to access the data.
Class TSLTerrainViewShedData
|
inline |
Gets the distance in map units that each array cell covers.
|
inline |
Gets the distance in map units that each array cell covers.
|
inline |
Get the standard line of sight data array
|
inline |
Gets the start row in the terrain data that the calculation was performed on
|
inline |
Gets the start column in the terrain data that the calculation was performed on
|
inline |
Gets the number of columns in the line of sight data
|
inline |
Gets the number of rows in the line of sight data
|
inline |
Set the accurate line of sight data array.
|
inline |
Sets the distance in map units that each array cell covers.
|
inline |
Sets the distance in map units that each array cell covers.
|
inline |
Set the line of sight data array.
|
inline |
Sets the start row in the terrain data that the calculation was performed on
|
inline |
Sets the start column in the terrain data that the calculation was performed on
|
inline |
Sets the number of columns in the line of sight data
|
inline |
Sets the number of rows in the line of sight data
|
protected |
Data Members for Class Attributes
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |