Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
A struct that inherits from std::binary_function. You can use it 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 inherits from std::binary_function. You can use it in std::sort algorithm for sorting the node list elements.
Definition at line 148 of file QmitkDataStorageTableModel.h.
Specifies field of the property with which it will be sorted.
Enumerator | |
---|---|
CompareByName | |
CompareByClassName | |
CompareByVisibility |
Definition at line 153 of file QmitkDataStorageTableModel.h.
Specifies Ascending/descending ordering.
Enumerator | |
---|---|
Less | |
Greater |
Definition at line 163 of file QmitkDataStorageTableModel.h.
QmitkDataStorageTableModel::DataNodeCompareFunction::DataNodeCompareFunction | ( | CompareCriteria | _CompareCriteria = CompareByName , |
CompareOperator | _CompareOperator = Less |
||
) |
Creates a PropertyDataSetCompareFunction. A CompareCriteria and a CompareOperator must be given.
Definition at line 474 of file QmitkDataStorageTableModel.cpp.
bool QmitkDataStorageTableModel::DataNodeCompareFunction::operator() | ( | const mitk::DataNode::Pointer & | _Left, |
const mitk::DataNode::Pointer & | _Right | ||
) | const |
The reimplemented compare function.
Definition at line 480 of file QmitkDataStorageTableModel.cpp.
|
protected |
Definition at line 179 of file QmitkDataStorageTableModel.h.
|
protected |
Definition at line 180 of file QmitkDataStorageTableModel.h.