VR-Vantage 2.8 API Documentation
Home
Modules
Namespaces
Classes
Files
Libraries
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCore
DtProp.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#ifndef DtProp_H_
11
#define DtProp_H_
12
13
#include <
vrvCore/vrvCore.h
>
14
15
#include <
vrvCore/DtSelectionManager.h
>
16
#include <
vrvCore/DtUniqueID.h
>
17
18
#include <
makArchives/DtPropRecord.h
>
19
#include <string>
20
21
#include <matrix/vlVector.h>
22
23
namespace
makVrv
24
{
25
class
DtDe;
26
class
DtModelAgent;
27
class
DtSceneObjectAgent;
28
class
DtScribeBoxModelAgent;
29
class
DtAgentManagerInterface;
30
class
DtTerrainTreeSettings;
31
34
class
DT_DLL_VRVCORE
DtProp
35
{
36
public
:
37
39
DtProp
(
DtDe
& de,
DtAgentManagerInterface
& agentManagerInterface,
40
const
std::string
& propType,
const
std::string
&
name
);
41
42
private
:
43
45
DtProp
(
const
DtProp
& copy);
46
48
DtProp
& operator=(
const
DtProp
& copy);
49
50
public
:
51
53
virtual
~
DtProp
();
54
56
void
destroy();
57
59
bool
operator==
(
const
DtProp
& prop)
const
;
60
62
bool
getRecord(
makArchives::DtPropRecord
& recOut)
const
;
63
65
void
setFromRecord(
const
makArchives::DtPropRecord
& rec);
66
68
void
setColorFilter(
float
r
,
float
g
,
float
b
,
float
a
);
69
71
void
setVisible(
bool
isVisible);
72
74
void
setScribed(
bool
isSelected);
75
77
bool
scribed()
const
;
78
80
82
DtUniqueID
uniqueID()
const
;
83
85
void
getPosition(
double
&
x
,
double
&
y
,
double
&
z
)
const
;
86
88
void
setPosition(
double
x,
double
y,
double
z);
89
91
void
getOrientation(
double
& x,
double
& y,
double
& z,
double
&
w
)
const
;
92
94
void
setOrientation(
double
x,
double
y,
double
z,
double
w);
95
97
void
setOrientation(
double
psi,
double
theta,
double
phi);
98
100
const
std::string
& propType()
const
;
101
103
void
setPropType(
const
std::string
& proptype);
104
106
const
std::string
& modelDefinition()
const
;
107
109
void
setModelDefinition(
const
std::string
& modelDefinition);
110
112
void
setExternalNodeLocation(
const
std::string
& searchExpression,
unsigned
int
index
);
113
115
const
std::string
& searchExp()
const
;
116
118
unsigned
int
searchIndex()
const
;
119
121
void
setTerrainTreeSettings(
DtTerrainTreeSettings
* terrainTreeSettings);
122
124
const
DtTerrainTreeSettings
* terrainTreeSettings(
void
)
const
;
125
127
128
float
red
()
const
;
129
float
green
()
const
;
130
float
blue
()
const
;
131
float
alpha
()
const
;
133
135
const
std::string
&
name
()
const
;
136
138
void
setName(
const
std::string
& name);
139
140
bool
isVisible()
const
;
141
143
144
const
DtSceneObjectAgent
* sceneObject()
const
;
146
148
149
DtSceneObjectAgent
* sceneObject();
151
153
const
DtModelAgent
* model()
const
;
154
156
DtModelAgent
* model();
157
159
bool
operator!=(
const
DtProp
& prop)
const
;
160
161
protected
:
162
166
friend
class
DtTerrainLayer
;
167
168
virtual
void
selectionChanged(
const
DtSelectionManager::IdSet
& selected,
169
const
DtSelectionManager::IdSet
& deselected );
170
171
protected
:
172
173
DtDe
&
myDe
;
174
175
std::string
myPropType
;
176
DtSceneObjectAgent
*
mySceneObject
;
177
DtModelAgent
*
myObjectModel
;
178
DtScribeBoxModelAgent
*
myScribeBoxModel
;
179
181
std::string
myModelDefinition
;
182
184
std::string
mySearchExp
;
185
unsigned
int
mySearchIndex
;
186
188
std::string
myName
;
189
191
bool
myIsVisible
;
192
194
float
myAlpha
;
195
float
myR
;
196
float
myG
;
197
float
myB
;
198
203
double
myPosX
;
204
double
myPosY
;
205
double
myPosZ
;
206
207
//The Loaded orientation quaternion (x,y,z,w).
208
double
myOrientationX
;
209
double
myOrientationY
;
210
double
myOrientationZ
;
211
double
myOrientationW
;
212
213
//Runtime state.
214
bool
myIsTreeFlag
;
215
216
DtTerrainTreeSettings
*
myTerrainTreeSettings
;
217
218
DtAgentManagerInterface
&
myAgentManagerInterface
;
219
};
220
221
}
222
223
#endif
224
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (
www.mak.com
)