VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtElementEntry.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 #include <vrvCore/DtUniqueID.h>
15 
16 #include <map>
17 
18 namespace makVrv
19 {
24  {
25  public:
26  friend class DtElementData;
27 
29  {
30  Unknown = 0,
31  Entity = 1,
32  Prop = 2,
33  TerrainPatch = 3,
34  Aggregate = 4,
35  Observer = 5,
36  Environmental= 6,
37  GraphicPoint = 7,
38  GraphicShape = 8,
39  GraphicVertex= 9, // These are the component vertices of GraphicShapes
40  RemoteGraphic = 10,
41  TacticalGraphic= 11, // deprecated; all tactical graphics are either GraphicShape or GraphicPoint
42  Intervisibility=12,
43  Feature=13,
44  TacticalSmoke=14,
45  BuoyOrBeacon=15,
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 
54  DtElementEntry(DtElementID id, DtUniqueID parentId, ObjectType type);
55 
57  ~DtElementEntry();
58 
60  DtElementID elementID() const;
61 
63  DtElementID parentID() const;
64 
66  ObjectType type() const;
67 
69  const DtElementAttribute* findAttribute(short attributeId) const;
70 
71  private:
75 
79 
82  DtElementEntry& operator=( const DtElementEntry& );
83 
84  protected:
85  typedef std::map<short,DtElementAttribute*> AttributeMap;
90  };
91 }
92 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)