An item that represents an entry (usually an ImageStatisticsObject) for the QmitkImageStatisticsTreeModel.
More...
#include <QmitkImageStatisticsTreeItem.h>
|
| | QmitkImageStatisticsTreeItem () |
| | Default constructor. Creates an empty item with no statistics data. More...
|
| |
| | QmitkImageStatisticsTreeItem (const ImageStatisticsObject &statisticsData, const StatisticNameVector &statisticNames, QVariant itemText, bool isWIP, QmitkImageStatisticsTreeItem *parentItem=nullptr, const mitk::DataNode *imageNode=nullptr, const mitk::DataNode *maskNode=nullptr, const mitk::Label *label=nullptr) |
| | Construct a tree item holding actual statistics data. More...
|
| |
| | QmitkImageStatisticsTreeItem (const StatisticNameVector &statisticNames, QVariant itemText, bool isWIP, bool isNA, QmitkImageStatisticsTreeItem *parentItem=nullptr, const mitk::DataNode *imageNode=nullptr, const mitk::DataNode *maskNode=nullptr, const mitk::Label *label=nullptr) |
| | Construct a tree item without statistics data (e.g. a group header). More...
|
| |
| | ~QmitkImageStatisticsTreeItem () |
| |
| void | appendChild (QmitkImageStatisticsTreeItem *child) |
| | Append a child item to this item. More...
|
| |
| QmitkImageStatisticsTreeItem * | child (int row) |
| | Return the child item at the given row. More...
|
| |
| int | childCount () const |
| | Return the number of child items. More...
|
| |
| int | columnCount () const |
| | Return the number of data columns. More...
|
| |
| QVariant | data (int column) const |
| | Return the data for the given column. More...
|
| |
| int | row () const |
| | Return this item's row index within its parent. More...
|
| |
| QmitkImageStatisticsTreeItem * | parentItem () |
| | Return the parent item, or nullptr if this is the root. More...
|
| |
| bool | isWIP () const |
| | Indicate whether the statistics are still being computed (work in progress). More...
|
| |
| mitk::Label::ConstPointer | GetLabelInstance () const |
| | Return the label instance associated with this item, or nullptr. More...
|
| |
An item that represents an entry (usually an ImageStatisticsObject) for the QmitkImageStatisticsTreeModel.
Provides a hierarchical tree structure used internally by QmitkImageStatisticsTreeModel to display image statistics in a QTreeView.
Definition at line 30 of file QmitkImageStatisticsTreeItem.h.
◆ ImageStatisticsObject
◆ StatisticNameVector
◆ QmitkImageStatisticsTreeItem() [1/3]
| QmitkImageStatisticsTreeItem::QmitkImageStatisticsTreeItem |
( |
| ) |
|
Default constructor. Creates an empty item with no statistics data.
◆ QmitkImageStatisticsTreeItem() [2/3]
Construct a tree item holding actual statistics data.
- Parameters
-
| statisticsData | The image statistics object containing the computed values. |
| statisticNames | Names of the statistics to display as columns. |
| itemText | Display text for this tree item. |
| isWIP | True if the statistics are still being computed (work in progress). |
| parentItem | Optional parent item in the tree hierarchy. |
| imageNode | Optional data node for the image. |
| maskNode | Optional data node for the mask. |
| label | Optional label associated with this item. |
◆ QmitkImageStatisticsTreeItem() [3/3]
Construct a tree item without statistics data (e.g. a group header).
- Parameters
-
| statisticNames | Names of the statistics to display as columns. |
| itemText | Display text for this tree item. |
| isWIP | True if the statistics are still being computed. |
| isNA | True if the statistics are not applicable for this item. |
| parentItem | Optional parent item in the tree hierarchy. |
| imageNode | Optional data node for the image. |
| maskNode | Optional data node for the mask. |
| label | Optional label associated with this item. |
◆ ~QmitkImageStatisticsTreeItem()
| QmitkImageStatisticsTreeItem::~QmitkImageStatisticsTreeItem |
( |
| ) |
|
◆ appendChild()
Append a child item to this item.
- Parameters
-
| child | The child item to add. This item takes ownership. |
◆ child()
Return the child item at the given row.
- Parameters
-
- Returns
- The child item, or nullptr if out of range.
◆ childCount()
| int QmitkImageStatisticsTreeItem::childCount |
( |
| ) |
const |
Return the number of child items.
◆ columnCount()
| int QmitkImageStatisticsTreeItem::columnCount |
( |
| ) |
const |
Return the number of data columns.
◆ data()
| QVariant QmitkImageStatisticsTreeItem::data |
( |
int |
column | ) |
const |
Return the data for the given column.
- Parameters
-
- Returns
- The data value as QVariant.
◆ GetLabelInstance()
| mitk::Label::ConstPointer QmitkImageStatisticsTreeItem::GetLabelInstance |
( |
| ) |
const |
Return the label instance associated with this item, or nullptr.
◆ isWIP()
| bool QmitkImageStatisticsTreeItem::isWIP |
( |
| ) |
const |
Indicate whether the statistics are still being computed (work in progress).
Returns true if the statistic container owned by this instance is only a dummy WIP container and the calculation of the up-to-date statistic is not yet finished.
◆ parentItem()
Return the parent item, or nullptr if this is the root.
◆ row()
| int QmitkImageStatisticsTreeItem::row |
( |
| ) |
const |
Return this item's row index within its parent.
The documentation for this class was generated from the following file: