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
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
31
class
DtVector
;
32
33
namespace
makVrv
34
{
35
class
DtSimEntry;
36
class
DtAgentManagerInterface;
37
class
DtChannel;
38
struct
DtVrlinkSimulatedBaseState;
39
struct
DtVrlinkSimulatedEntityState;
40
};
41
42
namespace
makVrf
43
{
45
template
<
typename
_Handler>
46
class
DtVrfVertexManipulationHandler
:
public
_Handler
47
{
48
public
:
49
DtVrfVertexManipulationHandler
(
makVrv::DtDe
& de);
50
51
virtual
~DtVrfVertexManipulationHandler
();
52
53
public
:
55
virtual
void
editSelectedObjects
(
const
makVrv::DtUniqueID
& editId,
56
makVrv::DtChannel
& initiatingChannel,
double
waitTimeAfterComplete = 0.,
57
const
makVrv::DtSelectionManager::IdSet
& editing =
makVrv::DtSelectionManager::IdSet
());
58
59
virtual
HandlerType
type
()
const
{
return
Vertex
; };
60
61
protected
:
62
63
virtual
void
editSelectedVertex
(
const
makVrv::DtUniqueID
& vertexId,
64
const
DtVector
& vertexPos,
makVrv::DtChannel
& initiatingChannel );
65
66
virtual
void
slot_onStateViewUpdated
(
DtVrlinkSimulatedBaseStateView
* editStateView,
67
makVrv::DtUniqueID
sceneObjectId,
double
vx,
double
vy,
double
vz );
68
69
virtual
void
slot_onLocationChanged
(
const
DtVector
& location,
double
altAboveGround );
70
71
virtual
void
setLocation
(
const
DtVector
& loc );
72
74
virtual
DtVector
vertexPosition
(
DtEnvironmentalFacadeCollection
* iFace,
int
index)
const
;
75
};
76
78
class
DT_DLL_VRFGUICORE
DtVrfShapeVertexManipulationHandler
:
public
DtVrfVertexManipulationHandler
<DtVrfShapeManipulationHandler>
79
{
80
public
:
81
DtVrfShapeVertexManipulationHandler
(
makVrv::DtDe
& de)
82
:
DtVrfVertexManipulationHandler
<
DtVrfShapeManipulationHandler
>(de)
83
{
84
}
85
86
virtual
~
DtVrfShapeVertexManipulationHandler
()
87
{
88
};
89
};
90
91
typedef
DtVrfObjectManipulationHandlerCreator<DtVrfShapeVertexManipulationHandler>
DtVrfShapeVertexManipulationHandlerCreator
;
92
94
class
DT_DLL_VRFGUICORE
DtVrfCircleVertexManipulationHandler
:
public
DtVrfVertexManipulationHandler
<DtVrfCircleManipulationHandler>
95
{
96
public
:
97
DtVrfCircleVertexManipulationHandler
(
makVrv::DtDe
& de)
98
:
DtVrfVertexManipulationHandler
<
DtVrfCircleManipulationHandler
>(de)
99
{
100
}
101
102
virtual
~
DtVrfCircleVertexManipulationHandler
()
103
{
104
};
105
};
106
107
typedef
DtVrfObjectManipulationHandlerCreator<DtVrfCircleVertexManipulationHandler>
DtVrfCircleVertexManipulationHandlerCreator
;
108
110
class
DT_DLL_VRFGUICORE
DtVrfBoxVertexManipulationHandler
:
public
DtVrfVertexManipulationHandler
<DtVrfBoxManipulationHandler>
111
{
112
public
:
113
DtVrfBoxVertexManipulationHandler
(
makVrv::DtDe
& de)
114
:
DtVrfVertexManipulationHandler
<
DtVrfBoxManipulationHandler
>(de)
115
{
116
}
117
118
virtual
~
DtVrfBoxVertexManipulationHandler
()
119
{
120
};
121
};
122
123
typedef
DtVrfObjectManipulationHandlerCreator<DtVrfBoxVertexManipulationHandler>
DtVrfBoxVertexManipulationHandlerCreator
;
124
126
class
DT_DLL_VRFGUICORE
DtVrfWeatherVertexManipulationHandler
:
public
DtVrfVertexManipulationHandler
<DtVrfWeatherManipulationHandler>
127
{
128
public
:
129
DtVrfWeatherVertexManipulationHandler
(
makVrv::DtDe
& de)
130
:
DtVrfVertexManipulationHandler
<
DtVrfWeatherManipulationHandler
>(de)
131
{
132
}
133
134
virtual
~
DtVrfWeatherVertexManipulationHandler
()
135
{
136
};
137
};
138
139
typedef
DtVrfObjectManipulationHandlerCreator<DtVrfWeatherVertexManipulationHandler>
DtVrfWeatherVertexManipulationHandlerCreator
;
140
}
141
142
#include <vrfGuiCore/vrfVertexManipulationHandler.inl>
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
)