VR-Forces 4.3 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
vrfGuiObjectInformationQt
environmentalStatePageItems.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2014 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrfGuiObjectInformationQt/vrfGuiObjectInformationQt.h
>
13
#include <
vrfGuiObjectInformationQt/entityInformationPageItems.h
>
14
15
class
QComboBox
;
16
17
namespace
makVrf
18
{
19
namespace
makVrfGuiObjectInformationQt
20
{
21
class
DtInformationDialogPageLogic;
22
23
class
DT_DLL_VRFGUIOBJECTINFORMATIONQT
DtEnvironmentalLocation
:
public
DtItemUpdateFunction
24
{
25
public
:
26
27
DtEnvironmentalLocation
(
DtInformationDialogPageLogic
* l)
28
:
DtItemUpdateFunction
(l)
29
, myPointNumber(0)
30
{
31
}
32
33
void
setPointNumber
(
int
i) { myPointNumber = i; };
34
35
virtual
QVariant value(
int
col,
int
role,
const
QTreeWidgetItem
*,
36
makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>
*);
37
virtual
bool
valueNeedsUpdate(
int
col,
makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>
*);
38
39
void
setLocation(
const
DtVector
& v)
40
{
41
myCurrentLocation = v;
42
}
43
44
const
DtVector
& location()
const
45
{
46
return
myCurrentLocation;
47
}
48
49
int
pointNumber()
const
50
{
51
return
myPointNumber;
52
}
53
54
protected
:
55
DtVector
myCurrentLocation
;
56
int
myPointNumber
;
57
};
58
59
class
DT_DLL_VRFGUIOBJECTINFORMATIONQT
DtEnvironmentalForce
:
public
DtEntityStatePageItem
60
{
61
public
:
62
DtEnvironmentalForce
(
makVrv::DtDe
& de)
63
:
DtEntityStatePageItem
(de)
64
{
65
}
66
67
DtEnvironmentalForce
(
DtInformationDialogPageLogic
* l);
68
69
static
std::string creatorName();
70
71
protected
:
72
virtual
QString value(
makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>
*);
73
virtual
QString title(
makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>
*);
74
};
75
76
typedef
DtItemUpdateFunctionCreator<DtEnvironmentalForce>
DtEnvironmentalForceCreator
;
77
78
class
DT_DLL_VRFGUIOBJECTINFORMATIONQT
DtEnvironmentalCenterPoint
:
public
DtEntityStatePageItem
79
{
80
public
:
81
DtEnvironmentalCenterPoint
(
makVrv::DtDe
& de)
82
:
DtEntityStatePageItem
(de)
83
{
84
}
85
86
DtEnvironmentalCenterPoint
(
DtInformationDialogPageLogic
* l);
87
88
static
std::string creatorName();
89
90
protected
:
91
virtual
QString value(
makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>
*);
92
virtual
QString title(
makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>
*);
93
};
94
95
typedef
DtItemUpdateFunctionCreator<DtEnvironmentalCenterPoint>
DtEnvironmentalCenterPointCreator
;
96
97
class
DT_DLL_VRFGUIOBJECTINFORMATIONQT
DtRouteLength
:
public
DtEntityStatePageItem
98
{
99
public
:
100
DtRouteLength
(
makVrv::DtDe
& de)
101
:
DtEntityStatePageItem
(de)
102
{
103
}
104
105
DtRouteLength
(
DtInformationDialogPageLogic
* l);
106
107
static
std::string creatorName();
108
109
virtual
bool
shouldBeHidden()
const
;
110
111
virtual
bool
needsPageLogicForWidgetRepresentation()
const
;
112
113
protected
:
114
virtual
QString value(
makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>
*);
115
virtual
QString widgetValue(
makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>
* s);
116
virtual
QString title(
makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>
*);
117
};
118
119
typedef
DtItemUpdateFunctionCreator<DtRouteLength>
DtRouteLengthCreator
;
120
121
class
DT_DLL_VRFGUIOBJECTINFORMATIONQT
DtEnvironmentalType
:
public
DtEntityStatePageItem
122
{
123
public
:
124
DtEnvironmentalType
(
makVrv::DtDe
& de)
125
:
DtEntityStatePageItem
(de)
126
{
127
}
128
129
DtEnvironmentalType
(
DtInformationDialogPageLogic
* l)
130
:
DtEntityStatePageItem
(l)
131
{
132
}
133
134
static
std::string creatorName();
135
136
protected
:
137
virtual
QString value(
makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>
*);
138
virtual
QString title(
makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>
*);
139
};
140
141
typedef
DtItemUpdateFunctionCreator<DtEnvironmentalType>
DtEnvironmentalTypeCreator
;
142
143
class
DT_DLL_VRFGUIOBJECTINFORMATIONQT
DtEnvironmentalExtendedLabels
:
public
DtObjectStateExtendedLabels
144
{
145
public
:
146
147
DtEnvironmentalExtendedLabels
(
makVrv::DtDe
& de)
148
:
DtObjectStateExtendedLabels
(de)
149
{
150
}
151
152
DtEnvironmentalExtendedLabels
(
DtInformationDialogPageLogic
* l);
153
154
static
std::string creatorName();
155
156
protected
:
157
virtual
void
stateViewUpdated(
makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>
*);
158
};
159
160
typedef
DtItemUpdateFunctionCreator<DtEnvironmentalExtendedLabels>
DtEnvironmentalExtendedLabelsCreator
;
161
}
162
}
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)