v2.0.0
Loading...
Searching...
No Matches
control3dview.h
Go to the documentation of this file.
1//=============================================================================================================
22
23#ifndef DISPLIB_CONTROL3DVIEW_H
24#define DISPLIB_CONTROL3DVIEW_H
25
26//=============================================================================================================
27// INCLUDES
28//=============================================================================================================
29
30#include "../disp_global.h"
31#include "abstractview.h"
32
33#include <memory>
34
35//=============================================================================================================
36// QT INCLUDES
37//=============================================================================================================
38
39//=============================================================================================================
40// EIGEN INCLUDES
41//=============================================================================================================
42
43//=============================================================================================================
44// FORWARD DECLARATIONS
45//=============================================================================================================
46
47namespace Ui
48{
49class Control3DViewWidget;
50}
51
52class QStyledItemDelegate;
53class QStandardItemModel;
54
55//=============================================================================================================
56// DEFINE NAMESPACE DISPLIB
57//=============================================================================================================
58
59namespace DISPLIB
60{
61
62//=============================================================================================================
63// DISPLIB FORWARD DECLARATIONS
64//=============================================================================================================
65
66//=============================================================================================================
75{
76 Q_OBJECT
77
78public:
79 typedef QSharedPointer<Control3DView> SPtr;
80 typedef QSharedPointer<const Control3DView> ConstSPtr;
81
82 //=========================================================================================================
91 explicit Control3DView(const QString& sSettingsPath = "",
92 QWidget* parent = 0,
93 const QStringList& slFlags = QStringList() << "Data" << "View" << "Light",
94 Qt::WindowType type = Qt::Widget);
95
96 //=========================================================================================================
101
102 //=========================================================================================================
108 void setFlags(const QStringList& slFlags);
109
110 //=========================================================================================================
116 void setDelegate(QStyledItemDelegate* pItemDelegate);
117
118 //=========================================================================================================
124 void setModel(QStandardItemModel* pDataTreeModel);
125
126 //=========================================================================================================
131
132 //=========================================================================================================
138 void onTreeViewRemoveItem(const QModelIndex& index);
139
140 //=========================================================================================================
145
146 //=========================================================================================================
150 void saveSettings();
151
152 //=========================================================================================================
156 void loadSettings();
157
158protected:
159 //=========================================================================================================
165 void updateGuiMode(GuiMode mode);
166
167 //=========================================================================================================
174
175 //=========================================================================================================
181 void onOpacityChange(qint32 value);
182
183 //=========================================================================================================
187 void onSceneColorPicker();
188
189 //=========================================================================================================
195 void onCustomContextMenuRequested(QPoint pos);
196
197 //=========================================================================================================
203 void onAlwaysOnTop(bool state);
204
205 //=========================================================================================================
212 void onSceneColorChanged(const QColor& color);
213
214 //=========================================================================================================
220 void onShowFullScreen(bool checked);
221
222 //=========================================================================================================
228 void onRotationClicked(bool checked);
229
230 //=========================================================================================================
236 void onCoordAxisClicked(bool checked);
237
238 //=========================================================================================================
242 void onLightColorPicker();
243
244 //=========================================================================================================
250 void onLightColorChanged(const QColor& color);
251
252 //=========================================================================================================
258 void onLightIntensityChanged(double value);
259
260 //=========================================================================================================
264 void clearView();
265
266 std::unique_ptr<Ui::Control3DViewWidget> m_pUi;
267
270
271signals:
272 //=========================================================================================================
278 void sceneColorChanged(const QColor& color);
279
280 //=========================================================================================================
286 void showFullScreen(bool bShowFullScreen);
287
288 //=========================================================================================================
294 void rotationChanged(bool bRotationChanged);
295
296 //=========================================================================================================
302 void showCoordAxis(bool bShowCoordAxis);
303
304 //=========================================================================================================
310 void lightColorChanged(const QColor& color);
311
312 //=========================================================================================================
318 void lightIntensityChanged(double value);
319
320 //=========================================================================================================
325
326 //=========================================================================================================
331
332 //=========================================================================================================
337};
338} // NAMESPACE DISPLIB
339
340#endif // DISPLIB_CONTROL3DVIEW_H
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
Common base widget for every dockable Quick-Control settings panel in DISPLIB.
2-D display widgets and visualisation helpers (charts, topography, colour maps).
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
std::unique_ptr< Ui::Control3DViewWidget > m_pUi
void setDelegate(QStyledItemDelegate *pItemDelegate)
void sceneColorChanged(const QColor &color)
Control3DView(const QString &sSettingsPath="", QWidget *parent=0, const QStringList &slFlags=QStringList()<< "Data"<< "View"<< "Light", Qt::WindowType type=Qt::Widget)
void showFullScreen(bool bShowFullScreen)
void onSceneColorChanged(const QColor &color)
void setFlags(const QStringList &slFlags)
void onOpacityChange(qint32 value)
void rotationChanged(bool bRotationChanged)
void updateGuiMode(GuiMode mode)
void onCoordAxisClicked(bool checked)
void onCustomContextMenuRequested(QPoint pos)
customContextMenuRequested
void updateProcessingMode(ProcessingMode mode)
void onTreeViewRemoveItem(const QModelIndex &index)
void lightIntensityChanged(double value)
void onRotationClicked(bool checked)
QSharedPointer< const Control3DView > ConstSPtr
void onShowFullScreen(bool checked)
void showCoordAxis(bool bShowCoordAxis)
void onAlwaysOnTop(bool state)
QSharedPointer< Control3DView > SPtr
void lightColorChanged(const QColor &color)
void onLightColorChanged(const QColor &color)
void setModel(QStandardItemModel *pDataTreeModel)
void onLightIntensityChanged(double value)