VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Tutorials
File List
File Members
include
vrvCore
DtElementAttributes.h
Go to the documentation of this file.
1
/******************************************************************************
2
* Copyright (c) 2011 MAK Technologies, Inc.
3
* All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
* $RCSfile: DtElementAttributes.h,v $ $Revision: 1.2 $ $State: Exp $
7
******************************************************************************/
8
12
13
#pragma once
14
15
#include <
vrvCore/vrvCore.h
>
16
#include <
vrvCore/DtUniqueElementAttribute.h
>
17
18
#include <string>
19
20
namespace
makVrv
21
{
22
23
struct
DtElementAttributes
24
{
25
enum
AttributeIds
26
{
27
DisplayName
= 1,
28
ObjectVisibility
,
29
IndicatorVisibility
,
30
HeightAboveTerrainLinesEnabled
,
31
IndicatorsOnSelect
,
32
ElementIDHierarchyStateAttribute
,
33
ElementIDHierarchyDisplayStateAttribute
,
34
ElementOverlayName
,
35
ElementKindAndCategory
,
36
LocalScaleEnabled
,
37
LocalScaleAmount
,
38
ElementDamageState
,
39
40
UserStart
= 1000
41
};
42
};
43
44
//Typdefs for various attributes.
45
typedef
DtUniqueElementAttribute<std::string,DtElementAttributes::DisplayName>
46
DtElementAttributeDisplayName
;
47
48
typedef
DtUniqueElementAttribute<std::string,DtElementAttributes::ElementOverlayName>
49
DtElementAttributeOverlayName
;
50
51
typedef
DtUniqueElementAttribute<std::pair<int, int>
,
DtElementAttributes::ElementKindAndCategory
>
52
DtElementAttributeKindAndCategory
;
53
54
typedef
DtUniqueElementAttribute<bool,DtElementAttributes::ObjectVisibility>
55
DtElementAttributeVisibility
;
56
57
typedef
DtUniqueElementAttribute<bool,DtElementAttributes::IndicatorVisibility>
58
DtElementAttributeIndicatorsVisibility
;
59
60
typedef
DtUniqueElementAttribute<bool,DtElementAttributes::HeightAboveTerrainLinesEnabled>
61
DtElementAttributeTerrainLinesEnabled
;
62
63
typedef
DtUniqueElementAttribute<bool, DtElementAttributes::IndicatorsOnSelect>
64
DtElementAttributeIndicatorsOnSelect
;
65
66
typedef
DtUniqueElementAttribute<bool, DtElementAttributes::LocalScaleEnabled>
67
DtElementAttributeLocalScaleEnabled
;
68
69
typedef
DtUniqueElementAttribute<float, DtElementAttributes::LocalScaleAmount>
70
DtElementAttributeLocalScaleAmount
;
71
72
typedef
DtUniqueElementAttribute<unsigned int, DtElementAttributes::ElementDamageState>
73
DtElementAttributeDamageState
;
74
75
#ifndef _WIN32
76
template
class
DtUniqueElementAttribute<std::string,DtElementAttributes::DisplayName>
;
77
template
class
DtUniqueElementAttribute<std::string,DtElementAttributes::ElementOverlayName>
;
78
template
class
DtUniqueElementAttribute<bool,DtElementAttributes::ObjectVisibility>
;
79
template
class
DtUniqueElementAttribute<bool,DtElementAttributes::IndicatorVisibility>
;
80
template
class
DtUniqueElementAttribute<bool,DtElementAttributes::HeightAboveTerrainLinesEnabled>
;
81
template
class
DtUniqueElementAttribute<bool,DtElementAttributes::IndicatorsOnSelect>
;
82
template
class
DtUniqueElementAttribute<bool,DtElementAttributes::LocalScaleEnabled>
;
83
template
class
DtUniqueElementAttribute<float,DtElementAttributes::LocalScaleAmount>
;
84
#endif
85
}
86
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)