MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
markingSymbols.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
11 #include <lgrGui/lgrGui.h>
12 
13 #include <vlutil/vlString.h>
14 #include <mtl/mtl.h>
15 #include <vl/hostStructs.h>
16 
17 #include <QPixmapCache>
18 #include <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;
80  DtString mySensorPixName;
83 };
84 }
DtString myDetonationPixName
Definition: markingSymbols.h:79
bool myCreatedEnv
Definition: markingSymbols.h:74
DtString myDestroyedMaskPixName
Definition: markingSymbols.h:82
DtList * myMappings
Definition: markingSymbols.h:78
DtMtlEnvironment * myEnv
Definition: markingSymbols.h:75
QPixmapCache myIconCache
Definition: markingSymbols.h:77
#define DT_DLL_LGRGUI
Definition: lgrGui.h:19
DtString myDestroyedPixName
Definition: markingSymbols.h:81
Defines INPORT/EXPORT macros for lgrGui library.
Definition: markingSymbols.h:28
DtString mySensorPixName
Definition: markingSymbols.h:80

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)