#include <Modules/Loadable/Segmentations/Widgets/qMRMLSortFilterSegmentsProxyModel.h>
|
| bool | filterEnabled |
| | Whether the filter should be applied. More...
|
| |
| QString | nameFilter |
| | Filter to show only items that contain the string in their names. Empty by default. More...
|
| |
| QString | textFilter |
| | Filter to show only items that contain the string in their names or within tag values. Empty by default. More...
|
| |
|
| QStandardItem * | sourceItem (const QModelIndex &index) const |
| |
|
| QScopedPointer< qMRMLSortFilterSegmentsProxyModelPrivate > | d_ptr |
| |
◆ Superclass
◆ filterEnabled
| bool qMRMLSortFilterSegmentsProxyModel::filterEnabled |
|
readwrite |
◆ nameFilter
| QString qMRMLSortFilterSegmentsProxyModel::nameFilter |
|
readwrite |
◆ textFilter
| QString qMRMLSortFilterSegmentsProxyModel::textFilter |
|
readwrite |
◆ qMRMLSortFilterSegmentsProxyModel()
| qMRMLSortFilterSegmentsProxyModel::qMRMLSortFilterSegmentsProxyModel |
( |
QObject * |
parent = nullptr | ) |
|
◆ ~qMRMLSortFilterSegmentsProxyModel()
| qMRMLSortFilterSegmentsProxyModel::~qMRMLSortFilterSegmentsProxyModel |
( |
| ) |
|
|
override |
◆ filterAcceptsItem()
| virtual bool qMRMLSortFilterSegmentsProxyModel::filterAcceptsItem |
( |
QString |
segmentID | ) |
const |
|
virtual |
Filters items to decide which to display in the view.
◆ filterAcceptsRow()
| bool qMRMLSortFilterSegmentsProxyModel::filterAcceptsRow |
( |
int |
sourceRow, |
|
|
const QModelIndex & |
sourceParent |
|
) |
| const |
|
override |
Returns true if the item in the row indicated by the given sourceRow and sourceParent should be included in the model; otherwise returns false. This method tests each item via filterAcceptsItem
◆ filterEnabled()
| bool qMRMLSortFilterSegmentsProxyModel::filterEnabled |
( |
| ) |
const |
◆ filterModified
| void qMRMLSortFilterSegmentsProxyModel::filterModified |
( |
| ) |
|
|
signal |
◆ flags()
| Qt::ItemFlags qMRMLSortFilterSegmentsProxyModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
Returns the flags for the current index.
◆ hideSegments()
| Q_INVOKABLE QStringList qMRMLSortFilterSegmentsProxyModel::hideSegments |
( |
| ) |
const |
◆ indexFromSegmentID()
| Q_INVOKABLE QModelIndex qMRMLSortFilterSegmentsProxyModel::indexFromSegmentID |
( |
QString |
segmentID, |
|
|
int |
column = 0 |
|
) |
| const |
Retrieve an index for a given a segment ID.
◆ nameFilter()
| QString qMRMLSortFilterSegmentsProxyModel::nameFilter |
( |
| ) |
const |
◆ segmentationNode()
Returns the segmentation node in the source model.
◆ segmentIDFromIndex()
| Q_INVOKABLE QString qMRMLSortFilterSegmentsProxyModel::segmentIDFromIndex |
( |
const QModelIndex & |
index | ) |
const |
Retrieve the associated segment ID from a model index.
◆ setFilterEnabled
| void qMRMLSortFilterSegmentsProxyModel::setFilterEnabled |
( |
bool |
filterEnabled | ) |
|
|
slot |
◆ setHideSegments()
| Q_INVOKABLE void qMRMLSortFilterSegmentsProxyModel::setHideSegments |
( |
const QStringList & |
segmentIDs | ) |
|
Segments that have their ID listed in hideSegments are not shown in the table.
◆ setNameFilter
| void qMRMLSortFilterSegmentsProxyModel::setNameFilter |
( |
QString |
filter | ) |
|
|
slot |
◆ setShowStatus()
| Q_INVOKABLE void qMRMLSortFilterSegmentsProxyModel::setShowStatus |
( |
int |
status, |
|
|
bool |
shown |
|
) |
| |
◆ setTextFilter
| void qMRMLSortFilterSegmentsProxyModel::setTextFilter |
( |
QString |
filter | ) |
|
|
slot |
◆ showStatus()
| Q_INVOKABLE bool qMRMLSortFilterSegmentsProxyModel::showStatus |
( |
int |
status | ) |
const |
◆ sourceItem()
| QStandardItem* qMRMLSortFilterSegmentsProxyModel::sourceItem |
( |
const QModelIndex & |
index | ) |
const |
|
protected |
◆ textFilter()
| QString qMRMLSortFilterSegmentsProxyModel::textFilter |
( |
| ) |
const |
◆ d_ptr
| QScopedPointer<qMRMLSortFilterSegmentsProxyModelPrivate> qMRMLSortFilterSegmentsProxyModel::d_ptr |
|
protected |
The documentation for this class was generated from the following file: