Tree-view control panel for the 3-D scene (visibility, colour, alpha, threshold per item). More...
#include <control3dview.h>
Public Types | |
| typedef QSharedPointer< Control3DView > | SPtr |
| typedef QSharedPointer< const Control3DView > | ConstSPtr |
| Public Types inherited from DISPLIB::AbstractView | |
| enum | StyleMode { Default , Dark } |
| enum | GuiMode { Clinical , Research } |
| enum | ProcessingMode { RealTime , Offline } |
| typedef QSharedPointer< AbstractView > | SPtr |
| typedef QSharedPointer< const AbstractView > | ConstSPtr |
Signals | |
| void | sceneColorChanged (const QColor &color) |
| void | showFullScreen (bool bShowFullScreen) |
| void | rotationChanged (bool bRotationChanged) |
| void | showCoordAxis (bool bShowCoordAxis) |
| void | lightColorChanged (const QColor &color) |
| void | lightIntensityChanged (double value) |
| void | takeScreenshotChanged () |
| void | toggleSingleView () |
| void | toggleMutiview () |
| Signals inherited from DISPLIB::AbstractView | |
| void | guiStyleChanged (DISPLIB::AbstractView::StyleMode style) |
Public Member Functions | |
| Control3DView (const QString &sSettingsPath="", QWidget *parent=0, const QStringList &slFlags=QStringList()<< "Data"<< "View"<< "Light", Qt::WindowType type=Qt::Widget) | |
| ~Control3DView () | |
| void | setFlags (const QStringList &slFlags) |
| void | setDelegate (QStyledItemDelegate *pItemDelegate) |
| void | setModel (QStandardItemModel *pDataTreeModel) |
| void | onTreeViewHeaderHide () |
| void | onTreeViewRemoveItem (const QModelIndex &index) |
| void | onTreeViewDescriptionHide () |
| void | saveSettings () |
| void | loadSettings () |
| Public Member Functions inherited from DISPLIB::AbstractView | |
| AbstractView (QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
| virtual void | setGuiMode (GuiMode mode) |
| virtual void | setProcessingMode (ProcessingMode mode) |
Protected Member Functions | |
| void | updateGuiMode (GuiMode mode) |
| void | updateProcessingMode (ProcessingMode mode) |
| void | onOpacityChange (qint32 value) |
| void | onSceneColorPicker () |
| void | onCustomContextMenuRequested (QPoint pos) |
| customContextMenuRequested | |
| void | onAlwaysOnTop (bool state) |
| void | onSceneColorChanged (const QColor &color) |
| void | onShowFullScreen (bool checked) |
| void | onRotationClicked (bool checked) |
| void | onCoordAxisClicked (bool checked) |
| void | onLightColorPicker () |
| void | onLightColorChanged (const QColor &color) |
| void | onLightIntensityChanged (double value) |
| void | clearView () |
Protected Attributes | |
| Ui::Control3DViewWidget * | m_pUi |
| QColor | m_colCurrentSceneColor |
| QColor | m_colCurrentLightColor |
| Protected Attributes inherited from DISPLIB::AbstractView | |
| bool | m_bResearchModeIsActive |
| bool | m_bOfflineModeIsActive |
| QString | m_sSettingsPath |
Tree-view control panel for the 3-D scene (visibility, colour, alpha, threshold per item).
Hosts a QTreeView bound to the Data3DTreeModel and a custom QStyledItemDelegate that paints colour swatches and slider editors inline so edits propagate directly to the renderer.
Definition at line 71 of file control3dview.h.

| typedef QSharedPointer<const Control3DView> DISPLIB::Control3DView::ConstSPtr |
Const shared pointer type for Control3DView.
Definition at line 77 of file control3dview.h.
| typedef QSharedPointer<Control3DView> DISPLIB::Control3DView::SPtr |
Shared pointer type for Control3DView.
Definition at line 76 of file control3dview.h.
|
explicit |
Default constructor.
| [in] | parent | The parent of the QObject. |
| [in] | slFlags | The flags indicating which tools to display. Scaling is displayed as default. Possible flags are: "Data", "View", "Light". |
| [in] | type. |
Definition at line 52 of file control3dview.cpp.
| Control3DView::~Control3DView | ( | ) |
Destroys the Control3DView.
Definition at line 82 of file control3dview.cpp.
|
protectedvirtual |
|
signal |
Use this signal whenever the light color was changed by the user.
| [in] | color | The newly picked color. |
|
signal |
Use this signal whenever the light intensity was changed by the user.
| [in] | value | The newly picked intensity. |
|
virtual |
Loads and inits all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 203 of file control3dview.cpp.
|
protected |
Slot called when the user wants to change the always on top window flag.
| [in] | state | The newly picked on top state. |
Definition at line 294 of file control3dview.cpp.
|
protected |
Slot called when the user wants to toggle the coord axis.
Definition at line 328 of file control3dview.cpp.
|
protected |
customContextMenuRequested
| [in] | pos | The position, where the right-click occurred. |
Definition at line 264 of file control3dview.cpp.
|
protected |
Slot called when the user wants change the color of the lights.
| [in] | color | The newly picked light color. |
Definition at line 353 of file control3dview.cpp.
|
protected |
Slot called when the user wants change the color of the lights.
Definition at line 335 of file control3dview.cpp.
|
protected |
Slot called when the user wants to change the light intensity.
| [in] | value | The newly picked light intensity value. |
Definition at line 360 of file control3dview.cpp.
|
protected |
Slot called when opacity slider was changed.
| [in] | value | opacity value. |
Definition at line 239 of file control3dview.cpp.
|
protected |
Slot called when the user wants to rotate the models.
| [in] | checked | The newly picked rotation state. |
Definition at line 321 of file control3dview.cpp.
|
protected |
Slot called when the user wants change the color of the scene.
| [in] | color | The newly picked scene color. |
Definition at line 307 of file control3dview.cpp.
|
protected |
Slot called when the scene color changed.
Definition at line 246 of file control3dview.cpp.
|
protected |
Slot called when the user wants to show the view in full screen.
| [in] | checked | The newly picked full screen state. |
Definition at line 314 of file control3dview.cpp.
| void Control3DView::onTreeViewDescriptionHide | ( | ) |
Slot called when tree view description visibilty changed.
Definition at line 180 of file control3dview.cpp.
| void Control3DView::onTreeViewHeaderHide | ( | ) |
Slot called when tree view header visibilty changed.
Definition at line 160 of file control3dview.cpp.
| void Control3DView::onTreeViewRemoveItem | ( | const QModelIndex & | index | ) |
Slot called when an item should be removed.
Definition at line 171 of file control3dview.cpp.
|
signal |
Use this signal whenever the user wants to rotate the 3D model.
| [in] | bRotationChanged | The rotation flag. |
|
virtual |
Saves all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 191 of file control3dview.cpp.
|
signal |
Use this signal whenever the scene color was changed by the user.
| [in] | color | The newly picked color. |
| void Control3DView::setDelegate | ( | QStyledItemDelegate * | pItemDelegate | ) |
Set the delegate for the tree view.
| [in] | pItemDelegate | The delegate. |
Definition at line 139 of file control3dview.cpp.
| void Control3DView::setFlags | ( | const QStringList & | slFlags | ) |
Set the flags specifying which part of the GUI should be shown.
| [in] | slFlags | flags. |
Definition at line 90 of file control3dview.cpp.
| void Control3DView::setModel | ( | QStandardItemModel * | pDataTreeModel | ) |
Init the control widget based on the 3D view and data model.
| [in] | pData3DTreeModel | The 3D data tree model. |
| [in] | pView3D | The view3D to bec connected to this widget. |
Definition at line 149 of file control3dview.cpp.
|
signal |
Use this signal whenever the user wants to show the coordinate axis.
| [in] | bShowCoordAxis | The coordinate axis flag. |
|
signal |
Use this signal whenever the user wants to use full screen mode.
| [in] | bShowFullScreen | The full screen flag. |
|
signal |
Use this signal whenever the take screenshot button was clicked by the user.
|
signal |
Notifies the 'Multiview' radio button has been checked.
|
signal |
Notifies the 'Single View' radio button has been checked.
|
protectedvirtual |
Update the views GUI based on the set GuiMode (Clinical=0, Research=1).
| [in] | mode | The new mode (Clinical=0, Research=1). |
Implements DISPLIB::AbstractView.
Definition at line 215 of file control3dview.cpp.
|
protectedvirtual |
Update the views GUI based on the set ProcessingMode (RealTime=0, Offline=1).
| [in] | mode | The new mode (RealTime=0, Offline=1). |
Implements DISPLIB::AbstractView.
Definition at line 227 of file control3dview.cpp.
|
protected |
Current color of the lights in all View3D's.
Definition at line 262 of file control3dview.h.
|
protected |
Current color of the scene in all View3D's.
Definition at line 261 of file control3dview.h.
|
protected |
The pointer to the QtDesigner ui class.
Definition at line 259 of file control3dview.h.