VR-Forces 4.3.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCoreQt
DtObjectContextItems.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright (c) 2015 MAK Technologies, Inc.
3
* All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvCoreQt/vrvCoreQt.h
>
13
#include <
vrvCoreQt/DtMenu.h
>
14
#include <
vrvCoreQt/DtMenuItem.h
>
15
16
#include <
vrvCore/DtModelDefinition.h
>
17
#include <
vrvCore/DtObserverObject.h
>
18
19
#include <QtGui/QMenu>
20
21
namespace
makVrv
22
{
23
27
class
DT_DLL_VRVCOREQT
DtTransparencyToggleItem
:
public
DtMenuItem
28
{ Q_OBJECT;
29
public
:
30
32
DtTransparencyToggleItem
(
DtDe
&);
33
35
virtual
~
DtTransparencyToggleItem
();
36
38
virtual
QAction
* createAction(
DtDe
&,
QWidget
* parent);
39
40
protected
:
41
42
virtual
void
on_triggered();
43
44
virtual
void
on_aboutToShow();
45
46
protected
:
47
48
DtDe
&
myDe
;
49
QAction
*
myQAction
;
50
51
};
52
57
class
DT_DLL_VRVCOREQT
DtAttachItem
:
public
DtMenuItem
58
{ Q_OBJECT;
59
public
:
60
62
DtAttachItem
(
const
std::string& menuItemIdName,
DtDe
& de );
63
65
virtual
~
DtAttachItem
();
66
68
virtual
QAction
* createAction(
DtDe
&,
QWidget
* parent) = 0;
69
70
protected
:
71
72
virtual
void
setAttachMode(
DtObserverObject::AttachType
attachType );
73
74
virtual
void
attachSelected();
75
76
protected
:
77
78
DtDe
&
myDe
;
79
QAction
*
myQAction
;
80
81
};
82
86
class
DT_DLL_VRVCOREQT
DtAttachFollowItem
:
public
DtAttachItem
87
{ Q_OBJECT;
88
public
:
89
91
DtAttachFollowItem
(
DtDe
& );
92
94
virtual
~
DtAttachFollowItem
();
95
97
virtual
QAction
* createAction(
DtDe
&,
QWidget
* parent );
98
99
protected
:
100
101
virtual
void
on_triggered();
102
103
virtual
void
on_aboutToShow();
104
105
};
106
110
class
DT_DLL_VRVCOREQT
DtAttachSpaceFollowItem
:
public
DtAttachItem
111
{ Q_OBJECT;
112
public
:
113
115
DtAttachSpaceFollowItem
(
DtDe
& );
116
118
virtual
~
DtAttachSpaceFollowItem
();
119
121
virtual
QAction
* createAction(
DtDe
&,
QWidget
* parent );
122
123
protected
:
124
125
virtual
void
on_triggered();
126
127
virtual
void
on_aboutToShow();
128
129
};
130
134
class
DT_DLL_VRVCOREQT
DtAttachMimicItem
:
public
DtAttachItem
135
{
136
Q_OBJECT;
137
public
:
139
DtAttachMimicItem
(
DtDe
&);
140
142
virtual
~
DtAttachMimicItem
();
143
145
virtual
QAction
* createAction(
DtDe
&,
QWidget
* parent);
146
147
protected
:
148
virtual
void
on_triggered();
149
150
virtual
void
on_aboutToShow();
151
};
152
153
157
class
DT_DLL_VRVCOREQT
DtAttachTetherItem
:
public
DtAttachItem
158
{
159
Q_OBJECT;
160
public
:
162
DtAttachTetherItem
(
DtDe
&);
163
165
virtual
~
DtAttachTetherItem
();
166
168
virtual
QAction
* createAction(
DtDe
&,
QWidget
* parent);
169
170
protected
:
171
virtual
void
on_triggered();
172
173
virtual
void
on_aboutToShow();
174
};
175
179
class
DT_DLL_VRVCOREQT
DtAttachTrackItem
:
public
DtAttachItem
180
{
181
Q_OBJECT;
182
public
:
184
DtAttachTrackItem
(
DtDe
&);
185
187
virtual
~
DtAttachTrackItem
();
188
190
virtual
QAction
* createAction(
DtDe
&,
QWidget
* parent);
191
192
protected
:
193
virtual
void
on_triggered();
194
195
virtual
void
on_aboutToShow();
196
};
197
201
class
DT_DLL_VRVCOREQT
DtAttachTetherTrackItem
:
public
DtAttachItem
202
{
203
Q_OBJECT;
204
public
:
206
DtAttachTetherTrackItem
(
DtDe
&);
207
209
virtual
~
DtAttachTetherTrackItem
();
210
212
virtual
QAction
* createAction(
DtDe
&,
QWidget
* parent);
213
214
protected
:
215
virtual
void
on_triggered();
216
217
virtual
void
on_aboutToShow();
218
};
219
223
class
DT_DLL_VRVCOREQT
DtAttachMimicTrackItem
:
public
DtAttachItem
224
{
225
Q_OBJECT;
226
public
:
228
DtAttachMimicTrackItem
(
DtDe
&);
229
231
virtual
~
DtAttachMimicTrackItem
();
232
234
virtual
QAction
* createAction(
DtDe
&,
QWidget
* parent);
235
236
protected
:
237
virtual
void
on_triggered();
238
239
virtual
void
on_aboutToShow();
240
};
241
245
class
DT_DLL_VRVCOREQT
DtCreateInsetViewItem
:
public
DtMenuItem
246
{
247
Q_OBJECT;
248
public
:
250
DtCreateInsetViewItem
(
DtDe
&);
251
253
virtual
~
DtCreateInsetViewItem
();
254
256
virtual
QAction
* createAction(
DtDe
&,
QWidget
* parent);
257
258
protected
:
259
virtual
void
on_triggered();
260
261
virtual
void
on_aboutToShow();
262
263
protected
:
264
DtDe
&
myDe
;
265
QAction
*
myQAction
;
266
};
267
271
class
DT_DLL_VRVCOREQT
DtCreateInstrumentPanelMenu
:
public
QObject
,
272
public
DtMenu
273
{
274
Q_OBJECT;
275
public
:
277
DtCreateInstrumentPanelMenu
(
DtDe
&);
278
280
virtual
~
DtCreateInstrumentPanelMenu
();
281
284
virtual
QMenu
* createMenu(
DtDe
&,
QWidget
* parent);
285
286
protected
slots:
289
virtual
void
onAboutToShow();
290
291
protected
:
292
QMenu
*
myMenu
;
293
};
294
295
298
class
DT_DLL_VRVCOREQT
DtCreateInstrumentPanelItem
:
public
QAction
299
{
300
Q_OBJECT;
301
public
:
303
DtCreateInstrumentPanelItem
(
DtDe
&,
const
DtModelDefinition
& definition,
304
QObject
* parent);
305
307
virtual
~
DtCreateInstrumentPanelItem
();
308
309
protected
slots:
312
virtual
void
triggered(
bool
checked);
313
314
protected
:
315
DtDe
&
myDe
;
316
DtModelDefinition
myModelDefinition
;
317
};
318
322
class
DT_DLL_VRVCOREQT
DtShowHideItem
:
public
DtMenuItem
323
{
324
Q_OBJECT;
325
public
:
327
DtShowHideItem
(
DtDe
&);
328
330
virtual
~
DtShowHideItem
();
331
333
virtual
QAction
* createAction(
DtDe
&,
QWidget
* parent);
334
335
protected
:
336
virtual
void
on_triggered();
337
338
virtual
void
on_aboutToShow();
339
340
protected
:
341
DtDe
&
myDe
;
342
QAction
*
myQAction
;
343
};
344
}
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)