VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | 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...

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 processDiGuyControl (const makCigiExt::DtCigiDiGuyCtrl &packet)
 Process our user-defined CIGI DiGuy 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.
virtual void resetSpatialAttributes ()
 Reset the spacial attributes of all CIGI entities.
 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

makVrv::DtCigiEntityVisualizer::DtCigiEntityVisualizer ( DtCigiConnection connection,
DtAgentManagerInterface aSceneInterface 
)

Constructor.

virtual makVrv::DtCigiEntityVisualizer::~DtCigiEntityVisualizer ( )
virtual

Destructor.

makVrv::DtCigiEntityVisualizer::DtCigiEntityVisualizer ( const DtCigiEntityVisualizer orig)
protected

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)
protectedvirtual

Process a CIGI Entity Control packet.

virtual void makVrv::DtCigiEntityVisualizer::processRateControl ( const CigiRateCtrlV3_2 &  packet)
protectedvirtual
virtual void makVrv::DtCigiEntityVisualizer::processArtPartControl ( const CigiArtPartCtrlV3 &  packet)
protectedvirtual

Process a CIGI Articulated Part Control packet.

virtual void makVrv::DtCigiEntityVisualizer::processShortArtPartControl ( const CigiShortArtPartCtrlV3 &  packet)
protectedvirtual

Process a CIGI Short Articulated Part Control packet.

virtual void makVrv::DtCigiEntityVisualizer::processComponentControl ( CigiCompCtrlV3_3 &  packet)
protectedvirtual

Process a CIGI Component Control packet.

Only processes those that specify entity components.

virtual void makVrv::DtCigiEntityVisualizer::processShortComponentControl ( CigiShortCompCtrlV3_3 &  packet)
protectedvirtual

Process a CIGI Short Component Control packet.

Only processes those that specify entity components.

virtual void makVrv::DtCigiEntityVisualizer::processDiGuyControl ( const makCigiExt::DtCigiDiGuyCtrl packet)
protectedvirtual

Process our user-defined CIGI DiGuy Control packet.

virtual void makVrv::DtCigiEntityVisualizer::setTspiFromPacket ( const CigiEntityCtrlV3_3 &  packet,
DtCigiBaseEntity entity 
)
protectedvirtual

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 
)
protectedvirtual

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)
protectedvirtual

Removes the entity with the CIGI ID specified.

virtual void makVrv::DtCigiEntityVisualizer::setArtPartWithDof ( int  partId,
float  val,
CigiBaseShortArtPartCtrl::DofSelectGrp  selection,
DtCigiEntity entity 
)
protectedvirtual

Set the particular articulated part with the CIGI degree-of-freedom specifier.

virtual void makVrv::DtCigiEntityVisualizer::setAnimationState ( const CigiEntityCtrlV3_3 &  packet,
DtCigiBaseEntity entity 
)
protectedvirtual

Set the animation state of the entity.

virtual void makVrv::DtCigiEntityVisualizer::resetSpatialAttributes ( )
protectedvirtual

Reset the spacial attributes of all CIGI entities.

Note
Called when coordinate system has changed.
DtCigiEntityVisualizer& makVrv::DtCigiEntityVisualizer::operator= ( const DtCigiEntityVisualizer orig)
protected

Member Data Documentation

std::map<int, DtCigiBaseEntity*> makVrv::DtCigiEntityVisualizer::myIdToEntityMap
protected
DtAgentManagerInterface& makVrv::DtCigiEntityVisualizer::mySceneInterface
protected
DtCigiConnection& makVrv::DtCigiEntityVisualizer::myConnection
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)