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
vrvCore
DtAggregateFacade.h
Go to the documentation of this file.
1
// /******************************************************************************
2
// ** Copyright (c) 2010 MAK Technologies, Inc.
3
// ** All rights reserved.
4
// ******************************************************************************/
5
// /******************************************************************************
6
// ** $RCSfile: DtAggregateFacade.h,v $ $Revision: 1.68 $ $State: Exp $
7
// ******************************************************************************/
8
//
9
// //! \file DtAggregateFacade.h
10
// //! \brief Contains makVrv::DtAggregateFacade class.
11
// //! \ingroup vrvCore
12
//
13
// #pragma once
14
//
15
// #include <vrvCore/vrvCore.h>
16
// #include <vrvCore/DtUniqueID.h>
17
// #include <boost/signal.hpp>
18
// #include <matrix/vlVector.h>
19
// #include <string>
20
//
21
// #include <vrvCore/DtBaseConnection.h>
22
// #include <vrvCore/DtAggregateStateListener.h>
23
// #include <vrvCore/DtMouseState.h>
24
//
25
// class DtTaitBryan;
26
//
27
// namespace makVrv
28
// {
29
// class DtAggregateVisualizerSet;
30
// class DtVisualizerSet;
31
// class DtStateVisualizer;
32
// class DtVisualDefinitionSet;
33
// class DtEntityIndicatorWidget;
34
// class DtEntityInfoWidget;
35
//
36
// //! \brief The DtAggregateFacade is a facade around drivers that make up an Aggregate.
37
// //! \ingroup vrvCore
38
// class DT_DLL_VRVCORE DtAggregateFacade
39
// {
40
// public:
41
//
42
// //! \brief CTOR
43
// DtAggregateFacade(DtAgentManagerInterface& sceneInterface, int modelSet, bool distribute = false);
44
//
45
// //! \brief DTOR
46
// virtual ~DtAggregateFacade();
47
//
48
// public:
49
// //! \brief Visualize from a model definition set. This will be used instead of the
50
// //! model definition lookup via the setAggregateModelDefinition method
51
// virtual void visualize(const DtVisualDefinitionSet&);
52
//
53
// //! \brief Set the Aggregate's model definition names
54
// //! \throws DtCorruptedState if the articulated model driver can't be
55
// //! created.
56
// virtual void setVisualDefinition(const std::string& modelName);
57
//
58
// //! \brief Set the position of the Aggregate.
59
// virtual void setPosition(const DtVector& position);
60
// virtual DtVector position() const;
61
//
62
// //! \brief Set the velocity of the Aggregate.
63
// virtual void setVelocity(const DtVector& velocity);
64
//
65
// //! \brief Set the acceleration of the Aggregate.
66
// virtual void setAcceleration(const DtVector& acceleration);
67
//
68
// //! \brief Set the orientation of the Aggregate.
69
// virtual void setOrientation(const DtTaitBryan& orientation);
70
//
71
// //! \brief Set the angular velocity of the Aggregate.
72
// virtual void setAngularVelocity(const DtVector& angularVelocity);
73
//
74
// //! \brief Set dead reckoning settings.
75
// virtual void setDeadReckoning(bool position, bool velocity, bool orientation);
76
//
77
// //! \brief Set the Aggregate selected/deselected
78
// virtual void setSelected(bool selected);
79
//
80
// //! \brief Get if the Aggregate is selected/deselected
81
// bool selected() const;
82
//
83
// //! set the Aggregate's model hidden or visible
84
// virtual void setVisible(bool visible);
85
//
86
// virtual void setPickable( bool pickable );
87
//
88
// //! Set the Aggregate embarked/disembarked
89
// virtual void setEmbarked(const DtUniqueID& hostId);
90
//
91
// //! \brief Set whether the Aggregate smooths
92
// void setSmoothingEnabled(bool enabled);
93
//
94
// //! Set the period for Aggregate smoothing
95
// void setSmoothingPeriod(float scale);
96
//
97
// DtUniqueID uniqueID() const;
98
//
99
// //! \brief Returns the model set being visualized
100
// int modelSet() const;
101
//
102
// //! Returns the visualizer based on the name, or 0 if does not exists
103
// virtual DtStateVisualizer* visualizer(const std::string&);
104
//
105
// //! Sets the bounding dimensions of the aggregate
106
// virtual void setDimensions(const DtVector&);
107
// virtual const DtVector& dimensions() const;
108
//
109
// //! \brief Set if the entity indicator widget is visible.
110
// void setIndicatorVisible(bool visible);
111
//
112
// //! Set whether info popup is shown when entity is selected
113
// virtual void setShowInfoPopupOnSelect(bool show);
114
//
115
// //! Set event handling on or off for the point object's widgets
116
// virtual void setWidgetEventsEnabled(bool enabled);
117
//
118
// //! \brief Get if the entity indicator widget is visible.
119
// bool indicatorVisible() const;
120
//
121
// //! \brief Set the entity indicator type.
122
// void setIndicatorColor(float r, float g, float b, float a);
123
// void setExtentColor(float r, float g, float b, float a);
124
//
125
// //! \brief Set the extent visible
126
// void setExtentVisible(bool);
127
//
128
// virtual DtEntityIndicatorWidget* entityIndicator();
129
//
130
// //! \brief Get the entity info widge which may be null.
131
// DtEntityInfoWidget* findEntityInfoWidget();
132
//
133
// //! Called when the entity's indicator is clicked in some channel
134
// virtual void slot_indicatorMouseDown(
135
// DtMouseState& mouseState, const DtUniqueID& id, const std::string& displayEngineName,
136
// const std::string& windowName, const std::string& channelName,
137
// DtStateVisualizer* v, DtVisualizerSet* i);
138
//
139
// virtual void slot_indicatorMouseUp(
140
// DtMouseState& mouseState, const DtUniqueID& id, const std::string& displayEngineName,
141
// const std::string& windowName, const std::string& channelName,
142
// DtStateVisualizer* v, DtVisualizerSet* i);
143
//
144
// virtual void slot_indicatorMouseDblClick(
145
// DtMouseState& mouseState, const DtUniqueID& id, const std::string& displayEngineName,
146
// const std::string& windowName, const std::string& channelName,
147
// DtStateVisualizer* v, DtVisualizerSet* i);
148
//
149
// //! Called to pin/unpin the entity info display. Has no effect in
150
// //! show info on selection mode.
151
// virtual void setInfoPinned(bool pinned);
152
//
153
// //! Get pin status of entity info
154
// virtual bool infoPinned();
155
//
156
// public:
157
// //! Emitted when the entity's indicator is clicked
158
// boost::signal<void (DtMouseState&, const DtUniqueID&,
159
// const std::string& displayEngineName, const std::string& windowName,
160
// const std::string& channelName)>
161
// signal_indicatorMouseDown;
162
// boost::signal<void (DtMouseState&, const DtUniqueID&,
163
// const std::string& displayEngineName, const std::string& windowName,
164
// const std::string& channelName)>
165
// signal_indicatorMouseUp;
166
// boost::signal<void (DtMouseState&, const DtUniqueID&,
167
// const std::string& displayEngineName, const std::string& windowName,
168
// const std::string& channelName)>
169
// signal_indicatorMouseDblClick;
170
//
171
// protected:
172
// DtBaseConnection mySimulation;
173
// DtAggregateStateListener myListener;
174
// DtAggregateVisualizerSet* myVisualizer;
175
// int myModelSet;
176
// bool myExtentVisible;
177
// };
178
// }
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
)