VR-Forces 4.1 Class Documentation
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtObjectsCountTreeLogic Class Reference

The logic for getting object counts from a simulation and populating an DtObjectsCountTreeInterface GUI. More...

Public Types

typedef std::pair< std::string,
DtObjectsCountTreeInterface::TacticalGraphicType
TacticalTypePair
 Typedefs describing lists of entity ids and of tactical element name/type pairs.
typedef std::vector
< TacticalTypePair
TacticalTypePairList
 Typedefs describing lists of entity ids and of tactical element name/type pairs.
typedef std::vector< int > EntityIDList
 Typedefs describing lists of entity ids and of tactical element name/type pairs.

Public Member Functions

 DtObjectsCountTreeLogic (DtDe &de, DtObjectsCountTreeInterface *iface)
 CTOR.
 ~DtObjectsCountTreeLogic ()
 DTOR.
void refreshWidget ()

Protected Member Functions

void slot_countEntitiesAdded (const DtElementData::ElementList &elementList)
void slot_countEntitiesRemoved (const DtElementData::UniqueIdList &elementIdList)
void slot_countDestroyedAndTacticals (const DtElementData::EntryAttributesList &attributeList)
void slot_tacticalGraphicRenamed (const DtUniqueID &tacticalId, const std::string &overlay)
void slot_tacticalGraphicRemoved (const DtUniqueID &tacticalId)
void countOneEntity (const DtElementEntry *entry, const bool subtract=false)
void countOneDestroyed (const DtElementEntry *entry, const DtElementAttributeDamageState *damageState)
void countOneTactical (const DtElementAttributeDisplayName *dispName, const DtElementAttributeKindAndCategory *kindCat)
void rememberEntityID (int entityID)
void forgetEntityID (int entityID)
bool knownEntityID (int entityID)
void rememberDestroyedID (int destroyedID)
void forgetDestroyedID (int destroyedID)
bool knownDestroyedID (int destroyedID)
void rememberTacticalData (std::string dispName, DtObjectsCountTreeInterface::TacticalGraphicType tacticalType)
void forgetTacticalData (std::string dispName)
bool knownTacticalData (std::string dispName)
DtObjectsCountTreeInterface::TacticalGraphicType findTacticalDataType (std::string dispName)
DtObjectsCountTreeInterface::TacticalGraphicType tacticalType (std::pair< int, int > kindCat)

Protected Attributes

DtDemyDe
DtObjectsCountTreeInterfacemyWidget
DtSignalConnectionManager myManager
EntityIDList entityIDs
EntityIDList destroyedIDs
TacticalTypePairList tacticalData

Detailed Description

The logic for getting object counts from a simulation and populating an DtObjectsCountTreeInterface GUI.

Member Typedef Documentation

Typedefs describing lists of entity ids and of tactical element name/type pairs.

Typedefs describing lists of entity ids and of tactical element name/type pairs.

Typedefs describing lists of entity ids and of tactical element name/type pairs.

Constructor & Destructor Documentation

makVrv::DtObjectsCountTreeLogic::DtObjectsCountTreeLogic ( DtDe de,
DtObjectsCountTreeInterface iface 
)

CTOR.

makVrv::DtObjectsCountTreeLogic::~DtObjectsCountTreeLogic ( )

DTOR.

Member Function Documentation

void makVrv::DtObjectsCountTreeLogic::refreshWidget ( )
void makVrv::DtObjectsCountTreeLogic::slot_countEntitiesAdded ( const DtElementData::ElementList elementList)
protected
void makVrv::DtObjectsCountTreeLogic::slot_countEntitiesRemoved ( const DtElementData::UniqueIdList elementIdList)
protected
void makVrv::DtObjectsCountTreeLogic::slot_countDestroyedAndTacticals ( const DtElementData::EntryAttributesList attributeList)
protected
void makVrv::DtObjectsCountTreeLogic::slot_tacticalGraphicRenamed ( const DtUniqueID tacticalId,
const std::string &  overlay 
)
protected
void makVrv::DtObjectsCountTreeLogic::slot_tacticalGraphicRemoved ( const DtUniqueID tacticalId)
protected
void makVrv::DtObjectsCountTreeLogic::countOneEntity ( const DtElementEntry entry,
const bool  subtract = false 
)
protected
void makVrv::DtObjectsCountTreeLogic::countOneDestroyed ( const DtElementEntry entry,
const DtElementAttributeDamageState damageState 
)
protected
void makVrv::DtObjectsCountTreeLogic::countOneTactical ( const DtElementAttributeDisplayName dispName,
const DtElementAttributeKindAndCategory kindCat 
)
protected
void makVrv::DtObjectsCountTreeLogic::rememberEntityID ( int  entityID)
protected
void makVrv::DtObjectsCountTreeLogic::forgetEntityID ( int  entityID)
protected
bool makVrv::DtObjectsCountTreeLogic::knownEntityID ( int  entityID)
protected
void makVrv::DtObjectsCountTreeLogic::rememberDestroyedID ( int  destroyedID)
protected
void makVrv::DtObjectsCountTreeLogic::forgetDestroyedID ( int  destroyedID)
protected
bool makVrv::DtObjectsCountTreeLogic::knownDestroyedID ( int  destroyedID)
protected
void makVrv::DtObjectsCountTreeLogic::rememberTacticalData ( std::string  dispName,
DtObjectsCountTreeInterface::TacticalGraphicType  tacticalType 
)
protected
void makVrv::DtObjectsCountTreeLogic::forgetTacticalData ( std::string  dispName)
protected
bool makVrv::DtObjectsCountTreeLogic::knownTacticalData ( std::string  dispName)
protected
DtObjectsCountTreeInterface::TacticalGraphicType makVrv::DtObjectsCountTreeLogic::findTacticalDataType ( std::string  dispName)
protected
DtObjectsCountTreeInterface::TacticalGraphicType makVrv::DtObjectsCountTreeLogic::tacticalType ( std::pair< int, int >  kindCat)
protected

Member Data Documentation

DtDe& makVrv::DtObjectsCountTreeLogic::myDe
protected
DtObjectsCountTreeInterface* makVrv::DtObjectsCountTreeLogic::myWidget
protected
DtSignalConnectionManager makVrv::DtObjectsCountTreeLogic::myManager
protected
EntityIDList makVrv::DtObjectsCountTreeLogic::entityIDs
protected
EntityIDList makVrv::DtObjectsCountTreeLogic::destroyedIDs
protected
TacticalTypePairList makVrv::DtObjectsCountTreeLogic::tacticalData
protected

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)