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

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.
 

Detailed Description

Derived classes provide layouting functionality.

They stack the different graph layers on each other using different algorithms

Member Function Documentation

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

Parameters
datasetthe data which should be layouted
interpModethe interpolation method used to interpolate between the given data points
scaleXthe scale of the graph in x-direction
scaleYthe scale of the graph in y-direction

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