VR-Forces Development_Version 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
62
virtual
void
editSelectedVertex
(
const
makVrv::DtUniqueID
& vertexId,
63
const
DtVector
& vertexPos,
makVrv::DtChannel
& initiatingChannel );
64
65
virtual
void
slot_onStateViewUpdated
(
DtVrlinkSimulatedBaseStateView
* editStateView,
66
makVrv::DtUniqueID
sceneObjectId,
double
vx,
double
vy,
double
vz );
67
68
virtual
void
slot_onLocationChanged
(
const
DtVector
& location,
double
altAboveGround );
69
70
virtual
void
setLocation
(
const
DtVector
& loc );
71
73
virtual
DtVector
vertexPosition
(
DtEnvironmentalFacadeCollection
* iFace,
int
index)
const
;
74
76
virtual
bool
anchorPositionIsMouse
()
const
;
77
};
78
80
class
DT_DLL_VRFGUICORE
DtVrfShapeVertexManipulationHandler
:
public
DtVrfVertexManipulationHandler
<DtVrfShapeManipulationHandler>
81
{
82
public
:
83
DtVrfShapeVertexManipulationHandler
(
makVrv::DtDe
& de)
84
:
DtVrfVertexManipulationHandler
<
DtVrfShapeManipulationHandler
>(de)
85
{
86
}
87
88
virtual
~
DtVrfShapeVertexManipulationHandler
()
89
{
90
};
91
};
92
93
typedef
DtVrfObjectManipulationHandlerCreator<DtVrfShapeVertexManipulationHandler>
DtVrfShapeVertexManipulationHandlerCreator
;
94
96
class
DT_DLL_VRFGUICORE
DtVrfCircleVertexManipulationHandler
:
public
DtVrfVertexManipulationHandler
<DtVrfCircleManipulationHandler>
97
{
98
public
:
99
DtVrfCircleVertexManipulationHandler
(
makVrv::DtDe
& de)
100
:
DtVrfVertexManipulationHandler
<
DtVrfCircleManipulationHandler
>(de)
101
{
102
}
103
104
virtual
~
DtVrfCircleVertexManipulationHandler
()
105
{
106
};
107
};
108
109
typedef
DtVrfObjectManipulationHandlerCreator<DtVrfCircleVertexManipulationHandler>
DtVrfCircleVertexManipulationHandlerCreator
;
110
112
class
DT_DLL_VRFGUICORE
DtVrfBoxVertexManipulationHandler
:
public
DtVrfVertexManipulationHandler
<DtVrfBoxManipulationHandler>
113
{
114
public
:
115
DtVrfBoxVertexManipulationHandler
(
makVrv::DtDe
& de)
116
:
DtVrfVertexManipulationHandler
<
DtVrfBoxManipulationHandler
>(de)
117
{
118
}
119
120
virtual
~
DtVrfBoxVertexManipulationHandler
()
121
{
122
};
123
};
124
125
typedef
DtVrfObjectManipulationHandlerCreator<DtVrfBoxVertexManipulationHandler>
DtVrfBoxVertexManipulationHandlerCreator
;
126
128
class
DT_DLL_VRFGUICORE
DtVrfWeatherVertexManipulationHandler
:
public
DtVrfVertexManipulationHandler
<DtVrfWeatherManipulationHandler>
129
{
130
public
:
131
DtVrfWeatherVertexManipulationHandler
(
makVrv::DtDe
& de)
132
:
DtVrfVertexManipulationHandler
<
DtVrfWeatherManipulationHandler
>(de)
133
{
134
}
135
136
virtual
~
DtVrfWeatherVertexManipulationHandler
()
137
{
138
};
139
};
140
141
typedef
DtVrfObjectManipulationHandlerCreator<DtVrfWeatherVertexManipulationHandler>
DtVrfWeatherVertexManipulationHandlerCreator
;
142
}
143
144
#include <vrfGuiCore/vrfVertexManipulationHandler.inl>
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)