MAK Data Logger API Documentation for HLA
markingSymbols.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
11 #include "lgrGui.h"
12 
13 #include <vlutil/vlString.h>
14 #include <mtl/mtl.h>
15 #include <vl/hostStructs.h>
16 
17 #include <QtGui/QPixmapCache>
18 #include <QtGui/QPixmap>
19 
20 class DtMtlEnvironment;
21 class DtList;
22 
23 
24 namespace MAKLogger {
25 
26 class DtSymbolSpec;
27 
29 {
30 public:
31 
33  DtMarkingSymbols(DtMtlEnvironment* mtl);
34 
35  virtual ~DtMarkingSymbols();
36  virtual bool loadLispFile(const char* filename);
37 
39  virtual QPixmap getIconForEmitterSystem() const;
40  virtual QPixmap getBigIconForEmitterSystem() const;
41 
43  virtual QPixmap getIconForDetonation() const;
44 
46  virtual QPixmap getBigIconForEntity(
47  const DtEntityType& type, const DtForceType& force);
48 
50  virtual QPixmap getIconForEntity(const DtEntityType& type,
51  const DtForceType& force, bool destroyed = false);
52 
54  virtual QPixmap getIconForAggregate(const DtEntityType& type,
55  const DtForceType& force, bool destroyed = false);
56 
57 protected:
58 
59  void registerMtlParameters();
60  virtual bool lookupParameters();
61 
63  virtual void addMapping(DtSymbolSpec* newspec);
64  virtual DtSymbolSpec* getSymbol(const DtEntityType& type, int forceId) const;
65  virtual QPixmap getIconForDestroyed() const;
66 
67 protected:
68 
69  static DtlObjPtr parseSymbolMap(const DtlObjPtr& args, const DtlObjPtr&);
70  static DtSymbolSpec* parseBmpSymbol(const DtlObjPtr& args, DtlObjPtr& retval);
71 
72 protected:
73 
75  DtMtlEnvironment* myEnv;
76 
77  QPixmapCache myIconCache;
78  DtList* myMappings;
83 };
84 }

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)