#include <Modules/Loadable/Segmentations/Widgets/qMRMLSegmentsTableView.h>
|
virtual void | contextMenuEvent (QContextMenuEvent *event) |
| Handle context menu events. More...
|
|
virtual bool | eventFilter (QObject *target, QEvent *event) |
| 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) |
|
|
QScopedPointer< qMRMLSegmentsTableViewPrivate > | d_ptr |
|
QScopedPointer< qMRMLWidgetPrivate > | d_ptr |
|
Definition at line 46 of file qMRMLSegmentsTableView.h.
◆ Superclass
◆ colorColumnVisible
bool qMRMLSegmentsTableView::colorColumnVisible |
|
readwrite |
◆ headerVisible
bool qMRMLSegmentsTableView::headerVisible |
|
readwrite |
◆ opacityColumnVisible
bool qMRMLSegmentsTableView::opacityColumnVisible |
|
readwrite |
◆ readOnly
bool qMRMLSegmentsTableView::readOnly |
|
readwrite |
◆ selectionMode
int qMRMLSegmentsTableView::selectionMode |
|
readwrite |
◆ visibilityColumnVisible
bool qMRMLSegmentsTableView::visibilityColumnVisible |
|
readwrite |
◆ qMRMLSegmentsTableView()
qMRMLSegmentsTableView::qMRMLSegmentsTableView |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
◆ ~qMRMLSegmentsTableView()
virtual qMRMLSegmentsTableView::~qMRMLSegmentsTableView |
( |
| ) |
|
|
virtual |
◆ clearSelection()
Q_INVOKABLE void qMRMLSegmentsTableView::clearSelection |
( |
| ) |
|
◆ colorColumnVisible()
bool qMRMLSegmentsTableView::colorColumnVisible |
( |
| ) |
|
◆ contextMenuEvent()
virtual void qMRMLSegmentsTableView::contextMenuEvent |
( |
QContextMenuEvent * |
event | ) |
|
|
protectedvirtual |
Handle context menu events.
◆ displayedSegmentIDs()
Q_INVOKABLE QStringList qMRMLSegmentsTableView::displayedSegmentIDs |
( |
| ) |
const |
Return list of visible segment IDs.
◆ endProcessing
void qMRMLSegmentsTableView::endProcessing |
( |
| ) |
|
|
protectedslot |
◆ eventFilter()
virtual bool qMRMLSegmentsTableView::eventFilter |
( |
QObject * |
target, |
|
|
QEvent * |
event |
|
) |
| |
|
protectedvirtual |
To prevent accidentally moving out of the widget when pressing up/down arrows.
◆ 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.
◆ moveSelectedSegmentsDown
void qMRMLSegmentsTableView::moveSelectedSegmentsDown |
( |
| ) |
|
|
slot |
Move selected segments down in the list.
◆ moveSelectedSegmentsUp
void qMRMLSegmentsTableView::moveSelectedSegmentsUp |
( |
| ) |
|
|
slot |
Move selected segments up in the list.
◆ 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.
◆ onSegmentTableItemChanged
void qMRMLSegmentsTableView::onSegmentTableItemChanged |
( |
QTableWidgetItem * |
changedItem | ) |
|
|
protectedslot |
Handles changing of values in a cell (segment name, visibility, color, opacity)
◆ onVisibility2DFillActionToggled
void qMRMLSegmentsTableView::onVisibility2DFillActionToggled |
( |
bool |
visible | ) |
|
|
protectedslot |
◆ onVisibility2DOutlineActionToggled
void qMRMLSegmentsTableView::onVisibility2DOutlineActionToggled |
( |
bool |
visible | ) |
|
|
protectedslot |
◆ onVisibility3DActionToggled
void qMRMLSegmentsTableView::onVisibility3DActionToggled |
( |
bool |
visible | ) |
|
|
protectedslot |
◆ onVisibilityButtonClicked
void qMRMLSegmentsTableView::onVisibilityButtonClicked |
( |
| ) |
|
|
protectedslot |
Handles clicks on a table cell (visibility)
◆ opacityColumnVisible()
bool qMRMLSegmentsTableView::opacityColumnVisible |
( |
| ) |
|
◆ populateSegmentTable
void qMRMLSegmentsTableView::populateSegmentTable |
( |
| ) |
|
|
protectedslot |
Populate segment table according to the segmentation node.
◆ readOnly()
bool qMRMLSegmentsTableView::readOnly |
( |
| ) |
|
◆ 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.
◆ selectedSegmentIDs()
Q_INVOKABLE QStringList qMRMLSegmentsTableView::selectedSegmentIDs |
( |
| ) |
|
Get segment ID 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 |
◆ 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.
◆ setMRMLScene
virtual void qMRMLSegmentsTableView::setMRMLScene |
( |
vtkMRMLScene * |
newScene | ) |
|
|
virtualslot |
◆ 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()
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 |
◆ setSelectedSegmentIDs()
Q_INVOKABLE void qMRMLSegmentsTableView::setSelectedSegmentIDs |
( |
QStringList |
segmentIDs | ) |
|
Select segments with specified IDs.
◆ 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.
◆ setVisibilityColumnVisible
void qMRMLSegmentsTableView::setVisibilityColumnVisible |
( |
bool |
visible | ) |
|
|
slot |
◆ showOnlySelectedSegments
void qMRMLSegmentsTableView::showOnlySelectedSegments |
( |
| ) |
|
|
slot |
Show only selected segments.
◆ tableWidget()
Q_INVOKABLE QTableWidget* 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.
◆ updateWidgetFromMRML
void qMRMLSegmentsTableView::updateWidgetFromMRML |
( |
| ) |
|
|
protectedslot |
Update from segmentation node state (invoked when segment count stays the same)
◆ visibilityColumnVisible()
bool qMRMLSegmentsTableView::visibilityColumnVisible |
( |
| ) |
|
◆ d_ptr
QScopedPointer<qMRMLSegmentsTableViewPrivate> qMRMLSegmentsTableView::d_ptr |
|
protected |
The documentation for this class was generated from the following file: