OpenWalnut
1.5.0dev
|
Simple comparator class for sorting ROIs in the Roi Manager. More...
Public Member Functions | |
RoiSort (std::map< WROI::RefPtr, int > indexMap) | |
COnstructor. More... | |
bool | operator() (WROI::RefPtr a, WROI::RefPtr b) |
Operator to compare the order of two ROIs. More... | |
Private Attributes | |
std::map< WROI::RefPtr, int > | m_indexMap |
Map needed to know the index in the GUI representation. More... | |
Simple comparator class for sorting ROIs in the Roi Manager.
Definition at line 150 of file WQtBranchTreeItem.cpp.
|
inlineexplicit |
COnstructor.
indexMap | the map is used to compare each ROI with their Qt index. |
Definition at line 158 of file WQtBranchTreeItem.cpp.
|
inline |
Operator to compare the order of two ROIs.
a | first ROI |
b | second ROI |
Definition at line 172 of file WQtBranchTreeItem.cpp.
References m_indexMap.
|
private |
Map needed to know the index in the GUI representation.
Definition at line 180 of file WQtBranchTreeItem.cpp.
Referenced by operator()().