![]() |
VR-Forces 5.0.3 Developer's Guide
|
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.

Public Member Functions | |
| DtCigiDiGuyPartMapper () | |
| DtCigiDiGuyPartMapper (const DtCigiDiGuyPartMapper &orig) | |
| DtCigiDiGuyPartMapper & | operator= (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 DtCigiDiGuyPartMapper & | instance (DtCigiConnection &connection) |
Protected Types | |
| typedef boost::unordered_map < int, int > | PartMap |
Protected Attributes | |
| PartMap | myPartMap |
|
protected |
| 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 |
Destructor.
|
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.
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.
Get the DIS part number currently mapped to a CIGI art part number.
|
protected |