![]() |
Gra zręcznościowa „Straszna Epidemia"
V1.2
Projekt Wizualizacja Danych Sensorycznych Kewin Gałuszka rok akademicki 2019/2020
|
Responsible for drawing the grid of a QCPAxis. Więcej...
#include <qcustomplot.h>
Metody publiczne | |
QCPGrid (QCPAxis *parentAxis) | |
bool | subGridVisible () const |
bool | antialiasedSubGrid () const |
bool | antialiasedZeroLine () const |
QPen | pen () const |
QPen | subGridPen () const |
QPen | zeroLinePen () const |
void | setSubGridVisible (bool visible) |
void | setAntialiasedSubGrid (bool enabled) |
void | setAntialiasedZeroLine (bool enabled) |
void | setPen (const QPen &pen) |
void | setSubGridPen (const QPen &pen) |
void | setZeroLinePen (const QPen &pen) |
![]() | |
QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0) | |
virtual | ~QCPLayerable () |
bool | visible () const |
QCustomPlot * | parentPlot () const |
QCPLayerable * | parentLayerable () const |
QCPLayer * | layer () const |
bool | antialiased () const |
void | setVisible (bool on) |
Q_SLOT bool | setLayer (QCPLayer *layer) |
bool | setLayer (const QString &layerName) |
void | setAntialiased (bool enabled) |
virtual double | selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const |
bool | realVisibility () const |
Metody chronione | |
virtual void | applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE |
virtual void | draw (QCPPainter *painter) Q_DECL_OVERRIDE |
void | drawGridLines (QCPPainter *painter) const |
void | drawSubGridLines (QCPPainter *painter) const |
![]() | |
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) |
virtual QCP::Interaction | selectionCategory () const |
virtual QRect | clipRect () const |
virtual void | selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) |
virtual void | deselectEvent (bool *selectionStateChanged) |
virtual void | mousePressEvent (QMouseEvent *event, const QVariant &details) |
virtual void | mouseMoveEvent (QMouseEvent *event, const QPointF &startPos) |
virtual void | mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos) |
virtual void | mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details) |
virtual void | wheelEvent (QWheelEvent *event) |
void | initializeParentPlot (QCustomPlot *parentPlot) |
void | setParentLayerable (QCPLayerable *parentLayerable) |
bool | moveToLayer (QCPLayer *layer, bool prepend) |
void | applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const |
Atrybuty chronione | |
bool | mSubGridVisible |
bool | mAntialiasedSubGrid |
bool | mAntialiasedZeroLine |
QPen | mPen |
QPen | mSubGridPen |
QPen | mZeroLinePen |
QCPAxis * | mParentAxis |
![]() | |
bool | mVisible |
QCustomPlot * | mParentPlot |
QPointer< QCPLayerable > | mParentLayerable |
QCPLayer * | mLayer |
bool | mAntialiased |
Przyjaciele | |
class | QCPAxis |
Dodatkowe Dziedziczone Składowe | |
![]() | |
void | layerChanged (QCPLayer *newLayer) |
Responsible for drawing the grid of a QCPAxis.
This class is tightly bound to QCPAxis. Every axis owns a grid instance and uses it to draw the grid lines, sub grid lines and zero-line. You can interact with the grid of an axis via QCPAxis::grid. Normally, you don't need to create an instance of QCPGrid yourself.
The axis and grid drawing was split into two classes to allow them to be placed on different layers (both QCPAxis and QCPGrid inherit from QCPLayerable). Thus it is possible to have the grid in the background and the axes in the foreground, and any plottables/items in between. This described situation is the default setup, see the QCPLayer documentation.
Definicja w linii 1868 pliku qcustomplot.h.
|
explicit |
Creates a QCPGrid instance and sets default values.
You shouldn't instantiate grids on their own, since every QCPAxis brings its own QCPGrid.
Definicja w linii 7168 pliku qcustomplot.cpp.
|
inline |
Definicja w linii 1884 pliku qcustomplot.h.
|
inline |
Definicja w linii 1885 pliku qcustomplot.h.
|
protectedvirtual |
Implementuje QCPLayerable.
Definicja w linii 7249 pliku qcustomplot.cpp.
|
protectedvirtual |
Implementuje QCPLayerable.
Definicja w linii 7259 pliku qcustomplot.cpp.
|
protected |
Definicja w linii 7274 pliku qcustomplot.cpp.
|
protected |
Definicja w linii 7347 pliku qcustomplot.cpp.
|
inline |
void QCPGrid::setAntialiasedSubGrid | ( | bool | enabled | ) |
Sets whether sub grid lines are drawn antialiased.
Definicja w linii 7196 pliku qcustomplot.cpp.
void QCPGrid::setAntialiasedZeroLine | ( | bool | enabled | ) |
Sets whether zero lines are drawn antialiased.
Definicja w linii 7204 pliku qcustomplot.cpp.
void QCPGrid::setPen | ( | const QPen & | pen | ) |
Sets the pen with which (major) grid lines are drawn.
Definicja w linii 7212 pliku qcustomplot.cpp.
void QCPGrid::setSubGridPen | ( | const QPen & | pen | ) |
Sets the pen with which sub grid lines are drawn.
Definicja w linii 7220 pliku qcustomplot.cpp.
void QCPGrid::setSubGridVisible | ( | bool | visible | ) |
Sets whether grid lines at sub tick marks are drawn.
Definicja w linii 7188 pliku qcustomplot.cpp.
void QCPGrid::setZeroLinePen | ( | const QPen & | pen | ) |
Sets the pen with which zero lines are drawn.
Zero lines are lines at value coordinate 0 which may be drawn with a different pen than other grid lines. To disable zero lines and just draw normal grid lines at zero, set pen to Qt::NoPen.
Definicja w linii 7231 pliku qcustomplot.cpp.
|
inline |
Definicja w linii 1887 pliku qcustomplot.h.
|
inline |
Definicja w linii 1883 pliku qcustomplot.h.
|
inline |
Definicja w linii 1888 pliku qcustomplot.h.
|
friend |
Definicja w linii 1915 pliku qcustomplot.h.
|
protected |
Definicja w linii 1901 pliku qcustomplot.h.
|
protected |
Definicja w linii 1901 pliku qcustomplot.h.
|
protected |
Definicja w linii 1905 pliku qcustomplot.h.
|
protected |
Definicja w linii 1902 pliku qcustomplot.h.
|
protected |
Definicja w linii 1902 pliku qcustomplot.h.
|
protected |
Definicja w linii 1900 pliku qcustomplot.h.
|
protected |
Definicja w linii 1902 pliku qcustomplot.h.