libnltrack/fren.c File Reference

#include "libnltrack.h"
#include <math.h>

Include dependency graph for fren.c:

Functions

int addFreeNode (float posX, float posY, float posZ, NlTrack *Track)
 Add a Free Node.
void modifyFreeNode (int nodeindex, float posX, float posY, float posZ, NlTrack *Track)
 Modify a Free Node.
void deleteFreeNode (int nodeindex, NlTrack *Track)
 Delete a Free Node.
FreeNode getFreeNode (int nodeindex, NlTrack *Track)
 Get a Free Node.
int getTotalFreeNodes (NlTrack *Track)
 Get the number of the free nodes.

Function Documentation

int addFreeNode ( float  posX,
float  posY,
float  posZ,
NlTrack Track 
)

Add a Free Node.

Parameters:
posX is the x-axis position of the node
posY is the y-axis position of the node
posZ is the z-axis position of the node
Track a pointer to the NlTrack
Returns:
nodeindex will contain the index number of the added node
This function will add a new free node.

References NlTrack::freeNodes, NlTrack::frensize, FreeNode::posX, FreeNode::posY, FreeNode::posZ, and NlTrack::totalFreeNodes.

void deleteFreeNode ( int  nodeindex,
NlTrack Track 
)

Delete a Free Node.

Parameters:
nodeindex is the index number of the node, which is deleted.
Track a pointer to the NlTrack
This function will delete a free node.

References NlTrack::freeNodes, NlTrack::frensize, and NlTrack::totalFreeNodes.

FreeNode getFreeNode ( int  nodeindex,
NlTrack Track 
)

Get a Free Node.

Parameters:
nodeindex is the index number of the node, which we like to get.
Track a pointer to the NlTrack
Returns:
FreeNode will contain the free node datas.
This function will get a free node.

References NlTrack::freeNodes.

int getTotalFreeNodes ( NlTrack Track  ) 

Get the number of the free nodes.

Parameters:
Track a pointer to the NlTrack
Returns:
will contain the number of the free nodes
This function will get the number of the free nodes.

References NlTrack::totalFreeNodes.

void modifyFreeNode ( int  nodeindex,
float  posX,
float  posY,
float  posZ,
NlTrack Track 
)

Modify a Free Node.

Parameters:
nodeindex is the index number of the node, which is modified.
posX is the x-axis position of the node
posY is the y-axis position of the node
posZ is the z-axis position of the node
Track a pointer to the NlTrack
Returns:
nodeindex will contain the index number of the modified node
This function will modify a free node.

References NlTrack::freeNodes, FreeNode::posX, FreeNode::posY, and FreeNode::posZ.


Generated on Sun May 25 21:42:45 2008 for libnltrack by  doxygen 1.5.6