VR-Forces 4.1 Class Documentation
DtObjectsCountTreeLogic.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: $ $Revision: $ $State: $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvVrlQt/vrvVrlQt.h>
17 #include <vrvCore/DtEntityState.h>
19 #include <vector>
20 
21 namespace makVrv
22 {
27  {
28  public:
30 
31  typedef std::pair<std::string, DtObjectsCountTreeInterface::TacticalGraphicType> TacticalTypePair;
32  typedef std::vector<TacticalTypePair> TacticalTypePairList;
33  typedef std::vector<int> EntityIDList;
35 
36  public:
39 
42 
43  void refreshWidget();
44 
45  protected:
46  void slot_countEntitiesAdded(const DtElementData::ElementList& elementList);
47  void slot_countEntitiesRemoved(const DtElementData::UniqueIdList& elementIdList);
48  void slot_countDestroyedAndTacticals(const DtElementData::EntryAttributesList& attributeList);
49  void slot_tacticalGraphicRenamed( const DtUniqueID& tacticalId, const std::string& overlay);
50  void slot_tacticalGraphicRemoved( const DtUniqueID& tacticalId);
51 
52  void countOneEntity(const DtElementEntry* entry, const bool subtract = false);
53  void countOneDestroyed(const DtElementEntry* entry, const DtElementAttributeDamageState* damageState);
54  void countOneTactical(const DtElementAttributeDisplayName* dispName,
55  const DtElementAttributeKindAndCategory* kindCat);
56 
57  void rememberEntityID(int entityID);
58  void forgetEntityID(int entityID);
59  bool knownEntityID(int entityID);
60 
61  void rememberDestroyedID(int destroyedID);
62  void forgetDestroyedID(int destroyedID);
63  bool knownDestroyedID(int destroyedID);
64 
65  void rememberTacticalData(std::string dispName, DtObjectsCountTreeInterface::TacticalGraphicType tacticalType);
66  void forgetTacticalData(std::string dispName);
67  bool knownTacticalData(std::string dispName);
68  DtObjectsCountTreeInterface::TacticalGraphicType findTacticalDataType(std::string dispName);
69 
70  DtObjectsCountTreeInterface::TacticalGraphicType tacticalType(std::pair<int,int> kindCat);
71 
72  protected:
79  };
80 }
81 

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)