Derived classes provide layouting functionality. More...
#include <graphlayouter.h>
Public Types | |
| enum | InterpolationMode { Cubic = 0, Linear, SIZE_OF_ENUM } |
| List of interpolation methods. | |
Public Member Functions | |
| GraphLayouter (QObject *parent) | |
| void | Layout (DataSet &dataset, const InterpolationMode interpMode, const double scaleX, const double scaleY) |
| Calls calculateBaseLine to get a baseline according to the selected layouting algorithm. 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 | interpolationMode_str [InterpolationMode::SIZE_OF_ENUM] = {"Cubic", "Linear"} |
| String value of the interpolation methods used to display in the GUI. | |
Derived classes provide layouting functionality.
They stack the different graph layers on each other using different algorithms
| void GraphLayouter::Layout | ( | DataSet & | dataset, |
| const InterpolationMode | interpMode, | ||
| const double | scaleX, | ||
| const double | scaleY | ||
| ) |
Calls calculateBaseLine to get a baseline according to the selected layouting algorithm.
For each DataItem inside the sorted DataSet a QPainterPath is created which is stacked onto this baseline
| dataset | the data which should be layouted |
| interpMode | the interpolation method used to interpolate between the given data points |
| scaleX | the scale of the graph in x-direction |
| scaleY | the scale of the graph in y-direction |
1.8.6