VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends
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 Types

typedef std::map< int,
DtCigiBaseEntity * > 
IdToEntityMap

Public Member Functions

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 DtCigiBaseEntitycigiEntity (int entityId)
 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.
virtual void restart ()
IdToEntityMapentityList ()
 Get access to all the entities currently being visualized.
const IdToEntityMapentityList () const

Public Attributes

boost::signal< void(int entityId)> signal_entityToBeDeleted
 Emitted when this entity's alpha has changed.

Protected Member Functions

 DtCigiEntityVisualizer (DtCigiConnection &connection, DtAgentManagerInterface &aSceneInterface)
 Constructor.
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 processDiGuyControlExt (const makCigiExt::DtCigiDiGuyCtrlExt &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, DtCigiBaseEntity *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

Friends

class DtCigiEntityVisualizerCreator

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

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

Destructor.

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

Constructor.

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 DtCigiBaseEntity* makVrv::DtCigiEntityVisualizer::cigiEntity ( int  entityId)
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::restart ( )
virtual
IdToEntityMap& makVrv::DtCigiEntityVisualizer::entityList ( )
inline

Get access to all the entities currently being visualized.

const IdToEntityMap& makVrv::DtCigiEntityVisualizer::entityList ( ) const
inline
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::processDiGuyControlExt ( const makCigiExt::DtCigiDiGuyCtrlExt 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,
DtCigiBaseEntity 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

Friends And Related Function Documentation

friend class DtCigiEntityVisualizerCreator
friend

Member Data Documentation

boost::signal<void(int entityId)> makVrv::DtCigiEntityVisualizer::signal_entityToBeDeleted

Emitted when this entity's alpha has changed.

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 Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)