VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtObjectsCountTreeLogic.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvVrlQt/vrvVrlQt.h>
14 #include <vrvCore/DtEntityState.h>
16 #include <vector>
17 
18 namespace makVrv
19 {
24  {
25  public:
27  typedef std::pair<std::string, DtObjectsCountTreeInterface::TacticalGraphicType> TacticalTypePair;
29  typedef std::vector<TacticalTypePair> TacticalTypePairList;
30  typedef std::vector<int> EntityIDList;
32 
33  public:
36 
39 
40  void refreshWidget();
41 
42  protected:
43  void slot_countEntitiesAdded(const DtElementData::ElementList& elementList);
44  void slot_countEntitiesRemoved(const DtElementData::UniqueIdList& elementIdList);
45  void slot_countDestroyedAndTacticals(const DtElementAttributeManager::EntryAttributesList& attributeList);
46  void slot_tacticalGraphicRenamed( const DtUniqueID& tacticalId, const std::string& overlay);
47  void slot_tacticalGraphicRemoved( const DtUniqueID& tacticalId);
48 
49  void countOneEntity(const DtElementEntry* entry, const bool subtract = false);
50  void countOneDestroyed(const DtElementEntry* entry, const DtElementAttributeDamageState* damageState);
51  void countOneTactical(const DtElementAttributeDisplayName* dispName,
52  const DtElementAttributeKindAndCategory* kindCat);
53 
54  void rememberEntityID(int entityID);
55  void forgetEntityID(int entityID);
56  bool knownEntityID(int entityID);
57 
58  void rememberDestroyedID(int destroyedID);
59  void forgetDestroyedID(int destroyedID);
60  bool knownDestroyedID(int destroyedID);
61 
62  void rememberTacticalData(std::string dispName, DtObjectsCountTreeInterface::TacticalGraphicType tacticalType);
63  void forgetTacticalData(const std::string& dispName);
64  bool knownTacticalData(const std::string& dispName);
65  DtObjectsCountTreeInterface::TacticalGraphicType findTacticalDataType(const std::string& dispName);
66 
67  DtObjectsCountTreeInterface::TacticalGraphicType tacticalType(std::pair<int,int> kindCat);
68 
69  protected:
76  };
77 }
78 
The logic for getting object counts from a simulation and populating an DtObjectsCountTreeInterface G...
Definition: DtObjectsCountTreeLogic.h:23
DtSignalConnectionManager myManager
Definition: DtObjectsCountTreeLogic.h:72
DtObjectsCountTreeInterface * myWidget
Definition: DtObjectsCountTreeLogic.h:71
std::pair< std::string, DtObjectsCountTreeInterface::TacticalGraphicType > TacticalTypePair
Typedefs describing lists of entity ids and of tactical element name/type pairs.
Definition: DtObjectsCountTreeLogic.h:28
#define DT_DLL_VRVVRLQT
Definition: vrvVrlQt.h:19
DtElementEntry holds the non-simulation-specific data about an element, including its element type an...
Definition: DtElementEntry.h:22
Contains DLL export macros.
DtDe & myDe
Definition: DtObjectsCountTreeLogic.h:70
Contains makVrv::DtObjectsCountTreeInterface class.
std::vector< TacticalTypePair > TacticalTypePairList
Definition: DtObjectsCountTreeLogic.h:29
TacticalGraphicType
Enumeration for specifying different types of tactical graphics controls.
Definition: DtObjectsCountTreeInterface.h:27
std::vector< EntryAttributes > EntryAttributesList
Definition: DtElementAttributeManager.h:43
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Contains makVrv::DtEntityState class.
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
std::vector< int > EntityIDList
Definition: DtObjectsCountTreeLogic.h:30
std::vector< DtElementEntry * > ElementList
Type definition for a vector of DtElementEntry pointers.
Definition: DtElementData.h:46
Base class to provide boost signal/slot management.
The interface used by the DtObjectsCountTreeWidget and the DtObjectsCountTreeLogic.
Definition: DtObjectsCountTreeInterface.h:23
std::vector< DtElementID > UniqueIdList
Definition: DtElementData.h:48
Contains the DtElementAttributeManager class declaration.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Definition: DtUniqueElementAttribute.h:76
EntityIDList destroyedIDs
Definition: DtObjectsCountTreeLogic.h:74
TacticalTypePairList tacticalData
Definition: DtObjectsCountTreeLogic.h:75
EntityIDList entityIDs
Definition: DtObjectsCountTreeLogic.h:73

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)