VR-Link API Documentation for HLA 1.3
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

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.

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 Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)