VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtElementEntry.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vrvCore/DtUniqueID.h>
14 
15 #include <map>
16 
17 namespace makVrv
18 {
23  {
24  public:
25 
27  {
28  Unknown = 0,
29  Entity = 1,
30  Prop = 2,
31  TerrainPatch = 3,
32  Aggregate = 4,
33  Observer = 5,
34  Environmental= 6,
35  GraphicPoint = 7,
36  GraphicShape = 8,
37  GraphicVertex= 9, // These are the component vertices of GraphicShapes
38  RemoteGraphic = 10,
39  TacticalGraphic= 11, // deprecated; all tactical graphics are either GraphicShape or GraphicPoint
40  Intervisibility=12,
41  Feature=13,
42  TacticalSmoke=14,
43  BuoyOrBeacon=15,
44  DynamicTerrain=16,
45  LaserDesignator=17,
46  UserStart = 128,
47  //All is not a type, it is a wild card used for searches.
48  All = ~0
49  };
50 
51  typedef unsigned int ObjectType;
52  typedef std::map<short, DtElementAttribute*> AttributeMap;
53 
55  DtElementEntry(DtElementID id, DtUniqueID parentId, ObjectType type);
56 
58  ~DtElementEntry();
59 
61  DtElementID elementID() const;
62 
64  DtElementID parentID() const;
65 
67  ObjectType type() const;
68 
70  const DtElementAttribute* findAttribute(short attributeId) const;
71 
72  AttributeMap& attributes();
73 
74  const AttributeMap& attributes() const;
75 
76  private:
80 
84 
87  DtElementEntry& operator=( const DtElementEntry& );
88 
89  protected:
94  };
95 }
96 
AttributeMap myAttributes
Definition: DtElementEntry.h:93
Contains makVrv::DtElementAttribute class.
Definition: vrfObjectManipulationHandlerBaseClass.h:57
Definition: objectSettingsManager.h:49
DtElementEntry holds the non-simulation-specific data about an element, including its element type an...
Definition: DtElementEntry.h:22
unsigned int ObjectType
Definition: DtElementEntry.h:51
DtElementID myParentId
Definition: DtElementEntry.h:91
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
ElementType
Definition: DtElementEntry.h:26
ObjectType myType
Definition: DtElementEntry.h:92
Contains makVrv::DtUniqueID type.
Definition: vrfObjectManipulationHandlerBaseClass.h:56
std::map< short, DtElementAttribute * > AttributeMap
Definition: DtElementEntry.h:52
DtElementAttribute is a common base class used for all element attributes, such as those found in a D...
Definition: DtElementAttribute.h:20
DtElementID myId
Definition: DtElementEntry.h:90

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)