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//=============================================================================================================
34// QT INCLUDES
35//=============================================================================================================
36
37//=============================================================================================================
38// EIGEN INCLUDES
39//=============================================================================================================
40
41//=============================================================================================================
42// FORWARD DECLARATIONS
43//=============================================================================================================
44
45namespace Ui {
46 class Control3DViewWidget;
47}
48
49class QStyledItemDelegate;
50class QStandardItemModel;
51
52//=============================================================================================================
53// DEFINE NAMESPACE DISPLIB
54//=============================================================================================================
55
56namespace DISPLIB
57{
58
59//=============================================================================================================
60// DISPLIB FORWARD DECLARATIONS
61//=============================================================================================================
62
63//=============================================================================================================
72{
73 Q_OBJECT
74
75public:
76 typedef QSharedPointer<Control3DView> SPtr;
77 typedef QSharedPointer<const Control3DView> ConstSPtr;
78
79 //=========================================================================================================
87 explicit Control3DView(const QString& sSettingsPath = "",
88 QWidget* parent = 0,
89 const QStringList& slFlags = QStringList() << "Data" << "View" << "Light",
90 Qt::WindowType type = Qt::Widget);
91
92 //=========================================================================================================
97
98 //=========================================================================================================
104 void setFlags(const QStringList& slFlags);
105
106 //=========================================================================================================
112 void setDelegate(QStyledItemDelegate* pItemDelegate);
113
114 //=========================================================================================================
121 void setModel(QStandardItemModel* pDataTreeModel);
122
123 //=========================================================================================================
128
129 //=========================================================================================================
133 void onTreeViewRemoveItem(const QModelIndex &index);
134
135 //=========================================================================================================
140
141 //=========================================================================================================
145 void saveSettings();
146
147 //=========================================================================================================
151 void loadSettings();
152
153protected:
154 //=========================================================================================================
160 void updateGuiMode(GuiMode mode);
161
162 //=========================================================================================================
169
170 //=========================================================================================================
176 void onOpacityChange(qint32 value);
177
178 //=========================================================================================================
182 void onSceneColorPicker();
183
184 //=========================================================================================================
190 void onCustomContextMenuRequested(QPoint pos);
191
192 //=========================================================================================================
198 void onAlwaysOnTop(bool state);
199
200 //=========================================================================================================
207 void onSceneColorChanged(const QColor& color);
208
209 //=========================================================================================================
215 void onShowFullScreen(bool checked);
216
217 //=========================================================================================================
223 void onRotationClicked(bool checked);
224
225 //=========================================================================================================
229 void onCoordAxisClicked(bool checked);
230
231 //=========================================================================================================
235 void onLightColorPicker();
236
237 //=========================================================================================================
243 void onLightColorChanged(const QColor& color);
244
245 //=========================================================================================================
251 void onLightIntensityChanged(double value);
252
253 //=========================================================================================================
257 void clearView();
258
259 Ui::Control3DViewWidget* m_pUi;
260
263
264signals:
265 //=========================================================================================================
271 void sceneColorChanged(const QColor& color);
272
273 //=========================================================================================================
279 void showFullScreen(bool bShowFullScreen);
280
281 //=========================================================================================================
287 void rotationChanged(bool bRotationChanged);
288
289 //=========================================================================================================
295 void showCoordAxis(bool bShowCoordAxis);
296
297 //=========================================================================================================
303 void lightColorChanged(const QColor& color);
304
305 //=========================================================================================================
311 void lightIntensityChanged(double value);
312
313 //=========================================================================================================
318
319 //=========================================================================================================
324
325 //=========================================================================================================
330};
331} // NAMESPACE DISPLIB
332
333#endif // DISPLIB_CONTROL3DVIEW_H
Common base widget for every dockable Quick-Control settings panel in DISPLIB.
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
2-D display widgets and visualisation helpers (charts, topography, colour maps).
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
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)
Ui::Control3DViewWidget * m_pUi
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)