v2.0.0
Loading...
Searching...
No Matches
control3dview.h
Go to the documentation of this file.
1//=============================================================================================================
34
35#ifndef DISPLIB_CONTROL3DVIEW_H
36#define DISPLIB_CONTROL3DVIEW_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "../disp_global.h"
43#include "abstractview.h"
44
45//=============================================================================================================
46// QT INCLUDES
47//=============================================================================================================
48
49//=============================================================================================================
50// EIGEN INCLUDES
51//=============================================================================================================
52
53//=============================================================================================================
54// FORWARD DECLARATIONS
55//=============================================================================================================
56
57namespace Ui {
58 class Control3DViewWidget;
59}
60
61class QStyledItemDelegate;
62class QStandardItemModel;
63
64//=============================================================================================================
65// DEFINE NAMESPACE DISPLIB
66//=============================================================================================================
67
68namespace DISPLIB
69{
70
71//=============================================================================================================
72// DISPLIB FORWARD DECLARATIONS
73//=============================================================================================================
74
75//=============================================================================================================
82{
83 Q_OBJECT
84
85public:
86 typedef QSharedPointer<Control3DView> SPtr;
87 typedef QSharedPointer<const Control3DView> ConstSPtr;
88
89 //=========================================================================================================
97 explicit Control3DView(const QString& sSettingsPath = "",
98 QWidget* parent = 0,
99 const QStringList& slFlags = QStringList() << "Data" << "View" << "Light",
100 Qt::WindowType type = Qt::Widget);
101
102 //=========================================================================================================
107
108 //=========================================================================================================
114 void setFlags(const QStringList& slFlags);
115
116 //=========================================================================================================
122 void setDelegate(QStyledItemDelegate* pItemDelegate);
123
124 //=========================================================================================================
131 void setModel(QStandardItemModel* pDataTreeModel);
132
133 //=========================================================================================================
138
139 //=========================================================================================================
143 void onTreeViewRemoveItem(const QModelIndex &index);
144
145 //=========================================================================================================
150
151 //=========================================================================================================
155 void saveSettings();
156
157 //=========================================================================================================
161 void loadSettings();
162
163protected:
164 //=========================================================================================================
170 void updateGuiMode(GuiMode mode);
171
172 //=========================================================================================================
179
180 //=========================================================================================================
186 void onOpacityChange(qint32 value);
187
188 //=========================================================================================================
192 void onSceneColorPicker();
193
194 //=========================================================================================================
200 void onCustomContextMenuRequested(QPoint pos);
201
202 //=========================================================================================================
208 void onAlwaysOnTop(bool state);
209
210 //=========================================================================================================
217 void onSceneColorChanged(const QColor& color);
218
219 //=========================================================================================================
225 void onShowFullScreen(bool checked);
226
227 //=========================================================================================================
233 void onRotationClicked(bool checked);
234
235 //=========================================================================================================
239 void onCoordAxisClicked(bool checked);
240
241 //=========================================================================================================
245 void onLightColorPicker();
246
247 //=========================================================================================================
253 void onLightColorChanged(const QColor& color);
254
255 //=========================================================================================================
261 void onLightIntensityChanged(double value);
262
263 //=========================================================================================================
267 void clearView();
268
269 Ui::Control3DViewWidget* m_pUi;
270
273
274signals:
275 //=========================================================================================================
281 void sceneColorChanged(const QColor& color);
282
283 //=========================================================================================================
289 void showFullScreen(bool bShowFullScreen);
290
291 //=========================================================================================================
297 void rotationChanged(bool bRotationChanged);
298
299 //=========================================================================================================
305 void showCoordAxis(bool bShowCoordAxis);
306
307 //=========================================================================================================
313 void lightColorChanged(const QColor& color);
314
315 //=========================================================================================================
321 void lightIntensityChanged(double value);
322
323 //=========================================================================================================
328
329 //=========================================================================================================
334
335 //=========================================================================================================
340};
341} // NAMESPACE DISPLIB
342
343#endif // DISPLIB_CONTROL3DVIEW_H
Declaration of the AbstractView Class.
disp library export/import macros.
#define DISPSHARED_EXPORT
Definition disp_global.h:51
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)