![]() |
MapLink Pro 11.2
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This class encapsulates the notion of a generic Link object that links two Node objects together in a TSLNetwork object.
Clients can add TSLDynamicDataObjects should they require object visualisation.
Public Member Functions | |
TSLLink () | |
TSLLink (const TSLLink &rhs) | |
~TSLLink () | |
TSLLink & | operator= (const TSLLink &rhs) |
const TSLVariant & | attribute (int N) const |
void | ddo (TSLDynamicDataObject *dataObj) |
TSLDynamicDataObject * | ddo () const |
void | featureCode (int fc) |
int | featureCode () const |
const TSLVariant * | getAttributes () const |
TSLCoordSet * | getPoints () const |
void | length (float len) |
float | length () const |
int | numAttributes () const |
int | numPoints () const |
TSLCoord | point (int N) const |
void | setAttributes (const TSLVariant attribs[], int N) |
void | setPoints (const TSLCoordSet *pts) |
Static Public Member Functions | |
static unsigned int | getScale () |
static void | setScale (unsigned int s) |
TSLLink::TSLLink | ( | ) |
The default constructor.
TSLLink::TSLLink | ( | const TSLLink & | rhs | ) |
Copy constructor.
TSLLink::~TSLLink | ( | ) |
Destructor.
const TSLVariant & TSLLink::attribute | ( | int | N | ) | const |
Queries the link for the attribute at the specified index.
N | The index position. |
|
inline |
Queries the link for its associated TSLDynamicDataObject.
Returns a pointer to the associated TSLDynamicDataObject.
void TSLLink::ddo | ( | TSLDynamicDataObject * | dataObj | ) |
Sets the associated TSLDynamicDataObject.
dataObj | A pointer to the TSLDynamicDataObject. |
|
inline |
Queries the link for its feature code.
Returns the feature code.
void TSLLink::featureCode | ( | int | fc | ) |
Sets the feature code.
fc | The feature code. |
|
inline |
Queries the link for its attributes.
TSLCoordSet * TSLLink::getPoints | ( | ) | const |
Queries the link for its points.
Returns a TSLCoordSet* that references the points.
NOTE: the user is responsible for destroying the returned pointer.
|
inlinestatic |
Returns the TSLLink class geometry scaling factor.
|
inline |
Returns the length of this link (m).
Note: For networks created from OS ITN data the length returned is in TMCs. To obtain metres, the TMC length value requires dividing by the TMC per Map Unit value used to create the network.
void TSLLink::length | ( | float | len | ) |
Sets the length.
len | The length of the link (m). |
int TSLLink::numAttributes | ( | ) | const |
Returns the number of attributes of this link.
int TSLLink::numPoints | ( | ) | const |
Returns the number of points describing the geometry of this link.
TSLCoord TSLLink::point | ( | int | N | ) | const |
Queries the link for the point at the specified index.
N | The index position. |
void TSLLink::setAttributes | ( | const TSLVariant | attribs[], |
int | N ) |
Sets the links' attributes.
attribs | The array of attributes. |
N | The size of the array. |
void TSLLink::setPoints | ( | const TSLCoordSet * | pts | ) |
Sets the links' geometry.
pts | The array of points. |
|
static |
Set the geometry scale factor for the TSLLink class.
s | The scale factor. |