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{
47class Control3DViewWidget;
48}
49
50class QStyledItemDelegate;
51class QStandardItemModel;
52
53//=============================================================================================================
54// DEFINE NAMESPACE DISPLIB
55//=============================================================================================================
56
57namespace DISPLIB
58{
59
60//=============================================================================================================
61// DISPLIB FORWARD DECLARATIONS
62//=============================================================================================================
63
64//=============================================================================================================
73{
74 Q_OBJECT
75
76public:
77 typedef QSharedPointer<Control3DView> SPtr;
78 typedef QSharedPointer<const Control3DView> ConstSPtr;
79
80 //=========================================================================================================
89 explicit Control3DView(const QString& sSettingsPath = "",
90 QWidget* parent = 0,
91 const QStringList& slFlags = QStringList() << "Data" << "View" << "Light",
92 Qt::WindowType type = Qt::Widget);
93
94 //=========================================================================================================
99
100 //=========================================================================================================
106 void setFlags(const QStringList& slFlags);
107
108 //=========================================================================================================
114 void setDelegate(QStyledItemDelegate* pItemDelegate);
115
116 //=========================================================================================================
122 void setModel(QStandardItemModel* pDataTreeModel);
123
124 //=========================================================================================================
129
130 //=========================================================================================================
136 void onTreeViewRemoveItem(const QModelIndex& index);
137
138 //=========================================================================================================
143
144 //=========================================================================================================
148 void saveSettings();
149
150 //=========================================================================================================
154 void loadSettings();
155
156protected:
157 //=========================================================================================================
163 void updateGuiMode(GuiMode mode);
164
165 //=========================================================================================================
172
173 //=========================================================================================================
179 void onOpacityChange(qint32 value);
180
181 //=========================================================================================================
185 void onSceneColorPicker();
186
187 //=========================================================================================================
193 void onCustomContextMenuRequested(QPoint pos);
194
195 //=========================================================================================================
201 void onAlwaysOnTop(bool state);
202
203 //=========================================================================================================
210 void onSceneColorChanged(const QColor& color);
211
212 //=========================================================================================================
218 void onShowFullScreen(bool checked);
219
220 //=========================================================================================================
226 void onRotationClicked(bool checked);
227
228 //=========================================================================================================
234 void onCoordAxisClicked(bool checked);
235
236 //=========================================================================================================
240 void onLightColorPicker();
241
242 //=========================================================================================================
248 void onLightColorChanged(const QColor& color);
249
250 //=========================================================================================================
256 void onLightIntensityChanged(double value);
257
258 //=========================================================================================================
262 void clearView();
263
264 Ui::Control3DViewWidget* m_pUi;
265
268
269signals:
270 //=========================================================================================================
276 void sceneColorChanged(const QColor& color);
277
278 //=========================================================================================================
284 void showFullScreen(bool bShowFullScreen);
285
286 //=========================================================================================================
292 void rotationChanged(bool bRotationChanged);
293
294 //=========================================================================================================
300 void showCoordAxis(bool bShowCoordAxis);
301
302 //=========================================================================================================
308 void lightColorChanged(const QColor& color);
309
310 //=========================================================================================================
316 void lightIntensityChanged(double value);
317
318 //=========================================================================================================
323
324 //=========================================================================================================
329
330 //=========================================================================================================
335};
336} // NAMESPACE DISPLIB
337
338#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)
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)