VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Tutorials
File List
File Members
include
vrvCore
DtElementEntry.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvCore/vrvCore.h
>
13
#include <
vrvCore/DtElementAttribute.h
>
14
#include <
vrvCore/DtUniqueID.h
>
15
16
#include <map>
17
18
namespace
makVrv
19
{
23
class
DT_DLL_VRVCORE
DtElementEntry
24
{
25
public
:
26
friend
class
DtElementData
;
27
28
enum
ElementType
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,
40
RemoteGraphic = 10,
41
TacticalGraphic= 11,
42
Intervisibility=12,
43
Feature=13,
44
TacticalSmoke=14,
45
UserStart = 128,
46
//All is not a type, it is a wild card used for searches.
47
All = ~0
48
};
49
50
typedef
unsigned
int
ObjectType
;
51
53
DtElementEntry
(
DtElementID
id
,
DtUniqueID
parentId,
ObjectType
type);
54
56
~
DtElementEntry
();
57
59
DtElementID
elementID()
const
;
60
62
DtElementID
parentID()
const
;
63
65
ObjectType
type()
const
;
66
68
const
DtElementAttribute
* findAttribute(
short
attributeId)
const
;
69
70
private
:
73
DtElementEntry
();
74
77
DtElementEntry
(
const
DtElementEntry
& );
78
81
DtElementEntry
& operator=(
const
DtElementEntry
& );
82
83
protected
:
84
typedef
std::map<short,DtElementAttribute*>
AttributeMap
;
85
DtElementID
myId
;
86
DtElementID
myParentId
;
87
ObjectType
myType
;
88
AttributeMap
myAttributes
;
89
};
90
}
91
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)