VR-Vantage 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
class
DtVector;
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
166
virtual
void
selectionChanged(
const
DtSelectionManager::IdSet
& selected,
167
const
DtSelectionManager::IdSet
& deselected );
168
169
protected
:
170
171
DtDe
&
myDe
;
172
173
std::string
myPropType
;
174
DtSceneObjectAgent
*
mySceneObject
;
175
DtModelAgent
*
myObjectModel
;
176
DtScribeBoxModelAgent
*
myScribeBoxModel
;
177
179
std::string
myModelDefinition
;
180
182
std::string
mySearchExp
;
183
unsigned
int
mySearchIndex
;
184
186
std::string
myName
;
187
189
bool
myIsVisible
;
190
192
float
myAlpha
;
193
float
myR
;
194
float
myG
;
195
float
myB
;
196
201
double
myPosX
;
202
double
myPosY
;
203
double
myPosZ
;
204
205
//The Loaded orientation quaternion (x,y,z,w).
206
double
myOrientationX
;
207
double
myOrientationY
;
208
double
myOrientationZ
;
209
double
myOrientationW
;
210
211
//Runtime state.
212
bool
myIsTreeFlag
;
213
214
DtTerrainTreeSettings
*
myTerrainTreeSettings
;
215
216
DtAgentManagerInterface
&
myAgentManagerInterface
;
217
};
218
219
}
220
221
#endif
222
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)