|
Envision
A visual programming IDE for object-oriented languages
|
Public Types | |
| enum class | PlotType : int { Bars , Scatter , Array } |
Public Member Functions | |
| PlotOverlay (Visualization::Item *associatedItem, const StyleType *style=itemStyles().get(), PlotType type=PlotType::Bars, QStringList variableNames={}) | |
| void | addValue (double value) |
| void | addValue (double xValue, double yValue) |
| void | addValues (double xValue, QList< double > yValues) |
| void | clear () |
| virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override |
| template<typename ValueType > | |
| void | updateArrayValues (const QList< ValueType > &values, const QList< int > &indices) |
Protected Member Functions | |
| virtual void | determineChildren () override |
| virtual void | updateGeometry (int availableWidth, int availableHeight) override |
Private Member Functions | |
| void | addValue (double value, QList< double > &valueList, double &minVal, double &maxVal) |
| void | drawAxes (QPainter *painter) |
| void | drawLegend (QPainter *painter) |
| int | drawnTextHeight () |
| int | drawnTextWidth (const QString &text) |
| void | drawTextVerticalCenteredAt (QPainter *painter, const QPointF &pos, QString label) |
| void | drawTics (QPainter *painter) |
| void | drawXTic (QPainter *painter, const QPointF &pos, QString label) |
| void | drawYTic (QPainter *painter, const QPointF &pos, QString label) |
| void | plotArray (QPainter *painter) |
| void | plotBars (QPainter *painter) |
| void | plotScatter (QPainter *painter) |
| void | setBrushColor (QPainter *painter, QColor color) |
| Changes the brush on painter to a brush with the color. More... | |
| QPointF | toPlotCoordinates (QPointF position) |
| double | valueRange (int dimension) |
Private Attributes | |
| std::function< void(PlotOverlay *, QPainter *)> | plotFunction_ {} |
| QRect | plotRegion_ |
| QStringList | variableNames_ |
| double | xMax_ {} |
| double | xMin_ {} |
| QList< double > | xValues_ |
| double | yMax_ {} |
| double | yMin_ {} |
| QList< QList< double > > | yValues_ |
Static Private Attributes | |
| static const QList< Qt::GlobalColor > | PLOT_COLORS = {Qt::red, Qt::blue, Qt::green, Qt::cyan, Qt::magenta} |
Additional Inherited Members | |
Protected Types inherited from Core::Reflect< Base > | |
| using | Super = Reflect< Base > |
|
strong |
| OODebug::PlotOverlay::PlotOverlay | ( | Visualization::Item * | associatedItem, |
| const StyleType * | style = itemStyles().get(), |
||
| PlotType | type = PlotType::Bars, |
||
| QStringList | variableNames = {} |
||
| ) |
| void OODebug::PlotOverlay::addValue | ( | double | value | ) |
|
private |
| void OODebug::PlotOverlay::addValue | ( | double | xValue, |
| double | yValue | ||
| ) |
| void OODebug::PlotOverlay::addValues | ( | double | xValue, |
| QList< double > | yValues | ||
| ) |
| void OODebug::PlotOverlay::clear | ( | ) |
|
overrideprotectedvirtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
overridevirtual |
|
private |
|
private |
|
private |
|
private |
Changes the brush on painter to a brush with the color.
|
private |
|
inline |
|
overrideprotectedvirtual |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |