+
+ QCustomPlot *\b mParentPlot |
+ A pointer to the parent QCustomPlot instance. The parent plot is inferred from the axes that are passed in the constructor. |
+
+ QString \b mName |
+ The name of the plottable. |
+
+ QPen \b mPen |
+ The generic pen of the plottable. You should use this pen for the most prominent data representing lines in the plottable
+ (e.g QCPGraph uses this pen for its graph lines and scatters) |
+
+ QBrush \b mBrush |
+ The generic brush of the plottable. You should use this brush for the most prominent fillable structures in the plottable
+ (e.g. QCPGraph uses this brush to control filling under the graph) |
+
+ QPointer<\ref QCPAxis> \b mKeyAxis, \b mValueAxis |
+ The key and value axes this plottable is attached to. Call their QCPAxis::coordToPixel functions to translate coordinates
+ to pixels in either the key or value dimension. Make sure to check whether the pointer is null before using it. If one of
+ the axes is null, don't draw the plottable. |
+
+ \ref QCPSelectionDecorator \b mSelectionDecorator |
+ The currently set selection decorator which specifies how selected data of the plottable shall be drawn and decorated.
+ When drawing your data, you must consult this decorator for the appropriate pen/brush before drawing unselected/selected data segments.
+ Finally, you should call its \ref QCPSelectionDecorator::drawDecoration method at the end of your \ref draw implementation. |
+
+ \ref QCP::SelectionType \b mSelectable |
+ In which composition, if at all, this plottable's data may be selected. Enforcing this setting on the data selection is done
+ by QCPAbstractPlottable automatically. |
+
+ \ref QCPDataSelection \b mSelection |
+ Holds the current selection state of the plottable's data, i.e. the selected data ranges (\ref QCPDataRange). |
+
+
+*/
+
+/* start of documentation of inline functions */
+
+/*! \fn QCPSelectionDecorator *QCPAbstractPlottable::selectionDecorator() const
+
+ Provides access to the selection decorator of this plottable. The selection decorator controls
+ how selected data ranges are drawn (e.g. their pen color and fill), see \ref
+ QCPSelectionDecorator for details.
+
+ If you wish to use an own \ref QCPSelectionDecorator subclass, pass an instance of it to \ref
+ setSelectionDecorator.
+*/
+
+/*! \fn bool QCPAbstractPlottable::selected() const
+
+ Returns true if there are any data points of the plottable currently selected. Use \ref selection
+ to retrieve the current \ref QCPDataSelection.
+*/
+
+/*! \fn QCPDataSelection QCPAbstractPlottable::selection() const
+
+ Returns a \ref QCPDataSelection encompassing all the data points that are currently selected on
+ this plottable.
+
+ \see selected, setSelection, setSelectable
+*/
+
+/*! \fn virtual QCPPlottableInterface1D *QCPAbstractPlottable::interface1D()
+
+ If this plottable is a one-dimensional plottable, i.e. it implements the \ref
+ QCPPlottableInterface1D, returns the \a this pointer with that type. Otherwise (e.g. in the case
+ of a \ref QCPColorMap) returns zero.
+
+ You can use this method to gain read access to data coordinates while holding a pointer to the
+ abstract base class only.
+*/
+
+/* end of documentation of inline functions */
+/* start of documentation of pure virtual functions */
+
+/*! \fn void QCPAbstractPlottable::drawLegendIcon(QCPPainter *painter, const QRect &rect) const = 0
+ \internal
+
+ called by QCPLegend::draw (via QCPPlottableLegendItem::draw) to create a graphical representation
+ of this plottable inside \a rect, next to the plottable name.
+
+ The passed \a painter has its cliprect set to \a rect, so painting outside of \a rect won't
+ appear outside the legend icon border.
+*/
+
+/*! \fn QCPRange QCPAbstractPlottable::getKeyRange(bool &foundRange, QCP::SignDomain inSignDomain) const = 0
+
+ Returns the coordinate range that all data in this plottable span in the key axis dimension. For
+ logarithmic plots, one can set \a inSignDomain to either \ref QCP::sdNegative or \ref
+ QCP::sdPositive in order to restrict the returned range to that sign domain. E.g. when only
+ negative range is wanted, set \a inSignDomain to \ref QCP::sdNegative and all positive points
+ will be ignored for range calculation. For no restriction, just set \a inSignDomain to \ref
+ QCP::sdBoth (default). \a foundRange is an output parameter that indicates whether a range could
+ be found or not. If this is false, you shouldn't use the returned range (e.g. no points in data).
+
+ Note that \a foundRange is not the same as \ref QCPRange::validRange, since the range returned by
+ this function may have size zero (e.g. when there is only one data point). In this case \a
+ foundRange would return true, but the returned range is not a valid range in terms of \ref
+ QCPRange::validRange.
+
+ \see rescaleAxes, getValueRange
+*/
+
+/*! \fn QCPRange QCPAbstractPlottable::getValueRange(bool &foundRange, QCP::SignDomain inSignDomain, const QCPRange &inKeyRange) const = 0
+
+ Returns the coordinate range that the data points in the specified key range (\a inKeyRange) span
+ in the value axis dimension. For logarithmic plots, one can set \a inSignDomain to either \ref
+ QCP::sdNegative or \ref QCP::sdPositive in order to restrict the returned range to that sign
+ domain. E.g. when only negative range is wanted, set \a inSignDomain to \ref QCP::sdNegative and
+ all positive points will be ignored for range calculation. For no restriction, just set \a
+ inSignDomain to \ref QCP::sdBoth (default). \a foundRange is an output parameter that indicates
+ whether a range could be found or not. If this is false, you shouldn't use the returned range
+ (e.g. no points in data).
+
+ If \a inKeyRange has both lower and upper bound set to zero (is equal to