MapLink Pro 11.2
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLNode Class Reference

Detailed Description

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 ()
 
TSLNodeoperator= (const TSLNode &rhs)
 
const TSLVariantattribute (int N) const
 
void ddo (TSLDynamicDataObject *dataObj)
 
TSLDynamicDataObjectddo () const
 
const TSLVariantgetAttributes () const
 
int numAttributes () const
 
void position (int x, int y)
 
void position (const TSLCoord &pos)
 
const TSLCoordposition () const
 
void setAttributes (const TSLVariant attribs[], int N)
 

Constructor & Destructor Documentation

◆ TSLNode() [1/2]

TSLNode::TSLNode ( )

The default constructor.

◆ TSLNode() [2/2]

TSLNode::TSLNode ( const TSLNode & rhs)

Copy constructor.

◆ ~TSLNode()

TSLNode::~TSLNode ( )

Destructor.

Member Function Documentation

◆ attribute()

const TSLVariant & TSLNode::attribute ( int N) const

Queries the node for the attribute at the specified index.

Parameters
NThe index position.
Returns
a const-reference to the attribute at the specified index.

◆ ddo() [1/2]

TSLDynamicDataObject * TSLNode::ddo ( ) const
inline

Queries the node for its associated TSLDynamicDataObject.

Returns a pointer to the associated TSLDynamicDataObject.

◆ ddo() [2/2]

void TSLNode::ddo ( TSLDynamicDataObject * dataObj)

Sets the associated TSLDynamicDataObject.

Parameters
dataObjA pointer to the TSLDynamicDataObject.

◆ getAttributes()

const TSLVariant * TSLNode::getAttributes ( ) const
inline

Queries the node for its attributes.

◆ numAttributes()

int TSLNode::numAttributes ( ) const

Returns the number of attributes of this node.

◆ operator=()

TSLNode & TSLNode::operator= ( const TSLNode & rhs)

Assignment operator.

◆ position() [1/3]

const TSLCoord & TSLNode::position ( ) const
inline

Queries the node for its position.

◆ position() [2/3]

void TSLNode::position ( const TSLCoord & pos)

Sets the Node's position (in TMC units).

Parameters
posThe position (in TMC units).

◆ position() [3/3]

void TSLNode::position ( int x,
int y )

Sets the Node's position (in TMC units).

Parameters
(x,y)The position (in TMC units).

◆ setAttributes()

void TSLNode::setAttributes ( const TSLVariant attribs[],
int N )

Sets the nodes' attributes.

Parameters
attribsThe array of attributes.
NThe size of the array.