VR-Link API Documentation for HLA 1516
Functions
DtArticulatedPartsUtilities Namespace Reference

The functions in the DtArticulatedPartsUtilities contain common mechanisms used in the encoding/decoding of articulated parts. More...

Functions

DT_DLL_VLPROTIND void fillArtPartNetRecord (const DtArticulatedPartCollection &apList, DtNetArtParamRecord *netRecords)
 Iterates throught the DtArticulatedPartCollection and fills in the net record passed in.
DT_DLL_VLPROTIND void loadArtPartsFromNet (int numParams, DtArticulatedPartCollection *apList, const DtNetArtParamRecord *netRecords, DtTime currentTime)
 Iterates through the net records and fills in the DtArticulatedParts collection passed in.
DT_DLL_VLPROTIND void updateArtPartsChangeIndicators (const DtArticulatedPartCollection *apList, const DtArticulatedPartCollection *remoteApList)
 Iterates through both lists, and compares the values of each parameter.

Detailed Description

The functions in the DtArticulatedPartsUtilities contain common mechanisms used in the encoding/decoding of articulated parts.

Function Documentation

DT_DLL_VLPROTIND void DtArticulatedPartsUtilities::fillArtPartNetRecord ( const DtArticulatedPartCollection apList,
DtNetArtParamRecord netRecords 
)

Iterates throught the DtArticulatedPartCollection and fills in the net record passed in.

This is used for methods that encode articulated parts data and sends it out to the network. The data is encoded according to the DIS/RPR FOM standards.

DT_DLL_VLPROTIND void DtArticulatedPartsUtilities::loadArtPartsFromNet ( int  numParams,
DtArticulatedPartCollection apList,
const DtNetArtParamRecord netRecords,
DtTime  currentTime 
)

Iterates through the net records and fills in the DtArticulatedParts collection passed in.

It should be noted that the number of parameters in netRecords needs to be passed in, as netRecords simply references a section of memory. Also, currentTime needs to be passed in, as articulated parts are typically dead reckoned. This is used typically for decoding data that comes in off of the network, and expects data in as specified in the DIS/RPR FOM standards.

DT_DLL_VLPROTIND void DtArticulatedPartsUtilities::updateArtPartsChangeIndicators ( const DtArticulatedPartCollection apList,
const DtArticulatedPartCollection remoteApList 
)

Iterates through both lists, and compares the values of each parameter.

If values of the parameters have changed, the change indicators of apList are incremented for each changed paramter value. apList and remoteApList are expected to be the same in terms of part types and parameter types for each part.


Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)