VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Types | Protected Attributes
makVrv::DtCigiDiGuyPartMapper Class Reference

A DtCigiDiGuyPartMapper is a singleton class (rooted on the CIGI connection object) that maps from CIGI art part numbers to DIS articulated part numbers (which is what the Vantage / DiGuy interface expects). For Character entities, the standard CIGI part mapper is consulted first. If no mapping is found for the part id in the CIGI articulated part packet then this mapper is checked. It initializes itself with the special DIS articulated part numbers that we have chosen to represent DI-Guy links (these DIS part numbers can be found in include/vrvDiGuy/DtDiGuyArtPartLinkMapper.h). The API allows you to change the mappings if desired.

Inheritance diagram for makVrv::DtCigiDiGuyPartMapper:
Inheritance graph
[legend]

Public Member Functions

 DtCigiDiGuyPartMapper ()
 
 DtCigiDiGuyPartMapper (const DtCigiDiGuyPartMapper &orig)
 
DtCigiDiGuyPartMapperoperator= (const DtCigiDiGuyPartMapper &rhs)
 
virtual ~DtCigiDiGuyPartMapper ()
 
virtual void setDisArtPart (int cigiPart, int disPart)
 
virtual int disArtPart (int cigiPart) const
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static DtCigiDiGuyPartMapperinstance (DtCigiConnection &connection)
 

Protected Types

typedef boost::unordered_map
< int, int
PartMap
 

Protected Attributes

PartMap myPartMap
 

Member Typedef Documentation

typedef boost::unordered_map<int, int> makVrv::DtCigiDiGuyPartMapper::PartMap
protected

Constructor & Destructor Documentation

makVrv::DtCigiDiGuyPartMapper::DtCigiDiGuyPartMapper ( )

Constructor. Initializes the mapper as follows: ID DIS Articulated Part (see include/vrvDiGuy/DtDiGuyArtPartLinkMapper.h)
0 DiGuyDisArtPartBase
1 DiGuyDisArtPartBack
2 DiGuyDisArtPartCervical
3 DiGuyDisArtPartShoulderLeft
4 DiGuyDisArtPartShoulderRight
5 DiGuyDisArtPartElbowLeft
6 DiGuyDisArtPartElbowRight
7 DiGuyDisArtPartWristLeft
8 DiGuyDisArtPartWristRight
9 DiGuyDisArtPartHipLeft
10 DiGuyDisArtPartHipRight
11 DiGuyDisArtPartKneeLeft
12 DiGuyDisArtPartKneeRight
13 DiGuyDisArtPartAnkleLeft
14 DiGuyDisArtPartAnkleRight

makVrv::DtCigiDiGuyPartMapper::DtCigiDiGuyPartMapper ( const DtCigiDiGuyPartMapper orig)

Copy Constructor.

virtual makVrv::DtCigiDiGuyPartMapper::~DtCigiDiGuyPartMapper ( )
virtual

Destructor.

Member Function Documentation

static DtCigiDiGuyPartMapper& makVrv::DtCigiDiGuyPartMapper::instance ( DtCigiConnection connection)
static

Get an instance of the Part Mapper from the CIGI connection. If none exists, this will create and register one.

DtCigiDiGuyPartMapper& makVrv::DtCigiDiGuyPartMapper::operator= ( const DtCigiDiGuyPartMapper rhs)

Assignment Operator.

virtual void makVrv::DtCigiDiGuyPartMapper::setDisArtPart ( int  cigiPart,
int  disPart 
)
virtual

Map a CIGI art part number to the number that will be used as a DIS part number (should appear in DtDiGuyArtPartLinkMapper, which maps this value to a DI-Guy link name. Replaces any existing mapping for that part.

virtual int makVrv::DtCigiDiGuyPartMapper::disArtPart ( int  cigiPart) const
virtual

Get the DIS part number currently mapped to a CIGI art part number.

Member Data Documentation

PartMap makVrv::DtCigiDiGuyPartMapper::myPartMap
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)