![]() |
LeechCraft
0.6.70-3565-g2d86529
Modular cross-platform feature rich live environment.
|
#include "plotitem.h"
Inheritance diagram for LeechCraft::Util::PlotItem:
Collaboration diagram for LeechCraft::Util::PlotItem:Classes | |
| struct | PointsSet |
Signals | |
| void | pointsChanged () |
| void | multipointsChanged () |
| void | minXValueChanged () |
| void | maxXValueChanged () |
| void | minYValueChanged () |
| void | maxYValueChanged () |
| void | yGridChanged () |
| void | yMinorGridChanged () |
| void | alphaChanged () |
| void | colorChanged () |
| void | leftAxisEnabledChanged () |
| void | bottomAxisEnabledChanged () |
| void | leftAxisTitleChanged () |
| void | bottomAxisTitleChanged () |
| void | plotTitleChanged () |
| void | backgroundChanged () |
| void | textColorChanged () |
| void | gridLinesColorChanged () |
| void | extentsChanged () |
Public Member Functions | |
| PlotItem (QDeclarativeItem *=0) | |
| QList< QPointF > | GetPoints () const |
| void | SetPoints (const QList< QPointF > &) |
| QVariant | GetMultipoints () const |
| void | SetMultipoints (const QVariant &) |
| double | GetMinXValue () const |
| void | SetMinXValue (double) |
| double | GetMaxXValue () const |
| void | SetMaxXValue (double) |
| double | GetMinYValue () const |
| void | SetMinYValue (double) |
| double | GetMaxYValue () const |
| void | SetMaxYValue (double) |
| bool | GetYGridEnabled () const |
| void | SetYGridEnabled (bool) |
| bool | GetYMinorGridEnabled () const |
| void | SetYMinorGridEnabled (bool) |
| double | GetAlpha () const |
| void | SetAlpha (double) |
| QColor | GetColor () const |
| void | SetColor (const QColor &) |
| bool | GetLeftAxisEnabled () const |
| void | SetLeftAxisEnabled (bool) |
| bool | GetBottomAxisEnabled () const |
| void | SetBottomAxisEnabled (bool) |
| QString | GetLeftAxisTitle () const |
| void | SetLeftAxisTitle (const QString &) |
| QString | GetBottomAxisTitle () const |
| void | SetBottomAxisTitle (const QString &) |
| QString | GetPlotTitle () const |
| void | SetPlotTitle (const QString &) |
| QColor | GetBackground () const |
| void | SetBackground (const QColor &) |
| QColor | GetTextColor () const |
| void | SetTextColor (const QColor &) |
| QColor | GetGridLinesColor () const |
| void | SetGridLinesColor (const QColor &) |
| int | GetXExtent () const |
| int | GetYExtent () const |
| void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *) override |
Properties | |
| QList< QPointF > | points |
| QVariant | multipoints |
| double | minXValue |
| double | maxXValue |
| double | minYValue |
| double | maxYValue |
| bool | yGridEnabled |
| bool | yMinorGridEnabled |
| double | alpha |
| QColor | color |
| bool | leftAxisEnabled |
| bool | bottomAxisEnabled |
| QString | leftAxisTitle |
| QString | bottomAxisTitle |
| QString | plotTitle |
| QColor | background |
| QColor | textColor |
| QColor | gridLinesColor |
| int | xExtent |
| int | yExtent |
| QList< QPointF > | Points_ |
| QList< PointsSet > | Multipoints_ |
| double | MinXValue_ = -1 |
| double | MaxXValue_ = -1 |
| double | MinYValue_ = -1 |
| double | MaxYValue_ = -1 |
| bool | YGridEnabled_ = false |
| bool | YMinorGridEnabled_ = false |
| double | Alpha_ = 0.3 |
| QColor | Color_ |
| bool | LeftAxisEnabled_ = false |
| bool | BottomAxisEnabled_ = false |
| QString | LeftAxisTitle_ |
| QString | BottomAxisTitle_ |
| QString | PlotTitle_ |
| QColor | BackgroundColor_ |
| QColor | TextColor_ |
| QColor | GridLinesColor_ |
| int | XExtent_ = 0 |
| int | YExtent_ = 0 |
| std::shared_ptr< QwtPlot > | Plot_ |
Definition at line 49 of file plotitem.h.
| LeechCraft::Util::PlotItem::PlotItem | ( | QDeclarativeItem * | parent = 0 | ) |
Definition at line 52 of file plotitem.cpp.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
| double LeechCraft::Util::PlotItem::GetAlpha | ( | ) | const |
Definition at line 183 of file plotitem.cpp.
References Alpha_.
| QColor LeechCraft::Util::PlotItem::GetBackground | ( | ) | const |
Definition at line 254 of file plotitem.cpp.
References BackgroundColor_.
| bool LeechCraft::Util::PlotItem::GetBottomAxisEnabled | ( | ) | const |
Definition at line 214 of file plotitem.cpp.
References BottomAxisEnabled_.
| QString LeechCraft::Util::PlotItem::GetBottomAxisTitle | ( | ) | const |
Definition at line 234 of file plotitem.cpp.
References BottomAxisTitle_.
| QColor LeechCraft::Util::PlotItem::GetColor | ( | ) | const |
Definition at line 194 of file plotitem.cpp.
References Color_.
| QColor LeechCraft::Util::PlotItem::GetGridLinesColor | ( | ) | const |
Definition at line 274 of file plotitem.cpp.
References GridLinesColor_.
| bool LeechCraft::Util::PlotItem::GetLeftAxisEnabled | ( | ) | const |
Definition at line 204 of file plotitem.cpp.
References LeftAxisEnabled_.
| QString LeechCraft::Util::PlotItem::GetLeftAxisTitle | ( | ) | const |
Definition at line 224 of file plotitem.cpp.
References LeftAxisTitle_.
| double LeechCraft::Util::PlotItem::GetMaxXValue | ( | ) | const |
Definition at line 133 of file plotitem.cpp.
References MaxXValue_.
| double LeechCraft::Util::PlotItem::GetMaxYValue | ( | ) | const |
Definition at line 153 of file plotitem.cpp.
References MaxYValue_.
| double LeechCraft::Util::PlotItem::GetMinXValue | ( | ) | const |
Definition at line 123 of file plotitem.cpp.
References MinXValue_.
| double LeechCraft::Util::PlotItem::GetMinYValue | ( | ) | const |
Definition at line 143 of file plotitem.cpp.
References MinYValue_.
| QVariant LeechCraft::Util::PlotItem::GetMultipoints | ( | ) | const |
Definition at line 82 of file plotitem.cpp.
References Multipoints_.
| QString LeechCraft::Util::PlotItem::GetPlotTitle | ( | ) | const |
Definition at line 244 of file plotitem.cpp.
References PlotTitle_.
| QList< QPointF > LeechCraft::Util::PlotItem::GetPoints | ( | ) | const |
Definition at line 67 of file plotitem.cpp.
References Points_.
| QColor LeechCraft::Util::PlotItem::GetTextColor | ( | ) | const |
Definition at line 264 of file plotitem.cpp.
References TextColor_.
| int LeechCraft::Util::PlotItem::GetXExtent | ( | ) | const |
Definition at line 284 of file plotitem.cpp.
References XExtent_.
| int LeechCraft::Util::PlotItem::GetYExtent | ( | ) | const |
Definition at line 289 of file plotitem.cpp.
References YExtent_.
| bool LeechCraft::Util::PlotItem::GetYGridEnabled | ( | ) | const |
Definition at line 163 of file plotitem.cpp.
References YGridEnabled_.
| bool LeechCraft::Util::PlotItem::GetYMinorGridEnabled | ( | ) | const |
Definition at line 173 of file plotitem.cpp.
References YMinorGridEnabled_.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
override |
Definition at line 295 of file plotitem.cpp.
References BackgroundColor_, BottomAxisEnabled_, BottomAxisTitle_, color, Color_, GridLinesColor_, LeftAxisEnabled_, LeftAxisTitle_, MaxYValue_, MinYValue_, Multipoints_, Plot_, PlotTitle_, Points_, TextColor_, YGridEnabled_, and YMinorGridEnabled_.
|
signal |
|
signal |
| void LeechCraft::Util::PlotItem::SetAlpha | ( | double | a | ) |
Definition at line 188 of file plotitem.cpp.
References Alpha_, and alphaChanged().
| void LeechCraft::Util::PlotItem::SetBackground | ( | const QColor & | bg | ) |
Definition at line 259 of file plotitem.cpp.
References backgroundChanged(), and BackgroundColor_.
| void LeechCraft::Util::PlotItem::SetBottomAxisEnabled | ( | bool | enabled | ) |
Definition at line 219 of file plotitem.cpp.
References BottomAxisEnabled_, and bottomAxisEnabledChanged().
| void LeechCraft::Util::PlotItem::SetBottomAxisTitle | ( | const QString & | title | ) |
Definition at line 239 of file plotitem.cpp.
References BottomAxisTitle_, and bottomAxisTitleChanged().
| void LeechCraft::Util::PlotItem::SetColor | ( | const QColor & | color | ) |
Definition at line 199 of file plotitem.cpp.
References Color_, and colorChanged().
| void LeechCraft::Util::PlotItem::SetGridLinesColor | ( | const QColor & | color | ) |
Definition at line 279 of file plotitem.cpp.
References GridLinesColor_, and gridLinesColorChanged().
| void LeechCraft::Util::PlotItem::SetLeftAxisEnabled | ( | bool | enabled | ) |
Definition at line 209 of file plotitem.cpp.
References LeftAxisEnabled_, and leftAxisEnabledChanged().
| void LeechCraft::Util::PlotItem::SetLeftAxisTitle | ( | const QString & | title | ) |
Definition at line 229 of file plotitem.cpp.
References LeftAxisTitle_, and leftAxisTitleChanged().
| void LeechCraft::Util::PlotItem::SetMaxXValue | ( | double | val | ) |
Definition at line 138 of file plotitem.cpp.
References MaxXValue_, and maxXValueChanged().
| void LeechCraft::Util::PlotItem::SetMaxYValue | ( | double | val | ) |
Definition at line 158 of file plotitem.cpp.
References MaxYValue_, and maxYValueChanged().
| void LeechCraft::Util::PlotItem::SetMinXValue | ( | double | val | ) |
Definition at line 128 of file plotitem.cpp.
References MinXValue_, and minXValueChanged().
| void LeechCraft::Util::PlotItem::SetMinYValue | ( | double | val | ) |
Definition at line 148 of file plotitem.cpp.
References MinYValue_, and minYValueChanged().
| void LeechCraft::Util::PlotItem::SetMultipoints | ( | const QVariant & | variant | ) |
Definition at line 93 of file plotitem.cpp.
References Multipoints_.
| void LeechCraft::Util::PlotItem::SetPlotTitle | ( | const QString & | title | ) |
Definition at line 249 of file plotitem.cpp.
References PlotTitle_, and plotTitleChanged().
| void LeechCraft::Util::PlotItem::SetPoints | ( | const QList< QPointF > & | pts | ) |
Definition at line 72 of file plotitem.cpp.
References Points_, and pointsChanged().
| void LeechCraft::Util::PlotItem::SetTextColor | ( | const QColor & | color | ) |
Definition at line 269 of file plotitem.cpp.
References TextColor_, and textColorChanged().
| void LeechCraft::Util::PlotItem::SetYGridEnabled | ( | bool | val | ) |
Definition at line 168 of file plotitem.cpp.
References yGridChanged(), and YGridEnabled_.
| void LeechCraft::Util::PlotItem::SetYMinorGridEnabled | ( | bool | val | ) |
Definition at line 178 of file plotitem.cpp.
References yMinorGridChanged(), and YMinorGridEnabled_.
|
signal |
|
signal |
|
signal |
|
readwrite |
Definition at line 68 of file plotitem.h.
| double LeechCraft::Util::PlotItem::Alpha_ = 0.3 |
Definition at line 101 of file plotitem.h.
Referenced by GetAlpha(), and SetAlpha().
|
readwrite |
Definition at line 77 of file plotitem.h.
| QColor LeechCraft::Util::PlotItem::BackgroundColor_ |
Definition at line 113 of file plotitem.h.
Referenced by GetBackground(), paint(), and SetBackground().
|
readwrite |
Definition at line 71 of file plotitem.h.
| bool LeechCraft::Util::PlotItem::BottomAxisEnabled_ = false |
Definition at line 106 of file plotitem.h.
Referenced by GetBottomAxisEnabled(), paint(), and SetBottomAxisEnabled().
|
readwrite |
Definition at line 73 of file plotitem.h.
| QString LeechCraft::Util::PlotItem::BottomAxisTitle_ |
Definition at line 109 of file plotitem.h.
Referenced by GetBottomAxisTitle(), paint(), and SetBottomAxisTitle().
|
readwrite |
Definition at line 69 of file plotitem.h.
Referenced by paint().
| QColor LeechCraft::Util::PlotItem::Color_ |
Definition at line 103 of file plotitem.h.
Referenced by GetColor(), paint(), and SetColor().
|
readwrite |
Definition at line 79 of file plotitem.h.
| QColor LeechCraft::Util::PlotItem::GridLinesColor_ |
Definition at line 115 of file plotitem.h.
Referenced by GetGridLinesColor(), paint(), and SetGridLinesColor().
|
readwrite |
Definition at line 70 of file plotitem.h.
| bool LeechCraft::Util::PlotItem::LeftAxisEnabled_ = false |
Definition at line 105 of file plotitem.h.
Referenced by GetLeftAxisEnabled(), paint(), and SetLeftAxisEnabled().
|
readwrite |
Definition at line 72 of file plotitem.h.
| QString LeechCraft::Util::PlotItem::LeftAxisTitle_ |
Definition at line 108 of file plotitem.h.
Referenced by GetLeftAxisTitle(), paint(), and SetLeftAxisTitle().
|
readwrite |
Definition at line 61 of file plotitem.h.
| double LeechCraft::Util::PlotItem::MaxXValue_ = -1 |
Definition at line 94 of file plotitem.h.
Referenced by GetMaxXValue(), and SetMaxXValue().
|
readwrite |
Definition at line 63 of file plotitem.h.
| double LeechCraft::Util::PlotItem::MaxYValue_ = -1 |
Definition at line 96 of file plotitem.h.
Referenced by GetMaxYValue(), paint(), and SetMaxYValue().
|
readwrite |
Definition at line 60 of file plotitem.h.
| double LeechCraft::Util::PlotItem::MinXValue_ = -1 |
Definition at line 93 of file plotitem.h.
Referenced by GetMinXValue(), and SetMinXValue().
|
readwrite |
Definition at line 62 of file plotitem.h.
| double LeechCraft::Util::PlotItem::MinYValue_ = -1 |
Definition at line 95 of file plotitem.h.
Referenced by GetMinYValue(), paint(), and SetMinYValue().
|
readwrite |
Definition at line 58 of file plotitem.h.
Definition at line 91 of file plotitem.h.
Referenced by GetMultipoints(), paint(), and SetMultipoints().
| std::shared_ptr<QwtPlot> LeechCraft::Util::PlotItem::Plot_ |
Definition at line 120 of file plotitem.h.
Referenced by paint().
|
readwrite |
Definition at line 75 of file plotitem.h.
| QString LeechCraft::Util::PlotItem::PlotTitle_ |
Definition at line 111 of file plotitem.h.
Referenced by GetPlotTitle(), paint(), and SetPlotTitle().
|
readwrite |
Definition at line 56 of file plotitem.h.
| QList<QPointF> LeechCraft::Util::PlotItem::Points_ |
Definition at line 84 of file plotitem.h.
Referenced by GetPoints(), paint(), and SetPoints().
|
readwrite |
Definition at line 78 of file plotitem.h.
| QColor LeechCraft::Util::PlotItem::TextColor_ |
Definition at line 114 of file plotitem.h.
Referenced by GetTextColor(), paint(), and SetTextColor().
|
read |
Definition at line 81 of file plotitem.h.
| int LeechCraft::Util::PlotItem::XExtent_ = 0 |
Definition at line 117 of file plotitem.h.
Referenced by GetXExtent().
|
read |
Definition at line 82 of file plotitem.h.
| int LeechCraft::Util::PlotItem::YExtent_ = 0 |
Definition at line 118 of file plotitem.h.
Referenced by GetYExtent().
|
readwrite |
Definition at line 65 of file plotitem.h.
| bool LeechCraft::Util::PlotItem::YGridEnabled_ = false |
Definition at line 98 of file plotitem.h.
Referenced by GetYGridEnabled(), paint(), and SetYGridEnabled().
|
readwrite |
Definition at line 66 of file plotitem.h.
| bool LeechCraft::Util::PlotItem::YMinorGridEnabled_ = false |
Definition at line 99 of file plotitem.h.
Referenced by GetYMinorGridEnabled(), paint(), and SetYMinorGridEnabled().