![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This class represents a vertex which has zero or more pieces of attribute data associated with it that represent height or other spatial information that can be used to generate contour lines.
Public Member Functions | |
TSLTerrainContourVertex () | |
TSLTerrainContourVertex (int numAttributes) | |
TSLTerrainContourVertex (double xPosition, double yPosition, const double *attributes, int numAttributes) | |
TSLTerrainContourVertex (const TSLTerrainContourVertex &other) | |
~TSLTerrainContourVertex () | |
bool | attribute (int index, double *attr) const |
bool | attribute (int index, double attr) |
bool | operator== (const TSLTerrainContourVertex &rhs) const |
bool | operator!= (const TSLTerrainContourVertex &rhs) const |
TSLTerrainContourVertex & | operator= (const TSLTerrainContourVertex &rhs) |
int | numberOfAttributes () const |
void | x (double newX) |
double | x () const |
void | y (double newY) |
double | y () const |
TSLTerrainContourVertex::TSLTerrainContourVertex | ( | ) |
Default constructor.
TSLTerrainContourVertex::TSLTerrainContourVertex | ( | int | numAttributes | ) |
Constructor.
numAttributes | The number of attributes this vertex has. All attribute values are initialised to 0. |
TSLTerrainContourVertex::TSLTerrainContourVertex | ( | double | xPosition, |
double | yPosition, | ||
const double * | attributes, | ||
int | numAttributes ) |
Constructor.
xPosition | The X coordinate of this vertex. |
yPosition | The Y coordinate of this vertex. |
attributes | An array of values representing the height information for this vertex. |
numAttributes | The size of the attributes array. |
TSLTerrainContourVertex::TSLTerrainContourVertex | ( | const TSLTerrainContourVertex & | other | ) |
Copy constructor.
other | the TSLContourVertex to duplicate. |
TSLTerrainContourVertex::~TSLTerrainContourVertex | ( | ) |
Destructor.
bool TSLTerrainContourVertex::attribute | ( | int | index, |
double * | attr ) const |
Return the attribute at the given index.
Returns false if the specified index does not exist.
index | The index of the attribute to retrieve |
attr | Where to store the attribute value. |
bool TSLTerrainContourVertex::attribute | ( | int | index, |
double | attr ) |
Modifies the attribute at the given index Returns False if the given index does not exist.
index | the index |
attr | The value to set |
|
inline |
Return the number of attributes in the vertex.
Class TSLTerrainContourVertex
bool TSLTerrainContourVertex::operator!= | ( | const TSLTerrainContourVertex & | rhs | ) | const |
Inequality operator.
rhs | The TSLContourVertex object to compare against. |
TSLTerrainContourVertex & TSLTerrainContourVertex::operator= | ( | const TSLTerrainContourVertex & | rhs | ) |
Assignment operator.
Inequality operator.
rhs | The TSLContourVertex object to copy from. |
bool TSLTerrainContourVertex::operator== | ( | const TSLTerrainContourVertex & | rhs | ) | const |
Equality operator.
rhs | The TSLContourVertex object to compare against. |
|
inline |
Return the x position.
|
inline |
Sets the x coordinate for this vertex.
newX | The new x coordinate to use. |
|
inline |
Return the y position.
|
inline |
Sets the y coordinate for this vertex.
newY | The new y coordinate to use. |