Clipping settings of a display node: clipping on/off, the nodes that clip it and how (from its clip node), cap and outline of the clipped surface. The clip node is chosen next to the clipping check box. When clipping is enabled and the display node has no clip node, the clip node of the scene is selected (one is created if there is none). Widgets that contain it can add options that are specific to their display node type, see addRow().
More...
#include <Libs/MRML/Widgets/qMRMLClipNodeDisplayWidget.h>
|
| QScopedPointer< qMRMLClipNodeDisplayWidgetPrivate > | d_ptr |
| |
| QScopedPointer< qMRMLWidgetPrivate > | d_ptr |
| |
Clipping settings of a display node: clipping on/off, the nodes that clip it and how (from its clip node), cap and outline of the clipped surface. The clip node is chosen next to the clipping check box. When clipping is enabled and the display node has no clip node, the clip node of the scene is selected (one is created if there is none). Widgets that contain it can add options that are specific to their display node type, see addRow().
Definition at line 43 of file qMRMLClipNodeDisplayWidget.h.
◆ qMRMLClipNodeDisplayWidget()
| qMRMLClipNodeDisplayWidget::qMRMLClipNodeDisplayWidget |
( |
QWidget * | parent = nullptr | ) |
|
◆ ~qMRMLClipNodeDisplayWidget()
| qMRMLClipNodeDisplayWidget::~qMRMLClipNodeDisplayWidget |
( |
| ) |
|
|
override |
◆ addRow() [1/3]
| Q_INVOKABLE void qMRMLClipNodeDisplayWidget::addRow |
( |
const QString & | labelText, |
|
|
QWidget * | field ) |
Add a row below the clipping options, for options that are specific to the type of the display node (for example, soft edge of volume rendering). If label is nullptr then the field is only in the second column. The added widgets are reparented to this widget.
◆ addRow() [2/3]
| Q_INVOKABLE void qMRMLClipNodeDisplayWidget::addRow |
( |
QWidget * | label, |
|
|
QWidget * | field ) |
◆ addRow() [3/3]
| Q_INVOKABLE void qMRMLClipNodeDisplayWidget::addRow |
( |
QWidget * | widget | ) |
|
Add a widget that spans both columns of the row.
◆ addRowBelowClipNodeSelector() [1/2]
| Q_INVOKABLE void qMRMLClipNodeDisplayWidget::addRowBelowClipNodeSelector |
( |
const QString & | labelText, |
|
|
QWidget * | field ) |
Add a row directly below the row of the clip node selector (for example, details of the status that a widget next to the selector shows). Rows are added in the order of the calls. If label is nullptr then the field is only in the second column. The added widgets are reparented to this widget.
◆ addRowBelowClipNodeSelector() [2/2]
| Q_INVOKABLE void qMRMLClipNodeDisplayWidget::addRowBelowClipNodeSelector |
( |
QWidget * | label, |
|
|
QWidget * | field ) |
◆ addWidgetNextToClipNodeSelector()
| Q_INVOKABLE void qMRMLClipNodeDisplayWidget::addWidgetNextToClipNodeSelector |
( |
QWidget * | widget | ) |
|
Add a widget (for example, a status button) next to the clip node selector. The widget gets the height of the clip node selector (a button is made square, with its icon fitting in it).
◆ ensureClipNode()
Make sure that the display node has a clip node: if it has none, then use the first clip node of the scene (usually there is only one, used by all nodes), or create one if the scene has none. Returns the clip node of the display node (nullptr if the display node is not in a scene).
◆ mrmlDisplayNode()
◆ onClipNodeSelected
| void qMRMLClipNodeDisplayWidget::onClipNodeSelected |
( |
vtkMRMLNode * | node | ) |
|
|
protectedslot |
◆ onClippingToggled
| void qMRMLClipNodeDisplayWidget::onClippingToggled |
( |
bool | enabled | ) |
|
|
protectedslot |
◆ setMRMLDisplayNode [1/2]
Set the clip node to represent.
◆ setMRMLDisplayNode [2/2]
| void qMRMLClipNodeDisplayWidget::setMRMLDisplayNode |
( |
vtkMRMLNode * | node | ) |
|
|
slot |
Utility function to be connected to signals/slots.
◆ updateMRMLFromWidget
| void qMRMLClipNodeDisplayWidget::updateMRMLFromWidget |
( |
| ) |
|
|
protectedslot |
◆ updateWidgetFromMRML
| void qMRMLClipNodeDisplayWidget::updateWidgetFromMRML |
( |
| ) |
|
|
protectedslot |
◆ d_ptr
| QScopedPointer<qMRMLClipNodeDisplayWidgetPrivate> qMRMLClipNodeDisplayWidget::d_ptr |
|
protected |
The documentation for this class was generated from the following file: