VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtCigiEntityVisualizer Class Reference

This class is responsible for processing various CIGI messages that pertain to CIGI entities and setting the data in the DtCigiEntity. More...

List of all members.

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 DtCigiBaseEntitycigiEntity (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 DtCigiBaseEntitycreateNewEntity (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)
DtCigiEntityVisualizeroperator= (const DtCigiEntityVisualizer &orig)

Protected Attributes

std::map< int, DtCigiBaseEntity * > myIdToEntityMap
DtAgentManagerInterfacemySceneInterface
DtCigiConnectionmyConnection

Detailed Description

This class is responsible for processing various CIGI messages that pertain to CIGI entities and setting the data in the DtCigiEntity.


Member Typedef Documentation


Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

virtual DtUniqueID makVrv::DtCigiEntityVisualizer::uniqueIdForCigiEntity ( int  cigiEntId) const [virtual]

Returns the unique ID that corresponds to the CIGI entity ID passed in.

Returns:
0 if not found
virtual const DtCigiBaseEntity* makVrv::DtCigiEntityVisualizer::cigiEntity ( int  entityId) const [virtual]

Returns the CIGI entity that corresponds to the CIGI entity ID passed in.

Returns:
0 if not found
virtual int makVrv::DtCigiEntityVisualizer::findEntityWithUniqueId ( DtUniqueID  idToFind) const [virtual]

Returns the CIGI entity ID that corresponds to the unique ID passed in.

Returns:
-1 if not found
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]

Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)