![]() |
VR-Forces 4.8 Class Documentation
|
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). More...

Public Member Functions | |
| DtCigiDiGuyPartMapper () | |
| Constructor. More... | |
| DtCigiDiGuyPartMapper (const DtCigiDiGuyPartMapper &orig) | |
| Copy Constructor. More... | |
| DtCigiDiGuyPartMapper & | operator= (const DtCigiDiGuyPartMapper &rhs) |
| Assignment Operator. More... | |
| virtual | ~DtCigiDiGuyPartMapper () |
| Destructor. More... | |
| virtual void | setDisArtPart (int cigiPart, int disPart) |
| 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. More... | |
| virtual int | disArtPart (int cigiPart) const |
| Get the DIS part number currently mapped to a CIGI art part number. More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Static Public Member Functions | |
| static DtCigiDiGuyPartMapper & | instance (DtCigiConnection &connection) |
| Get an instance of the Part Mapper from the CIGI connection. More... | |
Protected Types | |
| typedef boost::unordered_map < int, int > | PartMap |
Protected Attributes | |
| PartMap | myPartMap |
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.
|
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 |