VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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. More...
 
typedef std::vector
< TacticalTypePair
TacticalTypePairList
 
typedef std::vector< intEntityIDList
 

Public Member Functions

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

Protected Member Functions

void slot_countEntitiesAdded (const DtElementData::ElementList &elementList)
 
void slot_countEntitiesRemoved (const DtElementData::UniqueIdList &elementIdList)
 
void slot_countDestroyedAndTacticals (const DtElementAttributeManager::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 (const std::string &dispName)
 
bool knownTacticalData (const std::string &dispName)
 
DtObjectsCountTreeInterface::TacticalGraphicType findTacticalDataType (const 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.

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 DtElementAttributeManager::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 ( const std::string &  dispName)
protected
bool makVrv::DtObjectsCountTreeLogic::knownTacticalData ( const std::string &  dispName)
protected
DtObjectsCountTreeInterface::TacticalGraphicType makVrv::DtObjectsCountTreeLogic::findTacticalDataType ( const 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 Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)