![]() |
VR-Forces 4.0.4 Class Documentation
|
This class is responsible for processing various CIGI messages that pertain to CIGI entities and setting the data in the DtCigiEntity. More...
Public Member Functions | |
| DtCigiEntityVisualizer (DtCigiConnection &connection, DtAgentManagerInterface &aSceneInterface) | |
| Constructor. | |
| virtual | ~DtCigiEntityVisualizer () |
| Destructor. | |
| virtual DtUniqueID | uniqueIdForCigiEntity (int cigiEntId) const |
| Returns the unique ID that corresponds to the CIGI entity ID passed in. | |
| virtual const DtCigiBaseEntity * | cigiEntity (int entityId) const |
| Returns the CIGI entity that corresponds to the CIGI entity ID passed in. | |
| virtual int | findEntityWithUniqueId (DtUniqueID idToFind) const |
| Returns the CIGI entity ID that corresponds to the unique ID passed in. | |
Protected Types | |
| typedef std::map< int, DtCigiBaseEntity * > | IdToEntityMap |
Protected Member Functions | |
| virtual void | processEntityControl (const CigiEntityCtrlV3_3 &packet) |
| Process a CIGI Entity Control packet. | |
| virtual void | processRateControl (const CigiRateCtrlV3_2 &packet) |
| virtual void | processArtPartControl (const CigiArtPartCtrlV3 &packet) |
| Process a CIGI Articulated Part Control packet. | |
| virtual void | processShortArtPartControl (const CigiShortArtPartCtrlV3 &packet) |
| Process a CIGI Short Articulated Part Control packet. | |
| virtual void | processComponentControl (CigiCompCtrlV3_3 &packet) |
| Process a CIGI Component Control packet. | |
| virtual void | processShortComponentControl (CigiShortCompCtrlV3_3 &packet) |
| Process a CIGI Short Component Control packet. | |
| virtual void | setTspiFromPacket (const CigiEntityCtrlV3_3 &packet, DtCigiBaseEntity *entity) |
| Sets the position/orientation of the specified entity from the packet. | |
| virtual DtCigiBaseEntity * | createNewEntity (int entityId, int entityType) |
| Create a new CIGI entity. | |
| virtual void | removeEntity (int entityId) |
| Removes the entity with the CIGI ID specified. | |
| virtual void | setArtPartWithDof (int partId, float val, CigiBaseShortArtPartCtrl::DofSelectGrp selection, DtCigiEntity *entity) |
| Set the particular articulated part with the CIGI degree-of-freedom specifier. | |
| virtual void | setAnimationState (const CigiEntityCtrlV3_3 &packet, DtCigiBaseEntity *entity) |
| Set the animation state of the entity. | |
| DtCigiEntityVisualizer (const DtCigiEntityVisualizer &orig) | |
| DtCigiEntityVisualizer & | operator= (const DtCigiEntityVisualizer &orig) |
Protected Attributes | |
| std::map< int, DtCigiBaseEntity * > | myIdToEntityMap |
| DtAgentManagerInterface & | mySceneInterface |
| DtCigiConnection & | myConnection |
This class is responsible for processing various CIGI messages that pertain to CIGI entities and setting the data in the DtCigiEntity.
typedef std::map<int, DtCigiBaseEntity*> makVrv::DtCigiEntityVisualizer::IdToEntityMap [protected] |
| makVrv::DtCigiEntityVisualizer::DtCigiEntityVisualizer | ( | DtCigiConnection & | connection, |
| DtAgentManagerInterface & | aSceneInterface | ||
| ) |
Constructor.
| virtual makVrv::DtCigiEntityVisualizer::~DtCigiEntityVisualizer | ( | ) | [virtual] |
Destructor.
| makVrv::DtCigiEntityVisualizer::DtCigiEntityVisualizer | ( | const DtCigiEntityVisualizer & | orig | ) | [protected] |
| virtual DtUniqueID makVrv::DtCigiEntityVisualizer::uniqueIdForCigiEntity | ( | int | cigiEntId | ) | const [virtual] |
Returns the unique ID that corresponds to the CIGI entity ID passed in.
| virtual const DtCigiBaseEntity* makVrv::DtCigiEntityVisualizer::cigiEntity | ( | int | entityId | ) | const [virtual] |
Returns the CIGI entity that corresponds to the CIGI entity ID passed in.
| virtual int makVrv::DtCigiEntityVisualizer::findEntityWithUniqueId | ( | DtUniqueID | idToFind | ) | const [virtual] |
Returns the CIGI entity ID that corresponds to the unique ID passed in.
| virtual void makVrv::DtCigiEntityVisualizer::processEntityControl | ( | const CigiEntityCtrlV3_3 & | packet | ) | [protected, virtual] |
Process a CIGI Entity Control packet.
| virtual void makVrv::DtCigiEntityVisualizer::processRateControl | ( | const CigiRateCtrlV3_2 & | packet | ) | [protected, virtual] |
| virtual void makVrv::DtCigiEntityVisualizer::processArtPartControl | ( | const CigiArtPartCtrlV3 & | packet | ) | [protected, virtual] |
Process a CIGI Articulated Part Control packet.
| virtual void makVrv::DtCigiEntityVisualizer::processShortArtPartControl | ( | const CigiShortArtPartCtrlV3 & | packet | ) | [protected, virtual] |
Process a CIGI Short Articulated Part Control packet.
| virtual void makVrv::DtCigiEntityVisualizer::processComponentControl | ( | CigiCompCtrlV3_3 & | packet | ) | [protected, virtual] |
Process a CIGI Component Control packet.
Only processes those that specify entity components.
| virtual void makVrv::DtCigiEntityVisualizer::processShortComponentControl | ( | CigiShortCompCtrlV3_3 & | packet | ) | [protected, virtual] |
Process a CIGI Short Component Control packet.
Only processes those that specify entity components.
| virtual void makVrv::DtCigiEntityVisualizer::setTspiFromPacket | ( | const CigiEntityCtrlV3_3 & | packet, |
| DtCigiBaseEntity * | entity | ||
| ) | [protected, virtual] |
Sets the position/orientation of the specified entity from the packet.
Sets it in geodetic coordinates if not attached, and in body coordinates if attached.
| virtual DtCigiBaseEntity* makVrv::DtCigiEntityVisualizer::createNewEntity | ( | int | entityId, |
| int | entityType | ||
| ) | [protected, virtual] |
Create a new CIGI entity.
With the specified entity ID and type. Returns 0 if it cannot be created (typically when no model is specified).
| virtual void makVrv::DtCigiEntityVisualizer::removeEntity | ( | int | entityId | ) | [protected, virtual] |
Removes the entity with the CIGI ID specified.
| virtual void makVrv::DtCigiEntityVisualizer::setArtPartWithDof | ( | int | partId, |
| float | val, | ||
| CigiBaseShortArtPartCtrl::DofSelectGrp | selection, | ||
| DtCigiEntity * | entity | ||
| ) | [protected, virtual] |
Set the particular articulated part with the CIGI degree-of-freedom specifier.
| virtual void makVrv::DtCigiEntityVisualizer::setAnimationState | ( | const CigiEntityCtrlV3_3 & | packet, |
| DtCigiBaseEntity * | entity | ||
| ) | [protected, virtual] |
Set the animation state of the entity.
| DtCigiEntityVisualizer& makVrv::DtCigiEntityVisualizer::operator= | ( | const DtCigiEntityVisualizer & | orig | ) | [protected] |
std::map<int, DtCigiBaseEntity*> makVrv::DtCigiEntityVisualizer::myIdToEntityMap [protected] |