VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
28  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 DtElementData::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(std::string dispName);
64  bool knownTacticalData(std::string dispName);
65  DtObjectsCountTreeInterface::TacticalGraphicType findTacticalDataType(std::string dispName);
66 
67  DtObjectsCountTreeInterface::TacticalGraphicType tacticalType(std::pair<int,int> kindCat);
68 
69  protected:
76  };
77 }
78 

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)