#include <Modules/Loadable/Segmentations/Widgets/qMRMLSegmentsTableView.h>
|
void | contextMenuEvent (QContextMenuEvent *event) override |
| Handle context menu events. More...
|
|
bool | eventFilter (QObject *target, QEvent *event) override |
| To prevent accidentally moving out of the widget when pressing up/down arrows. More...
|
|
void | setSegmentVisibility (QObject *senderObject, int visible, int visible3D, int visible2DFill, int visible2DOutline) |
|
void | setSegmentVisibility (QString segmentId, int visible, int visible3D, int visible2DFill, int visible2DOutline) |
|
|
QScopedPointer< qMRMLSegmentsTableViewPrivate > | d_ptr |
|
QScopedPointer< qMRMLWidgetPrivate > | d_ptr |
|
Definition at line 49 of file qMRMLSegmentsTableView.h.
◆ Superclass
◆ colorColumnVisible
bool qMRMLSegmentsTableView::colorColumnVisible |
|
readwrite |
◆ filterBarVisible
bool qMRMLSegmentsTableView::filterBarVisible |
|
readwrite |
◆ headerVisible
bool qMRMLSegmentsTableView::headerVisible |
|
readwrite |
◆ jumpToSelectedSegmentEnabled
bool qMRMLSegmentsTableView::jumpToSelectedSegmentEnabled |
|
readwrite |
◆ layerColumnVisible
bool qMRMLSegmentsTableView::layerColumnVisible |
|
readwrite |
◆ opacityColumnVisible
bool qMRMLSegmentsTableView::opacityColumnVisible |
|
readwrite |
◆ readOnly
bool qMRMLSegmentsTableView::readOnly |
|
readwrite |
◆ selectionMode
int qMRMLSegmentsTableView::selectionMode |
|
readwrite |
◆ statusColumnVisible
bool qMRMLSegmentsTableView::statusColumnVisible |
|
readwrite |
◆ textFilter
QString qMRMLSegmentsTableView::textFilter |
|
readwrite |
◆ visibilityColumnVisible
bool qMRMLSegmentsTableView::visibilityColumnVisible |
|
readwrite |
◆ qMRMLSegmentsTableView()
qMRMLSegmentsTableView::qMRMLSegmentsTableView |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~qMRMLSegmentsTableView()
qMRMLSegmentsTableView::~qMRMLSegmentsTableView |
( |
| ) |
|
|
override |
◆ clearSelectedSegments
void qMRMLSegmentsTableView::clearSelectedSegments |
( |
| ) |
|
|
slot |
Erase the contents of the selected segments and set the status to "Not started".
◆ clearSelection()
Q_INVOKABLE void qMRMLSegmentsTableView::clearSelection |
( |
| ) |
|
◆ colorColumnVisible()
bool qMRMLSegmentsTableView::colorColumnVisible |
( |
| ) |
|
◆ contextMenuEvent()
void qMRMLSegmentsTableView::contextMenuEvent |
( |
QContextMenuEvent * |
event | ) |
|
|
overrideprotected |
Handle context menu events.
◆ displayedSegmentIDs()
Q_INVOKABLE QStringList qMRMLSegmentsTableView::displayedSegmentIDs |
( |
| ) |
const |
Return list of visible segment IDs.
◆ endProcessing
void qMRMLSegmentsTableView::endProcessing |
( |
| ) |
|
|
protectedslot |
◆ eventFilter()
bool qMRMLSegmentsTableView::eventFilter |
( |
QObject * |
target, |
|
|
QEvent * |
event |
|
) |
| |
|
overrideprotected |
To prevent accidentally moving out of the widget when pressing up/down arrows.
◆ filterBarVisible()
bool qMRMLSegmentsTableView::filterBarVisible |
( |
| ) |
|
◆ headerVisible()
bool qMRMLSegmentsTableView::headerVisible |
( |
| ) |
|
◆ hideSegments()
Q_INVOKABLE QStringList qMRMLSegmentsTableView::hideSegments |
( |
| ) |
const |
◆ jumpSlices
void qMRMLSegmentsTableView::jumpSlices |
( |
| ) |
|
|
slot |
Jump position of all slice views to show the segment's center. Segment's center is determined as the center of bounding box.
◆ jumpToSelectedSegmentEnabled
bool qMRMLSegmentsTableView::jumpToSelectedSegmentEnabled |
( |
| ) |
const |
|
slot |
Returns true if automatic jump to current segment is enabled.
◆ layerColumnVisible()
bool qMRMLSegmentsTableView::layerColumnVisible |
( |
| ) |
|
◆ model()
◆ moveSelectedSegmentsDown
void qMRMLSegmentsTableView::moveSelectedSegmentsDown |
( |
| ) |
|
|
slot |
Move selected segments down in the list.
◆ moveSelectedSegmentsUp
void qMRMLSegmentsTableView::moveSelectedSegmentsUp |
( |
| ) |
|
|
slot |
Move selected segments up in the list.
◆ onSegmentAddedOrRemoved
void qMRMLSegmentsTableView::onSegmentAddedOrRemoved |
( |
| ) |
|
|
protectedslot |
◆ onSegmentSelectionChanged
void qMRMLSegmentsTableView::onSegmentSelectionChanged |
( |
const QItemSelection & |
selected, |
|
|
const QItemSelection & |
deselected |
|
) |
| |
|
protectedslot |
Forwards selection changed events. In case of batch update of items, selected and deselected are empty.
◆ onSegmentsFilterModified
void qMRMLSegmentsTableView::onSegmentsFilterModified |
( |
| ) |
|
|
protectedslot |
Handles when the filters on underlying sort model are modified.
◆ onSegmentsTableClicked
void qMRMLSegmentsTableView::onSegmentsTableClicked |
( |
const QModelIndex & |
modelIndex | ) |
|
|
protectedslot |
Handles clicks on a table cell (visibility + state)
◆ onShowStatusButtonClicked
void qMRMLSegmentsTableView::onShowStatusButtonClicked |
( |
| ) |
|
|
protectedslot |
Handles clicks on the show status buttons.
◆ onVisibility2DFillActionToggled
void qMRMLSegmentsTableView::onVisibility2DFillActionToggled |
( |
bool |
visible | ) |
|
|
protectedslot |
◆ onVisibility2DOutlineActionToggled
void qMRMLSegmentsTableView::onVisibility2DOutlineActionToggled |
( |
bool |
visible | ) |
|
|
protectedslot |
◆ onVisibility3DActionToggled
void qMRMLSegmentsTableView::onVisibility3DActionToggled |
( |
bool |
visible | ) |
|
|
protectedslot |
Handles actions on table cell (visibility)
◆ opacityColumnVisible()
bool qMRMLSegmentsTableView::opacityColumnVisible |
( |
| ) |
|
◆ readOnly()
bool qMRMLSegmentsTableView::readOnly |
( |
| ) |
|
◆ rowForSegmentID()
int qMRMLSegmentsTableView::rowForSegmentID |
( |
QString |
segmentID | ) |
|
Get the row for the specified segment ID.
◆ segmentAboutToBeModified
void qMRMLSegmentsTableView::segmentAboutToBeModified |
( |
const QString & |
segmentID | ) |
|
|
signal |
Emitted when a segment property (e.g., name) is about to be changed. Can be used for capturing the current state of the segment, before it is modified.
◆ segmentationNode()
Q_INVOKABLE vtkMRMLNode* qMRMLSegmentsTableView::segmentationNode |
( |
| ) |
|
Get segmentation MRML node.
◆ segmentCount()
int qMRMLSegmentsTableView::segmentCount |
( |
| ) |
const |
Return number of segments (rows) in the table.
◆ segmentIDForRow()
QString qMRMLSegmentsTableView::segmentIDForRow |
( |
int |
row | ) |
|
Get the segment ID for the specified row.
◆ selectedSegmentIDs()
Q_INVOKABLE QStringList qMRMLSegmentsTableView::selectedSegmentIDs |
( |
| ) |
|
Get the segment IDs of selected segments.
◆ selectionChanged
void qMRMLSegmentsTableView::selectionChanged |
( |
const QItemSelection & |
selected, |
|
|
const QItemSelection & |
deselected |
|
) |
| |
|
signal |
Emitted if selection changes.
◆ selectionMode()
int qMRMLSegmentsTableView::selectionMode |
( |
| ) |
|
◆ setColorColumnVisible
void qMRMLSegmentsTableView::setColorColumnVisible |
( |
bool |
visible | ) |
|
|
slot |
◆ setFilterBarVisible
void qMRMLSegmentsTableView::setFilterBarVisible |
( |
bool |
visible | ) |
|
|
slot |
◆ setHeaderVisible
void qMRMLSegmentsTableView::setHeaderVisible |
( |
bool |
visible | ) |
|
|
slot |
◆ setHideSegments()
Q_INVOKABLE void qMRMLSegmentsTableView::setHideSegments |
( |
const QStringList & |
segmentIDs | ) |
|
Segments that have their ID listed in hideSegments are not shown in the table.
◆ setJumpToSelectedSegmentEnabled
void qMRMLSegmentsTableView::setJumpToSelectedSegmentEnabled |
( |
bool |
enable | ) |
|
|
slot |
Enables automatic jumping to current segment when selection is changed.
◆ setLayerColumnVisible
void qMRMLSegmentsTableView::setLayerColumnVisible |
( |
bool |
visible | ) |
|
|
slot |
◆ setMRMLScene
void qMRMLSegmentsTableView::setMRMLScene |
( |
vtkMRMLScene * |
newScene | ) |
|
|
overrideslot |
◆ setOpacityColumnVisible
void qMRMLSegmentsTableView::setOpacityColumnVisible |
( |
bool |
visible | ) |
|
|
slot |
◆ setReadOnly
void qMRMLSegmentsTableView::setReadOnly |
( |
bool |
aReadOnly | ) |
|
|
slot |
◆ setSegmentationNode
void qMRMLSegmentsTableView::setSegmentationNode |
( |
vtkMRMLNode * |
node | ) |
|
|
slot |
Set segmentation MRML node.
◆ setSegmentVisibility() [1/2]
void qMRMLSegmentsTableView::setSegmentVisibility |
( |
QObject * |
senderObject, |
|
|
int |
visible, |
|
|
int |
visible3D, |
|
|
int |
visible2DFill, |
|
|
int |
visible2DOutline |
|
) |
| |
|
protected |
Convenience function to set segment visibility options from event handlers
- See also
- onVisibilityButtonToggled
-
onVisibility3DActionToggled
-
onVisibility2DFillActionToggled
-
onVisibility2DOutlineActionToggled
- Parameters
-
visible | Visibility of the segment referenced from senderObject. If 0, then hide, if 1 then show, otherwise don't change |
visible3D | Visibility of the segment referenced from senderObject in 3D. If 0, then hide, if 1 then show, otherwise don't change |
visible2DFill | Visibility of the segment referenced from senderObject for 2D fill. If 0, then hide, if 1 then show, otherwise don't change |
visible2DOutline | Visibility of the segment referenced from senderObject for 2D outline. If 0, then hide, if 1 then show, otherwise don't change |
◆ setSegmentVisibility() [2/2]
void qMRMLSegmentsTableView::setSegmentVisibility |
( |
QString |
segmentId, |
|
|
int |
visible, |
|
|
int |
visible3D, |
|
|
int |
visible2DFill, |
|
|
int |
visible2DOutline |
|
) |
| |
|
protected |
◆ setSelectedSegmentIDs()
Q_INVOKABLE void qMRMLSegmentsTableView::setSelectedSegmentIDs |
( |
QStringList |
segmentIDs | ) |
|
Select segments with specified IDs.
◆ setSelectedSegmentsStatus
void qMRMLSegmentsTableView::setSelectedSegmentsStatus |
( |
int |
status = -1 | ) |
|
|
slot |
Set the status of the selected segments.
◆ setSelectionMode
void qMRMLSegmentsTableView::setSelectionMode |
( |
int |
mode | ) |
|
|
slot |
Set selection mode in the table. Input value is int for Python compatibility. Actual values are defined in QAbstractItemView::SelectionMode. For example, QAbstractItemView::NoSelection, QAbstractItemView::SingleSelection, QAbstractItemView::ExtendedSelection.
◆ setStatusColumnVisible
void qMRMLSegmentsTableView::setStatusColumnVisible |
( |
bool |
visible | ) |
|
|
slot |
◆ setStatusShown
void qMRMLSegmentsTableView::setStatusShown |
( |
int |
status, |
|
|
bool |
shown |
|
) |
| |
|
slot |
Set if the specified status should be shown in the table
- See also
- statusShown
◆ setTextFilter
void qMRMLSegmentsTableView::setTextFilter |
( |
QString |
textFilter | ) |
|
|
slot |
Set the text used to filter the segments in the table
- See also
- textFilter
◆ setVisibilityColumnVisible
void qMRMLSegmentsTableView::setVisibilityColumnVisible |
( |
bool |
visible | ) |
|
|
slot |
◆ showOnlySelectedSegments
void qMRMLSegmentsTableView::showOnlySelectedSegments |
( |
| ) |
|
|
slot |
Show only selected segments.
◆ sortFilterProxyModel()
◆ statusColumnVisible()
bool qMRMLSegmentsTableView::statusColumnVisible |
( |
| ) |
|
◆ statusShown()
Q_INVOKABLE bool qMRMLSegmentsTableView::statusShown |
( |
int |
status | ) |
|
◆ tableWidget()
Q_INVOKABLE QTableView* qMRMLSegmentsTableView::tableWidget |
( |
| ) |
|
Get access to the table widget to allow low-level customization.
◆ terminologyTooltipForSegment()
static Q_INVOKABLE QString qMRMLSegmentsTableView::terminologyTooltipForSegment |
( |
vtkSegment * |
segment | ) |
|
|
static |
Assemble terminology info string (for tooltips) from a segment's terminology tags.
◆ textFilter()
QString qMRMLSegmentsTableView::textFilter |
( |
| ) |
|
The text used to filter the segments in the table
- See also
- setTextFilter
◆ updateMRMLFromFilterParameters
void qMRMLSegmentsTableView::updateMRMLFromFilterParameters |
( |
| ) |
|
|
protectedslot |
◆ updateWidgetFromMRML
void qMRMLSegmentsTableView::updateWidgetFromMRML |
( |
| ) |
|
|
protectedslot |
Update the widget form the MRML node Called when the segmentation node is modified
◆ visibilityColumnVisible()
bool qMRMLSegmentsTableView::visibilityColumnVisible |
( |
| ) |
|
◆ d_ptr
QScopedPointer<qMRMLSegmentsTableViewPrivate> qMRMLSegmentsTableView::d_ptr |
|
protected |
The documentation for this class was generated from the following file: