VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 Tue Mar 1 02:56:17 EST 2016 from SVN revision 162687
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)