Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
A struct that you can use in std::sort algorithm for sorting the node list elements. More...
#include <QmitkDataStorageTableModel.h>
Public Types | |
enum | CompareCriteria { CompareByName, CompareByClassName, CompareByVisibility } |
Specifies field of the property with which it will be sorted. More... | |
enum | CompareOperator { Less, Greater } |
Specifies Ascending/descending ordering. More... | |
Public Member Functions | |
DataNodeCompareFunction (CompareCriteria _CompareCriteria=CompareByName, CompareOperator _CompareOperator=Less) | |
Creates a PropertyDataSetCompareFunction. A CompareCriteria and a CompareOperator must be given. More... | |
bool | operator() (const mitk::DataNode::Pointer &_Left, const mitk::DataNode::Pointer &_Right) const |
The reimplemented compare function. More... | |
Protected Attributes | |
CompareCriteria | m_CompareCriteria |
CompareOperator | m_CompareOperator |
A struct that you can use in std::sort algorithm for sorting the node list elements.
Definition at line 144 of file QmitkDataStorageTableModel.h.
Specifies field of the property with which it will be sorted.
Enumerator | |
---|---|
CompareByName | |
CompareByClassName | |
CompareByVisibility |
Definition at line 149 of file QmitkDataStorageTableModel.h.
Specifies Ascending/descending ordering.
Enumerator | |
---|---|
Less | |
Greater |
Definition at line 159 of file QmitkDataStorageTableModel.h.
QmitkDataStorageTableModel::DataNodeCompareFunction::DataNodeCompareFunction | ( | CompareCriteria | _CompareCriteria = CompareByName , |
CompareOperator | _CompareOperator = Less |
||
) |
Creates a PropertyDataSetCompareFunction. A CompareCriteria and a CompareOperator must be given.
bool QmitkDataStorageTableModel::DataNodeCompareFunction::operator() | ( | const mitk::DataNode::Pointer & | _Left, |
const mitk::DataNode::Pointer & | _Right | ||
) | const |
The reimplemented compare function.
|
protected |
Definition at line 175 of file QmitkDataStorageTableModel.h.
|
protected |
Definition at line 176 of file QmitkDataStorageTableModel.h.