VR-Forces 4.5 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
vrfGuiCore
vrfVertexManipulationHandler.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2014 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
8
10
11
#pragma once
12
13
#include <
vrfGuiCore/vrfGuiCore.h
>
14
#include <
vrfGuiCore/environmentalFacadeCollection.h
>
15
#include <
vrfGuiCore/vrfObjectManipulationHandlerBaseClass.h
>
16
#include <
vrfGuiCore/vrfShapeManipulationHandler.h
>
17
#include <
vrfGuiCore/vrfCircleManipulationHandler.h
>
18
#include <
vrfGuiCore/vrfBoxManipulationHandler.h
>
19
#include <
vrfGuiCore/vrfWeatherManipulationHandler.h
>
20
21
#include <vlutil/vlExceptions.h>
22
#include <
vrfGuiCore/vrlinkSimulatedEnvironmentProcess.h
>
23
24
#include <
vrvCore/DtUniqueID.h
>
25
26
#include <
vrvCore/DtSimData.h
>
27
28
#include <vlpi/entityType.h>
29
30
#include <matrix/vlVector.h>
31
32
namespace
makVrv
33
{
34
class
DtSimEntry;
35
class
DtAgentManagerInterface;
36
class
DtChannel;
37
struct
DtVrlinkSimulatedBaseState;
38
struct
DtVrlinkSimulatedEntityState;
39
};
40
41
namespace
makVrf
42
{
44
template
<
typename
_Handler>
45
class
DtVrfVertexManipulationHandler
:
public
_Handler
46
{
47
public
:
48
DtVrfVertexManipulationHandler
(
makVrv::DtDe
& de);
49
50
virtual
~DtVrfVertexManipulationHandler
();
51
52
public
:
54
virtual
void
editSelectedObjects
(
const
makVrv::DtUniqueID
& editId,
55
makVrv::DtChannel
& initiatingChannel,
double
waitTimeAfterComplete = 0.,
56
const
makVrv::DtSelectionManager::IdSet
& editing =
makVrv::DtSelectionManager::IdSet
());
57
58
virtual
HandlerType
type
()
const
{
return
Vertex
; };
59
60
protected
:
61
virtual
void
editSelectedVertex
(
const
makVrv::DtUniqueID
& vertexId,
62
const
DtVector
& vertexPos,
makVrv::DtChannel
& initiatingChannel );
63
64
virtual
void
slot_onStateViewUpdated
(
DtVrlinkSimulatedBaseStateView
* editStateView,
65
makVrv::DtUniqueID
sceneObjectId,
double
vx,
double
vy,
double
vz );
66
67
virtual
void
slot_onLocationChanged
(
const
DtVector
& location,
double
altAboveGround );
68
69
virtual
void
setLocation
(
const
DtVector
& loc );
70
72
virtual
DtVector
vertexPosition
(
DtEnvironmentalFacadeCollection
* iFace,
int
index)
const
;
73
75
virtual
bool
anchorPositionIsMouse
()
const
;
76
78
virtual
void
initializeEventProcessor
();
79
};
80
82
class
DT_DLL_VRFGUICORE
DtVrfShapeVertexManipulationHandler
:
public
DtVrfVertexManipulationHandler
<DtVrfShapeManipulationHandler>
83
{
84
public
:
85
DtVrfShapeVertexManipulationHandler
(
makVrv::DtDe
& de)
86
:
DtVrfVertexManipulationHandler
<
DtVrfShapeManipulationHandler
>(de)
87
{
88
}
89
90
virtual
~
DtVrfShapeVertexManipulationHandler
()
91
{
92
};
93
};
94
95
typedef
DtVrfObjectManipulationHandlerCreator<DtVrfShapeVertexManipulationHandler>
DtVrfShapeVertexManipulationHandlerCreator
;
96
98
class
DT_DLL_VRFGUICORE
DtVrfCircleVertexManipulationHandler
:
public
DtVrfVertexManipulationHandler
<DtVrfCircleManipulationHandler>
99
{
100
public
:
101
DtVrfCircleVertexManipulationHandler
(
makVrv::DtDe
& de)
102
:
DtVrfVertexManipulationHandler
<
DtVrfCircleManipulationHandler
>(de)
103
{
104
}
105
106
virtual
~
DtVrfCircleVertexManipulationHandler
()
107
{
108
};
109
};
110
111
typedef
DtVrfObjectManipulationHandlerCreator<DtVrfCircleVertexManipulationHandler>
DtVrfCircleVertexManipulationHandlerCreator
;
112
114
class
DT_DLL_VRFGUICORE
DtVrfBoxVertexManipulationHandler
:
public
DtVrfVertexManipulationHandler
<DtVrfBoxManipulationHandler>
115
{
116
public
:
117
DtVrfBoxVertexManipulationHandler
(
makVrv::DtDe
& de)
118
:
DtVrfVertexManipulationHandler
<
DtVrfBoxManipulationHandler
>(de)
119
{
120
}
121
122
virtual
~
DtVrfBoxVertexManipulationHandler
()
123
{
124
};
125
};
126
127
typedef
DtVrfObjectManipulationHandlerCreator<DtVrfBoxVertexManipulationHandler>
DtVrfBoxVertexManipulationHandlerCreator
;
128
130
class
DT_DLL_VRFGUICORE
DtVrfWeatherVertexBoxManipulationHandler
:
public
DtVrfVertexManipulationHandler
<DtVrfWeatherBoxManipulationHandler>
131
{
132
public
:
133
DtVrfWeatherVertexBoxManipulationHandler
(
makVrv::DtDe
& de)
134
:
DtVrfVertexManipulationHandler
<
DtVrfWeatherBoxManipulationHandler
>(de)
135
{
136
}
137
138
virtual
~
DtVrfWeatherVertexBoxManipulationHandler
()
139
{
140
};
141
};
142
143
class
DT_DLL_VRFGUICORE
DtVrfWeatherVertexAreaManipulationHandler
:
public
DtVrfVertexManipulationHandler
<DtVrfWeatherAreaManipulationHandler>
144
{
145
public
:
146
DtVrfWeatherVertexAreaManipulationHandler
(
makVrv::DtDe
& de)
147
:
DtVrfVertexManipulationHandler
<
DtVrfWeatherAreaManipulationHandler
>(de)
148
{
149
}
150
151
virtual
~
DtVrfWeatherVertexAreaManipulationHandler
()
152
{
153
};
154
};
155
156
class
DT_DLL_VRFGUICORE
DtVrfWeatherVertexCircleManipulationHandler
:
public
DtVrfVertexManipulationHandler
<DtVrfWeatherCircleManipulationHandler>
157
{
158
public
:
159
DtVrfWeatherVertexCircleManipulationHandler
(
makVrv::DtDe
& de)
160
:
DtVrfVertexManipulationHandler
<
DtVrfWeatherCircleManipulationHandler
>(de)
161
{
162
}
163
164
virtual
~
DtVrfWeatherVertexCircleManipulationHandler
()
165
{
166
};
167
};
168
169
typedef
DtVrfObjectManipulationHandlerCreator<DtVrfWeatherVertexBoxManipulationHandler>
DtVrfWeatherVertexBoxManipulationHandlerCreator
;
170
typedef
DtVrfObjectManipulationHandlerCreator<DtVrfWeatherVertexAreaManipulationHandler>
DtVrfWeatherVertexAreaManipulationHandlerCreator
;
171
typedef
DtVrfObjectManipulationHandlerCreator<DtVrfWeatherVertexCircleManipulationHandler>
DtVrfWeatherVertexCircleManipulationHandlerCreator
;
172
}
173
174
#include <vrfGuiCore/vrfVertexManipulationHandler.inl>
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)