Stacked Graphs
Geometry & Aesthetics
 All Classes Functions Variables Enumerations
Public Types | Public Member Functions | Static Public Attributes | List of all members
GraphSorter Class Referenceabstract

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.
 

Detailed Description

Derived classes provide sorting functionality for the graph layers, usign different algorithms.

Member Function Documentation

void GraphSorter::Sort ( DataSet data,
const SortingAttribute  attribute 
)

Sorts the dataset in a preprocessing step according to its dataitems sorting attribute value.

Parameters
datathe data which should be sorted
attributethe attribute which is used to sort the data

The documentation for this class was generated from the following files: