VR-Vantage 2.4 API Documentation
Home
Modules
Namespaces
Classes
Files
Libraries
Examples
Tutorials
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
/******************************************************************************
6
** $RCSfile: DtProp.h,v $ $Revision: 1.35 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtProp_H_
14
#define DtProp_H_
15
16
#include <
vrvCore/vrvCore.h
>
17
18
#include <
vrvCore/DtSelectionManager.h
>
19
#include <
vrvCore/DtUniqueID.h
>
20
21
#include <
makArchives/DtPropRecord.h
>
22
#include <string>
23
24
#include <matrix/vlVector.h>
25
26
namespace
makVrv
27
{
28
class
DtDe;
29
class
DtModelAgent;
30
class
DtSceneObjectAgent;
31
class
DtScribeBoxModelAgent;
32
class
DtAgentManagerInterface;
33
class
DtTerrainTreeSettings;
34
37
class
DT_DLL_VRVCORE
DtProp
38
{
39
public
:
40
42
DtProp
(
DtDe
& de,
DtAgentManagerInterface
& agentManagerInterface,
43
const
std::string
& propType,
const
std::string
&
name
);
44
45
private
:
46
48
DtProp
(
const
DtProp
& copy);
49
51
DtProp
& operator=(
const
DtProp
& copy);
52
53
public
:
54
56
virtual
~
DtProp
();
57
59
void
destroy();
60
62
bool
operator==(
const
DtProp
& prop)
const
;
63
65
bool
getRecord(
makArchives::DtPropRecord
& recOut)
const
;
66
68
void
setFromRecord(
const
makArchives::DtPropRecord
& rec);
69
71
void
setColorFilter(
float
r
,
float
g
,
float
b
,
float
a
);
72
74
void
setVisible(
bool
isVisible);
75
77
void
setScribed(
bool
isSelected);
78
80
bool
scribed()
const
;
81
83
85
DtUniqueID
uniqueID()
const
;
86
88
void
getPosition(
double
&
x
,
double
&
y
,
double
&
z
)
const
;
89
91
void
setPosition(
double
x,
double
y,
double
z);
92
94
void
getOrientation(
double
& x,
double
& y,
double
& z,
double
&
w
)
const
;
95
97
void
setOrientation(
double
x,
double
y,
double
z,
double
w);
98
100
void
setOrientation(
double
psi,
double
theta,
double
phi);
101
103
const
std::string
& propType()
const
;
104
106
void
setPropType(
const
std::string
& proptype);
107
109
const
std::string
& modelDefinition()
const
;
110
112
void
setModelDefinition(
const
std::string
& modelDefinition);
113
115
void
setExternalNodeLocation(
const
std::string
& searchExpression,
unsigned
int
index
);
116
118
const
std::string
& searchExp()
const
;
119
121
unsigned
int
searchIndex()
const
;
122
124
void
setTerrainTreeSettings(
DtTerrainTreeSettings
* terrainTreeSettings);
125
127
const
DtTerrainTreeSettings
* terrainTreeSettings(
void
)
const
;
128
130
131
float
red()
const
;
132
float
green
()
const
;
133
float
blue
()
const
;
134
float
alpha
()
const
;
136
138
const
std::string
&
name
()
const
;
139
141
void
setName(
const
std::string
& name);
142
143
bool
isVisible()
const
;
144
146
147
const
DtSceneObjectAgent
* sceneObject()
const
;
149
151
152
DtSceneObjectAgent
* sceneObject();
154
156
const
DtModelAgent
* model()
const
;
157
159
DtModelAgent
* model();
160
162
bool
operator!=(
const
DtProp
& prop)
const
;
163
164
protected
:
165
169
friend
class
DtTerrainLayer
;
170
171
virtual
void
selectionChanged(
const
DtSelectionManager::IdSet
& selected,
172
const
DtSelectionManager::IdSet
& deselected );
173
174
protected
:
175
176
DtDe
&
myDe
;
177
178
std::string
myPropType
;
179
DtSceneObjectAgent
*
mySceneObject
;
180
DtModelAgent
*
myObjectModel
;
181
DtScribeBoxModelAgent
*
myScribeBoxModel
;
182
184
std::string
myModelDefinition
;
185
187
std::string
mySearchExp
;
188
unsigned
int
mySearchIndex
;
189
191
std::string
myName
;
192
194
bool
myIsVisible
;
195
197
float
myAlpha
;
198
float
myR
;
199
float
myG
;
200
float
myB
;
201
206
double
myPosX
;
207
double
myPosY
;
208
double
myPosZ
;
209
210
//The Loaded orientation quaternion (x,y,z,w).
211
double
myOrientationX
;
212
double
myOrientationY
;
213
double
myOrientationZ
;
214
double
myOrientationW
;
215
216
//Runtime state.
217
bool
myIsTreeFlag
;
218
219
DtTerrainTreeSettings
*
myTerrainTreeSettings
;
220
221
DtAgentManagerInterface
&
myAgentManagerInterface
;
222
};
223
224
}
225
226
#endif
227
Copyright © 2005-2018 VT MAK. All Rights Reserved (
www.mak.com
)