libnltrack/tube.c File Reference

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

Include dependency graph for tube.c:

Functions

int addSupport (int n1type, int n1index, int n1segIndex, int n2type, int n2index, int n2segIndex, int tubeType, int flags, int rotation, NlTrack *Track)
 Add a Support.
void modifySupport (int suppindex, int tubeType, int flags, int rotation, NlTrack *Track)
void deleteSupport (int suppindex, NlTrack *Track)
Tube getSupport (int suppindex, NlTrack *Track)
int getTotalSupport (NlTrack *Track)

Function Documentation

int addSupport ( int  n1type,
int  n1index,
int  n1segIndex,
int  n2type,
int  n2index,
int  n2segIndex,
int  tubeType,
int  flags,
int  rotation,
NlTrack Track 
)

Add a Support.

Parameters:
n1type is the type of the first node. There is few Pre-defined values:
NODE_FUND for a fundament node
NODE_FREE for a free node
NODE_SEGMENT for a segment node
n1index is the index number of the first node
n1segIndex is needed, when n1type is NODE_SEGMENT. Its the index number of the segment, where the first node is added.
n2type is the type of the second node. There is few Pre-defined values:
NODE_FUND for a fundament node
NODE_FREE for a free node
NODE_SEGMENT for a segment node
n2index is the index number of the second node
n2segIndex is needed, when n2type is NODE_SEGMENT. Its the index number of the segment, where the second node is added.
tubeType is the tube type. There is few Pre-define values: TUBE_MEDIUM medium sized tube
TUBE_LARGE large sized tube
TUBE_SMALL small sized tube
TUBE_L_BEAM L Beam
TUBE_H_BEAM H Beam
TUBE_X_WOOD X Wood
TUBE_XX_LARGE XX Large
TUBE_4_4_WOOD_BEAM 4x4 Wood Beam
TUBE_1_4_WOOD_BEAM 1x4 Wood Beam
TUBE_2_2_WOOD_BEAM 2x2 Wood Beam
flags of the support.
rotation a is the support rotation in radian. To convert from degree to radian, please use toRad().
Track a pointer to the NlTrack
Returns:
supportindex will contain the index number of the added support
This function will add a new support. node.

References Tube::flags, Tube::n1index, Tube::n1segIndex, Tube::n1type, Tube::n2index, Tube::n2segIndex, Tube::n2type, Tube::rotation, NlTrack::totalTubes, NlTrack::tubes, NlTrack::tubesize, and Tube::tubeType.

void deleteSupport ( int  suppindex,
NlTrack Track 
)

Tube getSupport ( int  suppindex,
NlTrack Track 
)

References NlTrack::tubes.

int getTotalSupport ( NlTrack Track  ) 

References NlTrack::totalTubes.

void modifySupport ( int  suppindex,
int  tubeType,
int  flags,
int  rotation,
NlTrack Track 
)


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