![]() |
MapLink Pro 11.2
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This class encapsulates the notion of a generic Node object that populates the TSLNetwork object.
Clients can add TSLDynamicDataObjects should they require object visualisation.
Public Member Functions | |
TSLNode () | |
TSLNode (const TSLNode &rhs) | |
~TSLNode () | |
TSLNode & | operator= (const TSLNode &rhs) |
const TSLVariant & | attribute (int N) const |
void | ddo (TSLDynamicDataObject *dataObj) |
TSLDynamicDataObject * | ddo () const |
const TSLVariant * | getAttributes () const |
int | numAttributes () const |
void | position (int x, int y) |
void | position (const TSLCoord &pos) |
const TSLCoord & | position () const |
void | setAttributes (const TSLVariant attribs[], int N) |
TSLNode::TSLNode | ( | ) |
The default constructor.
TSLNode::TSLNode | ( | const TSLNode & | rhs | ) |
Copy constructor.
TSLNode::~TSLNode | ( | ) |
Destructor.
const TSLVariant & TSLNode::attribute | ( | int | N | ) | const |
Queries the node for the attribute at the specified index.
N | The index position. |
|
inline |
Queries the node for its associated TSLDynamicDataObject.
Returns a pointer to the associated TSLDynamicDataObject.
void TSLNode::ddo | ( | TSLDynamicDataObject * | dataObj | ) |
Sets the associated TSLDynamicDataObject.
dataObj | A pointer to the TSLDynamicDataObject. |
|
inline |
Queries the node for its attributes.
int TSLNode::numAttributes | ( | ) | const |
Returns the number of attributes of this node.
|
inline |
Queries the node for its position.
void TSLNode::position | ( | const TSLCoord & | pos | ) |
Sets the Node's position (in TMC units).
pos | The position (in TMC units). |
void TSLNode::position | ( | int | x, |
int | y ) |
Sets the Node's position (in TMC units).
(x,y) | The position (in TMC units). |
void TSLNode::setAttributes | ( | const TSLVariant | attribs[], |
int | N ) |
Sets the nodes' attributes.
attribs | The array of attributes. |
N | The size of the array. |