13 #ifndef QmitkImageStatisticsTreeItem_h
14 #define QmitkImageStatisticsTreeItem_h
98 QVariant
data(
int column)
const;
122 QList<QmitkImageStatisticsTreeItem *> m_childItems;
An item that represents an entry (usually an ImageStatisticsObject) for the QmitkImageStatisticsTreeM...
int columnCount() const
Return the number of data columns.
QmitkImageStatisticsTreeItem * child(int row)
Return the child item at the given row.
bool isWIP() const
Indicate whether the statistics are still being computed (work in progress).
~QmitkImageStatisticsTreeItem()
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.
int childCount() const
Return the number of child items.
int row() const
Return this item's row index within its parent.
QVariant data(int column) const
Return the data for the given column.
QmitkImageStatisticsTreeItem()
Default constructor. Creates an empty item with no statistics data.
mitk::Label::ConstPointer GetLabelInstance() const
Return the label instance associated with this item, or nullptr.
void appendChild(QmitkImageStatisticsTreeItem *child)
Append a child item to this item.
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).
mitk::ImageStatisticsContainer::ImageStatisticsObject::StatisticNameVector StatisticNameVector
QmitkImageStatisticsTreeItem * parentItem()
Return the parent item, or nullptr if this is the root.
Central node class of the MITK data tree, associating a data object with properties and mappers.
Container class for storing the computed image statistics.
std::vector< std::string > StatisticNameVector
A data structure describing a label in a multi-label segmentation.