Plot
A description for Plot.
-
class Plot : public WorksheetElement
Subclassed by BarPlot, BoxPlot, Histogram, KDEPlot, LollipopPlot, ProcessBehaviorChart, QQPlot, RunChart, XYCurve
Public Functions
-
virtual bool hasData() const = 0
returns
trueif a valid data column is set, returnsfalseotherwise. Used in CartesianPlot to determine whether the curve needs to be taken into account when calculating the data ranges of the plot area.
-
bool activatePlot(QPointF mouseScenePos, double maxDist = -1)
Plot::activatePlot Checks if the mousepos distance to the plot is less than
maxDistmouseScenePosmaxDistMaximum distance the point lies away from the plot.- Returns:
Returns true if the distance is smaller than maxDist.
-
virtual bool usingColumn(const AbstractColumn*, bool indirect = true) const = 0
returns
trueif the column is used internally in the plot for the visualisation, returnsfalseotherwise. Ifindirectis true it returns true also if a depending curve uses that column
-
virtual void recalc() = 0
recalculates the internal structures (additional data containers, drawing primitives, etc.) on data changes in the source data columns. these structures are used in the plot during the actual drawing of the plot on geometry changes.
-
virtual bool hasData() const = 0