Derived classes provide sorting functionality for the graph layers, usign different algorithms. More...
#include <graphsorter.h>
Public Types | |
| enum | SortingAttribute { OnsetTimeASC = 0, OnsetTimeDESC, VolatilityASC, VolatilityDESC, SIZE_OF_ENUM } |
| List of attributes used to sort the dataset. | |
Public Member Functions | |
| GraphSorter (QObject *parent) | |
| void | Sort (DataSet &data, const SortingAttribute attribute) |
| Sorts the dataset in a preprocessing step according to its dataitems sorting attribute value. More... | |
Public Member Functions inherited from INamedObject | |
| virtual QString | GetName ()=0 |
| Returns a user-presentable name for the object. | |
Static Public Attributes | |
| static const char *const | sortingAttribute_str [SortingAttribute::SIZE_OF_ENUM] ={"OnsetTime asc", "OnsetTime desc", "Volatility asc", "Volatility desc"} |
| String value of the sorting attributes used to display in the GUI. | |
Derived classes provide sorting functionality for the graph layers, usign different algorithms.
| void GraphSorter::Sort | ( | DataSet & | data, |
| const SortingAttribute | attribute | ||
| ) |
Sorts the dataset in a preprocessing step according to its dataitems sorting attribute value.
| data | the data which should be sorted |
| attribute | the attribute which is used to sort the data |
1.8.6