Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkDataStorageTableModel::DataNodeCompareFunction Struct Reference

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
 

Detailed Description

A struct that you can use in std::sort algorithm for sorting the node list elements.

Definition at line 144 of file QmitkDataStorageTableModel.h.

Member Enumeration Documentation

◆ CompareCriteria

Specifies field of the property with which it will be sorted.

Enumerator
CompareByName 
CompareByClassName 
CompareByVisibility 

Definition at line 149 of file QmitkDataStorageTableModel.h.

◆ CompareOperator

Specifies Ascending/descending ordering.

Enumerator
Less 
Greater 

Definition at line 159 of file QmitkDataStorageTableModel.h.

Constructor & Destructor Documentation

◆ DataNodeCompareFunction()

QmitkDataStorageTableModel::DataNodeCompareFunction::DataNodeCompareFunction ( CompareCriteria  _CompareCriteria = CompareByName,
CompareOperator  _CompareOperator = Less 
)

Creates a PropertyDataSetCompareFunction. A CompareCriteria and a CompareOperator must be given.

Member Function Documentation

◆ operator()()

bool QmitkDataStorageTableModel::DataNodeCompareFunction::operator() ( const mitk::DataNode::Pointer _Left,
const mitk::DataNode::Pointer _Right 
) const

The reimplemented compare function.

Member Data Documentation

◆ m_CompareCriteria

CompareCriteria QmitkDataStorageTableModel::DataNodeCompareFunction::m_CompareCriteria
protected

Definition at line 175 of file QmitkDataStorageTableModel.h.

◆ m_CompareOperator

CompareOperator QmitkDataStorageTableModel::DataNodeCompareFunction::m_CompareOperator
protected

Definition at line 176 of file QmitkDataStorageTableModel.h.


The documentation for this struct was generated from the following file: