VR-Link JAVA API Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
6.4 - FOM Mapping Details

A DtFomMapper (defined in fomMapper.h) is a central repository for FOM mapping information.

Top-level API classes call DtFomMapper functions to obtain FOM mapping information. For example, to find out which FOM object class to use to represent an object being managed by a particular type of DtObjectPublisher, the publisher calls DtFomMapper::chooseObjectClass().

To set or change a FOM Mapper's mappings, use DtFomMapper's mutator functions to configure a FOM Mapper so that its functions return the data you want.

For example, you can use DtFomMapper::setObjectClassToChoose() to set up a mapping between a particular subclass of DtObjectPublisher and a particular FOM object class.

To have VR-Link use new FOM mappings that you provide, you can either allow the DtExerciseConn to create its DtFomMapper, then add your own mappings to this FOM Mapper later, or you can create your own instance of a DtFomMapper, and tell the DtExerciseConn to use it. For more information, please see 6.8 - Choosing a DtFomMapper. The following sections describe how a FOM Mapper is configured, regardless of whether you choose to do it before or after DtExerciseConn construction.

[<< FOM Mapping Information Required By VR-Link's API] [Home] [Setting Up a FOM Mapper's Class Mappings >>]


Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)