libnltrack/fund.c File Reference

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

Include dependency graph for fund.c:

Functions

int addFundNode (int useSizeValue, float size, int useRotationValue, float rotation, char fundType, int flags, float posX, float posY, float posZ, NlTrack *Track)
 Add a Fundament Node.
FundNode getFundNode (int fundindex, NlTrack *Track)
int modifyFundNode (int fundindex, int useSizeValue, float size, int useRotationValue, float rotation, char fundType, int flags, float posX, float posY, float posZ, NlTrack *Track)
void deleteFundNode (int fundindex, NlTrack *Track)
int getTotalFundNodes (NlTrack *Track)

Function Documentation

int addFundNode ( int  useSizeValue,
float  size,
int  useRotationValue,
float  rotation,
char  fundType,
int  flags,
float  posX,
float  posY,
float  posZ,
NlTrack Track 
)

Add a Fundament Node.

Parameters:
useSizeValue contains the value, whether their own size to be used
size is the size of the support, if useSizeValue is 1
useRotationValue contains the value, whether their own rotation to be used
rotation is the x-axis position of the node
posX is the rotation of the support in radian, if rotation is 1. To convert from degree to radian, please use toRad().
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 FundNode::flags, NlTrack::fundNodes, NlTrack::fundsize, FundNode::fundType, FundNode::posX, FundNode::posY, FundNode::posZ, FundNode::rotation, FundNode::size, NlTrack::totalFundNodes, FundNode::useRotationValue, and FundNode::useSizeValue.

void deleteFundNode ( int  fundindex,
NlTrack Track 
)

FundNode getFundNode ( int  fundindex,
NlTrack Track 
)

References NlTrack::fundNodes.

int getTotalFundNodes ( NlTrack Track  ) 

int modifyFundNode ( int  fundindex,
int  useSizeValue,
float  size,
int  useRotationValue,
float  rotation,
char  fundType,
int  flags,
float  posX,
float  posY,
float  posZ,
NlTrack Track 
)


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