|
open_iA 2024.9
|
Plots the given data points as single bars, horizontally separated by the given margin. More...
#include <iAPlotTypes.h>
Public Member Functions | |
| iABarGraphPlot (std::shared_ptr< iAPlotData > data, QColor const &color, int margin=0) | |
| void | draw (QPainter &painter, size_t startIdx, size_t endIdx, iAMapper const &xMapper, iAMapper const &yMapper) const override |
| Draws the plot. | |
| void | drawLegendItem (QPainter &painter, QRect const &rect) override |
| Draws a legend item for the plot. | |
| void | setLookupTable (std::shared_ptr< iALookupTable > lut) |
Public Member Functions inherited from iAPlot | |
| 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 | 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. | |
Additional Inherited Members | |
Protected Attributes inherited from iAPlot | |
| std::shared_ptr< iAPlotData > | m_data |
| bool | m_visible |
Plots the given data points as single bars, horizontally separated by the given margin.
Well-suited for discrete or binned data.
| iABarGraphPlot::iABarGraphPlot | ( | std::shared_ptr< iAPlotData > | data, |
| QColor const & | color, | ||
| int | margin = 0 ) |
|
overridevirtual |
Draws the plot.
Implements iAPlot.
|
overridevirtual |
Draws a legend item for the plot.
Reimplemented from iAPlot.
| void iABarGraphPlot::setLookupTable | ( | std::shared_ptr< iALookupTable > | lut | ) |