VR-Exchange 2.7 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
markingSymbols.h
Go to the documentation of this file.
1 /*********************************************************************
2  ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #ifndef stealthSymbolMap_H_
7 #define stealthSymbolMap_H_
8 
9 #include <vlutil/vlString.h>
10 #include <mtl/mtl.h>
11 #include <vl/hostStructs.h>
12 #include <portalApp/dllExport.h>
13 
14 #include <QtGui/QPixmapCache>
15 #include <QtGui/QPixmap>
16 
17 class DtMtlEnvironment;
18 class DtList;
19 
20 
21 namespace MAKVrExchange {
22 
23 class DtSymbolSpec;
24 
26 {
27 public:
28 
30  DtMarkingSymbols(DtMtlEnvironment* mtl);
31 
32  virtual ~DtMarkingSymbols();
33  virtual bool loadLispFile(const char* filename);
34 
36  virtual QPixmap getIconForEmitterSystem() const;
37  virtual QPixmap getBigIconForEmitterSystem() const;
38 
40  virtual QPixmap getIconForDetonation() const;
41 
43  virtual QPixmap getBigIconForEntity(
44  const DtEntityType& type, const DtForceType& force);
45 
47  virtual QPixmap getIconForEntity(const DtEntityType& type,
48  const DtForceType& force, bool destroyed = false);
49 
51  virtual QPixmap getIconForAggregate(const DtEntityType& type,
52  const DtForceType& force, bool destroyed = false);
53 
54 protected:
55 
56  void registerMtlParameters();
57  virtual bool lookupParameters();
58 
60  virtual void addMapping(DtSymbolSpec* newspec);
61  virtual DtSymbolSpec* getSymbol(const DtEntityType& type, int forceId) const;
62  virtual QPixmap getIconForDestroyed() const;
63 
64 protected:
65 
66  static DtlObjPtr parseSymbolMap(const DtlObjPtr& args, const DtlObjPtr&);
67  static DtSymbolSpec* parseBmpSymbol(const DtlObjPtr& args, DtlObjPtr& retval);
68 
69 protected:
70 
72  DtMtlEnvironment* myEnv;
73 
74  QPixmapCache myIconCache;
75  DtList* myMappings;
80 };
81 }
82 #endif
bool myCreatedEnv
Definition: markingSymbols.h:71
QPixmapCache myIconCache
Definition: markingSymbols.h:74
DtList * myMappings
Definition: markingSymbols.h:75
DtString myDetonationPixName
Definition: markingSymbols.h:76
DtMtlEnvironment * myEnv
Definition: markingSymbols.h:72
#define DT_DLL_LIBPORTALAPP
Definition: include/portalApp/dllExport.h:20
Definition: markingSymbols.h:25
DtString myDestroyedPixName
Definition: markingSymbols.h:78
DtString mySensorPixName
Definition: markingSymbols.h:77
DtString myDestroyedMaskPixName
Definition: markingSymbols.h:79

Document ID: Generated on Mon Apr 19 15:55:22 EDT 2021 from SVN revision 227909
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)