|
open_iA 2024.7
|
Interface for a plot which is drawable in a chart. More...
#include <iAPlot.h>
Public Member Functions | |
| iAPlot (std::shared_ptr< iAPlotData > data, QColor const &color) | |
| virtual | ~iAPlot () |
| QColor const | color () const |
| Get plot color. | |
| virtual std::shared_ptr< iAPlotData > | data () |
| Retrieves the data used for drawing. | |
| virtual void | draw (QPainter &painter, size_t startBin, size_t endBin, iAMapper const &xMapper, iAMapper const &yMapper) const =0 |
| Draws the plot. | |
| virtual void | drawLegendItem (QPainter &painter, QRect const &rect) |
| Draws a legend item for the plot. | |
| virtual void | setColor (QColor const &color) |
| Set plot color. | |
| virtual void | setVisible (bool visible) |
| Sets whether the plot should be currently drawn or not. | |
| virtual bool | visible () const |
| Whether the plot is currently being drawn. | |
Protected Attributes | |
| std::shared_ptr< iAPlotData > | m_data |
| bool | m_visible |
Interface for a plot which is drawable in a chart.
Encapsulates both the data of the plot and the drawing method
| iAPlot::iAPlot | ( | std::shared_ptr< iAPlotData > | data, |
| QColor const & | color ) |
|
virtual |
| QColor const iAPlot::color | ( | ) | const |
Get plot color.
|
virtual |
Retrieves the data used for drawing.
Reimplemented in iAPlotCollection.
|
pure virtual |
Draws the plot.
Implemented in iASelectedBinPlot, iABarGraphPlot, and iAPlotCollection.
|
virtual |
Draws a legend item for the plot.
Reimplemented in iABarGraphPlot.
|
virtual |
Set plot color.
Reimplemented in iAPlotCollection.
|
virtual |
Sets whether the plot should be currently drawn or not.
|
virtual |
Whether the plot is currently being drawn.
|
protected |
|
protected |