VR-Link API Documentation for HLA 1.3
Test Interaction Example

The testInter example shows how to add a new interaction class to a FOM.

We need to extend the VR-Link top-level API by adding a new kind of DtInteraction. Then we create mappings between the new FOM class and the new DtInteraction subclass.

This example, adds an interaction class called Test to the VrlExtend.fed FED File. It has two parameters:

To add this class:

  1. Create a new subclass of DtInteraction to represent the new kind of interaction. (See testInter.h and testInter.cxx.)
  2. Create TestEncoder and TestDecoder classes, subclasses of DtInteractionEncoder and DtInteractionDecoder respectively. These classes contain encoding and decoding functions for the attributes of the Test interaction. (See testDec.h, testDec.cxx, testEnc.h and testEnc.cxx.)

The TestInteraction example is contained in the following major files:


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)