QCPPolarAxisAngular
Public Types | |
enum | LabelMode { lmUpright , lmRotated } |
enum | SelectablePart { spNone = 0 , spAxis = 0x001 , spTickLabels = 0x002 , spAxisLabel = 0x004 } |
typedef QFlags< SelectablePart > | SelectableParts |
Public Types inherited from QCPLayoutElement | |
enum | SizeConstraintRect { scrInnerRect , scrOuterRect } |
enum | UpdatePhase { upPreparation , upMargins , upLayout } |
Public Types inherited from QObject | |
typedef | QObjectList |
Signals | |
void | rangeChanged (const QCPRange &newRange) |
void | rangeChanged (const QCPRange &newRange, const QCPRange &oldRange) |
void | selectableChanged (const QCPPolarAxisAngular::SelectableParts &parts) |
void | selectionChanged (const QCPPolarAxisAngular::SelectableParts &parts) |
Signals inherited from QCPLayerable | |
void | layerChanged (QCPLayer *newLayer) |
Public Member Functions | |
QCPPolarAxisAngular (QCustomPlot *parentPlot) | |
QCPPolarAxisRadial * | addRadialAxis (QCPPolarAxisRadial *axis=0) |
double | angle () const |
double | angleRadToCoord (double angleRad) const |
QPixmap | background () const |
QBrush | backgroundBrush () const |
bool | backgroundScaled () const |
Qt::AspectRatioMode | backgroundScaledMode () const |
QPen | basePen () const |
int | bottom () const |
QPoint | bottomLeft () const |
QPoint | bottomRight () const |
QPointF | center () const |
double | coordToAngleRad (double coord) const |
QPointF | coordToPixel (double angleCoord, double radiusCoord) const |
virtual QList< QCPLayoutElement * > | elements (bool recursive) const override |
QRegion | exactClipRegion () const |
SelectablePart | getPartAt (const QPointF &pos) const |
QCPPolarGrid * | grid () const |
int | height () const |
QCPLayoutInset * | insetLayout () const |
QString | label () const |
QColor | labelColor () const |
QFont | labelFont () const |
int | labelPadding () const |
int | left () const |
void | moveRange (double diff) |
QString | numberFormat () const |
int | numberPrecision () const |
void | pixelToCoord (QPointF pixelPos, double &angleCoord, double &radiusCoord) const |
QList< QCPPolarAxisRadial * > | radialAxes () const |
QCPPolarAxisRadial * | radialAxis (int index=0) const |
int | radialAxisCount () const |
double | radius () const |
const QCPRange | range () const |
bool | rangeDrag () const |
bool | rangeReversed () const |
bool | rangeZoom () const |
double | rangeZoomFactor () const |
bool | removeGraph (QCPPolarGraph *graph) |
bool | removeRadialAxis (QCPPolarAxisRadial *axis) |
void | rescale (bool onlyVisiblePlottables=false) |
int | right () const |
void | scaleRange (double factor) |
void | scaleRange (double factor, double center) |
SelectableParts | selectableParts () const |
QPen | selectedBasePen () const |
QColor | selectedLabelColor () const |
QFont | selectedLabelFont () const |
SelectableParts | selectedParts () const |
QPen | selectedSubTickPen () const |
QColor | selectedTickLabelColor () const |
QFont | selectedTickLabelFont () const |
QPen | selectedTickPen () const |
virtual double | selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const override |
void | setAngle (double degrees) |
void | setBackground (const QBrush &brush) |
void | setBackground (const QPixmap &pm) |
void | setBackground (const QPixmap &pm, bool scaled, Qt::AspectRatioMode mode=Qt::KeepAspectRatioByExpanding) |
void | setBackgroundScaled (bool scaled) |
void | setBackgroundScaledMode (Qt::AspectRatioMode mode) |
void | setBasePen (const QPen &pen) |
void | setLabel (const QString &str) |
void | setLabelColor (const QColor &color) |
void | setLabelFont (const QFont &font) |
void | setLabelPadding (int padding) |
void | setLabelPosition (Qt::AlignmentFlag position) |
void | setNumberFormat (const QString &formatCode) |
void | setNumberPrecision (int precision) |
Q_SLOT void | setRange (const QCPRange &range) |
void | setRange (double lower, double upper) |
void | setRange (double position, double size, Qt::AlignmentFlag alignment) |
void | setRangeDrag (bool enabled) |
void | setRangeLower (double lower) |
void | setRangeReversed (bool reversed) |
void | setRangeUpper (double upper) |
void | setRangeZoom (bool enabled) |
void | setRangeZoomFactor (double factor) |
Q_SLOT void | setSelectableParts (const QCPPolarAxisAngular::SelectableParts &selectableParts) |
void | setSelectedBasePen (const QPen &pen) |
void | setSelectedLabelColor (const QColor &color) |
void | setSelectedLabelFont (const QFont &font) |
Q_SLOT void | setSelectedParts (const QCPPolarAxisAngular::SelectableParts &selectedParts) |
void | setSelectedSubTickPen (const QPen &pen) |
void | setSelectedTickLabelColor (const QColor &color) |
void | setSelectedTickLabelFont (const QFont &font) |
void | setSelectedTickPen (const QPen &pen) |
void | setSubTickLength (int inside, int outside=0) |
void | setSubTickLengthIn (int inside) |
void | setSubTickLengthOut (int outside) |
void | setSubTickPen (const QPen &pen) |
void | setSubTicks (bool show) |
void | setTicker (QSharedPointer< QCPAxisTicker > ticker) |
void | setTickLabelColor (const QColor &color) |
void | setTickLabelFont (const QFont &font) |
void | setTickLabelMode (LabelMode mode) |
void | setTickLabelPadding (int padding) |
void | setTickLabelRotation (double degrees) |
void | setTickLabels (bool show) |
void | setTickLength (int inside, int outside=0) |
void | setTickLengthIn (int inside) |
void | setTickLengthOut (int outside) |
void | setTickPen (const QPen &pen) |
void | setTicks (bool show) |
QSize | size () const |
int | subTickLengthIn () const |
int | subTickLengthOut () const |
QPen | subTickPen () const |
bool | subTicks () const |
QSharedPointer< QCPAxisTicker > | ticker () const |
QColor | tickLabelColor () const |
QFont | tickLabelFont () const |
LabelMode | tickLabelMode () const |
int | tickLabelPadding () const |
double | tickLabelRotation () const |
bool | tickLabels () const |
int | tickLengthIn () const |
int | tickLengthOut () const |
QPen | tickPen () const |
bool | ticks () const |
QVector< double > | tickVector () const |
QVector< QString > | tickVectorLabels () const |
int | top () const |
QPoint | topLeft () const |
QPoint | topRight () const |
virtual void | update (UpdatePhase phase) override |
int | width () const |
Public Member Functions inherited from QCPLayoutElement | |
QCPLayoutElement (QCustomPlot *parentPlot=nullptr) | |
QCP::MarginSides | autoMargins () const |
QCPLayout * | layout () const |
QCPMarginGroup * | marginGroup (QCP::MarginSide side) const |
QHash< QCP::MarginSide, QCPMarginGroup * > | marginGroups () const |
QMargins | margins () const |
virtual QSize | maximumOuterSizeHint () const |
QSize | maximumSize () const |
QMargins | minimumMargins () const |
virtual QSize | minimumOuterSizeHint () const |
QSize | minimumSize () const |
QRect | outerRect () const |
QRect | rect () const |
void | setAutoMargins (QCP::MarginSides sides) |
void | setMarginGroup (QCP::MarginSides sides, QCPMarginGroup *group) |
void | setMargins (const QMargins &margins) |
void | setMaximumSize (const QSize &size) |
void | setMaximumSize (int width, int height) |
void | setMinimumMargins (const QMargins &margins) |
void | setMinimumSize (const QSize &size) |
void | setMinimumSize (int width, int height) |
void | setOuterRect (const QRect &rect) |
void | setSizeConstraintRect (SizeConstraintRect constraintRect) |
SizeConstraintRect | sizeConstraintRect () const |
Public Member Functions inherited from QCPLayerable | |
QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=nullptr) | |
bool | antialiased () const |
QCPLayer * | layer () const |
QCPLayerable * | parentLayerable () const |
QCustomPlot * | parentPlot () const |
bool | realVisibility () const |
void | setAntialiased (bool enabled) |
bool | setLayer (const QString &layerName) |
Q_SLOT bool | setLayer (QCPLayer *layer) |
void | setVisible (bool on) |
bool | visible () const |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QBindable< QString > | bindableObjectName () |
bool | blockSignals (bool block) |
const QObjectList & | children () const const |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
bool | disconnect (const QObject *receiver, const char *method) const const |
void | dumpObjectInfo () const const |
void | dumpObjectTree () const const |
QList< QByteArray > | dynamicPropertyNames () const const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (Qt::FindChildOptions options) const const |
bool | inherits (const char *className) const const |
void | installEventFilter (QObject *filterObj) |
bool | isQuickItemType () const const |
bool | isWidgetType () const const |
bool | isWindowType () const const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const const |
void | moveToThread (QThread *targetThread) |
QString | objectName () const const |
void | objectNameChanged (const QString &objectName) |
QObject * | parent () const const |
QVariant | property (const char *name) const const |
Q_CLASSINFO (Name, Value) | |
Q_EMIT Q_EMIT | |
Q_ENUM (...) | |
Q_ENUM_NS (...) | |
Q_ENUMS (...) | |
Q_FLAG (...) | |
Q_FLAG_NS (...) | |
Q_FLAGS (...) | |
Q_GADGET Q_GADGET | |
Q_GADGET_EXPORT (EXPORT_MACRO) | |
Q_INTERFACES (...) | |
Q_INVOKABLE Q_INVOKABLE | |
Q_MOC_INCLUDE Q_MOC_INCLUDE | |
Q_NAMESPACE Q_NAMESPACE | |
Q_NAMESPACE_EXPORT (EXPORT_MACRO) | |
Q_OBJECT Q_OBJECT | |
Q_PROPERTY (...) | |
Q_REVISION Q_REVISION | |
Q_SET_OBJECT_NAME (Object) | |
Q_SIGNAL Q_SIGNAL | |
Q_SIGNALS Q_SIGNALS | |
Q_SLOT Q_SLOT | |
Q_SLOTS Q_SLOTS | |
T | qobject_cast (const QObject *object) |
T | qobject_cast (QObject *object) |
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
void | removeEventFilter (QObject *obj) |
void | setObjectName (const QString &name) |
void | setObjectName (QAnyStringView name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | setProperty (const char *name, QVariant &&value) |
bool | signalsBlocked () const const |
int | startTimer (int interval, Qt::TimerType timerType) |
int | startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType) |
QThread * | thread () const const |
Protected Member Functions | |
virtual void | applyDefaultAntialiasingHint (QCPPainter *painter) const override |
virtual void | draw (QCPPainter *painter) override |
void | drawBackground (QCPPainter *painter, const QPointF ¢er, double radius) |
QPen | getBasePen () const |
QColor | getLabelColor () const |
QFont | getLabelFont () const |
QPen | getSubTickPen () const |
QColor | getTickLabelColor () const |
QFont | getTickLabelFont () const |
QPen | getTickPen () const |
virtual void | mouseMoveEvent (QMouseEvent *event, const QPointF &startPos) override |
virtual void | mousePressEvent (QMouseEvent *event, const QVariant &details) override |
virtual void | mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos) override |
bool | registerPolarGraph (QCPPolarGraph *graph) |
virtual QCP::Interaction | selectionCategory () const override |
void | setupTickVectors () |
virtual void | wheelEvent (QWheelEvent *event) override |
Protected Member Functions inherited from QCPLayoutElement | |
virtual int | calculateAutoMargin (QCP::MarginSide side) |
virtual void | layoutChanged () |
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) override |
Protected Member Functions inherited from QCPLayerable | |
void | applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const |
virtual QRect | clipRect () const |
virtual void | deselectEvent (bool *selectionStateChanged) |
void | initializeParentPlot (QCustomPlot *parentPlot) |
virtual void | mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details) |
bool | moveToLayer (QCPLayer *layer, bool prepend) |
virtual void | selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) |
void | setParentLayerable (QCPLayerable *parentLayerable) |
Protected Member Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Additional Inherited Members | |
Properties inherited from QObject | |
objectName | |
Static Public Member Functions inherited from QObject | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
Detailed Description
The main container for polar plots, representing the angular axis as a circle.
- Warning
- In this QCustomPlot version, polar plots are a tech preview. Expect documentation and functionality to be incomplete, as well as changing public interfaces in the future.
Definition at line 7258 of file qcustomplot.h.
Member Typedef Documentation
◆ SelectableParts
Definition at line 7276 of file qcustomplot.h.
Member Enumeration Documentation
◆ LabelMode
TODO
Definition at line 7281 of file qcustomplot.h.
◆ SelectablePart
Defines the selectable parts of an axis.
- See also
- setSelectableParts, setSelectedParts
Enumerator | |
---|---|
spNone | None of the selectable parts. |
spAxis | The axis backbone and tick marks. |
spTickLabels | Tick labels (numbers) of this axis (as a whole, not individually) |
spAxisLabel | The axis label. |
Definition at line 7269 of file qcustomplot.h.
Constructor & Destructor Documentation
◆ QCPPolarAxisAngular()
|
explicit |
Creates a QCPPolarAxis instance and sets default values. An axis is added for each of the four sides, the top and right axes are set invisible initially.
Definition at line 32574 of file qcustomplot.cpp.
◆ ~QCPPolarAxisAngular()
|
virtual |
Definition at line 32656 of file qcustomplot.cpp.
Member Function Documentation
◆ addRadialAxis()
QCPPolarAxisRadial * QCPPolarAxisAngular::addRadialAxis | ( | QCPPolarAxisRadial * | axis = 0 | ) |
Adds a new axis to the axis rect side specified with type, and returns it. If axis is 0, a new QCPAxis instance is created internally. QCustomPlot owns the returned axis, so if you want to remove an axis, use removeAxis instead of deleting it manually.
You may inject QCPAxis instances (or subclasses of QCPAxis) by setting axis to an axis that was previously created outside QCustomPlot. It is important to note that QCustomPlot takes ownership of the axis, so you may not delete it afterwards. Further, the axis must have been created with this axis rect as parent and with the same axis type as specified in type. If this is not the case, a debug output is generated, the axis is not added, and the method returns 0.
This method can not be used to move axis between axis rects. The same axis instance must not be added multiple times to the same or different axis rects.
If an axis rect side already contains one or more axes, the lower and upper endings of the new axis (QCPAxis::setLowerEnding, QCPAxis::setUpperEnding) are set to QCPLineEnding::esHalfBar.
- See also
- addAxes, setupFullAxesBox
Definition at line 32755 of file qcustomplot.cpp.
◆ angle()
|
inline |
Definition at line 7300 of file qcustomplot.h.
◆ angleRadToCoord()
|
inline |
Definition at line 7408 of file qcustomplot.h.
◆ applyDefaultAntialiasingHint()
|
overrideprotectedvirtual |
This function applies the default antialiasing setting to the specified painter, using the function applyAntialiasingHint. It is the antialiasing state the painter is put in, when draw is called on the layerable. If the layerable has multiple entities whose antialiasing setting may be specified individually, this function should set the antialiasing state of the most prominent entity. In this case however, the draw function usually calls the specialized versions of this function before drawing each entity, effectively overriding the setting of the default antialiasing hint.
First example: QCPGraph has multiple entities that have an antialiasing setting: The graph line, fills and scatters. Those can be configured via QCPGraph::setAntialiased, QCPGraph::setAntialiasedFill and QCPGraph::setAntialiasedScatters. Consequently, there isn't only the QCPGraph::applyDefaultAntialiasingHint function (which corresponds to the graph line's antialiasing), but specialized ones like QCPGraph::applyFillAntialiasingHint and QCPGraph::applyScattersAntialiasingHint. So before drawing one of those entities, QCPGraph::draw calls the respective specialized applyAntialiasingHint function.
Second example: QCPItemLine consists only of a line so there is only one antialiasing setting which can be controlled with QCPItemLine::setAntialiased. (This function is inherited by all layerables. The specialized functions, as seen on QCPGraph, must be added explicitly to the respective layerable subclass.) Consequently it only has the normal QCPItemLine::applyDefaultAntialiasingHint. The QCPItemLine::draw function doesn't need to care about setting any antialiasing states, because the default antialiasing hint is already set on the painter when the draw function is called, and that's the state it wants to draw the line with.
Reimplemented from QCPLayoutElement.
Definition at line 33053 of file qcustomplot.cpp.
◆ background()
|
inline |
Definition at line 7290 of file qcustomplot.h.
◆ backgroundBrush()
|
inline |
Definition at line 7291 of file qcustomplot.h.
◆ backgroundScaled()
|
inline |
Definition at line 7292 of file qcustomplot.h.
◆ backgroundScaledMode()
|
inline |
Definition at line 7293 of file qcustomplot.h.
◆ basePen()
|
inline |
Definition at line 7318 of file qcustomplot.h.
◆ bottom()
|
inline |
Returns the pixel position of the bottom border of this axis rect. Margins are not taken into account here, so the returned value is with respect to the inner rect.
Definition at line 7417 of file qcustomplot.h.
◆ bottomLeft()
|
inline |
Returns the bottom left corner of this axis rect in pixels. Margins are not taken into account here, so the returned value is with respect to the inner rect.
Definition at line 7423 of file qcustomplot.h.
◆ bottomRight()
|
inline |
Returns the bottom right corner of this axis rect in pixels. Margins are not taken into account here, so the returned value is with respect to the inner rect.
Definition at line 7424 of file qcustomplot.h.
◆ center()
|
inline |
Returns the center of this axis rect in pixels. Margins are not taken into account here, so the returned value is with respect to the inner rect.
Definition at line 7425 of file qcustomplot.h.
◆ coordToAngleRad()
|
inline |
Definition at line 7407 of file qcustomplot.h.
◆ coordToPixel()
QPointF QCPPolarAxisAngular::coordToPixel | ( | double | angleCoord, |
double | radiusCoord ) const |
Transforms value, in coordinates of the axis, to pixel coordinates of the QCustomPlot widget.
Definition at line 32910 of file qcustomplot.cpp.
◆ draw()
|
overrideprotectedvirtual |
This function draws the layerable with the specified painter. It is only called by QCustomPlot, if the layerable is visible (setVisible).
Before this function is called, the painter's antialiasing state is set via applyDefaultAntialiasingHint, see the documentation there. Further, the clipping rectangle was set to clipRect.
Reimplemented from QCPLayoutElement.
Definition at line 33059 of file qcustomplot.cpp.
◆ drawBackground()
|
protected |
Draws the background of this axis rect. It may consist of a background fill (a QBrush) and a pixmap.
If a brush was given via setBackground(const QBrush &brush), this function first draws an according filling inside the axis rect with the provided painter.
Then, if a pixmap was provided via setBackground, this function buffers the scaled version depending on setBackgroundScaled and setBackgroundScaledMode and then draws it inside the axis rect with the provided painter. The scaled version is buffered in mScaledBackgroundPixmap to prevent expensive rescaling at every redraw. It is only updated, when the axis rect has changed in a way that requires a rescale of the background pixmap (this is dependent on the setBackgroundScaledMode), or when a differend axis background pixmap was set.
Definition at line 33846 of file qcustomplot.cpp.
◆ elements()
|
overridevirtual |
Returns a list of all child elements in this layout element. If recursive is true, all sub-child elements are included in the list, too.
- Warning
- There may be
nullptr
entries in the returned list. For example, QCPLayoutGrid may have empty cells which yieldnullptr
at the respective index.
Reimplemented from QCPLayoutElement.
Definition at line 33024 of file qcustomplot.cpp.
◆ exactClipRegion()
QRegion QCPPolarAxisAngular::exactClipRegion | ( | ) | const |
Definition at line 32799 of file qcustomplot.cpp.
◆ getBasePen()
|
protected |
Returns the pen that is used to draw the axis base line. Depending on the selection state, this is either mSelectedBasePen or mBasePen.
Definition at line 33914 of file qcustomplot.cpp.
◆ getLabelColor()
|
protected |
Returns the color that is used to draw the axis label. Depending on the selection state, this is either mSelectedLabelColor or mLabelColor.
Definition at line 33974 of file qcustomplot.cpp.
◆ getLabelFont()
|
protected |
Returns the font that is used to draw the axis label. Depending on the selection state, this is either mSelectedLabelFont or mLabelFont.
Definition at line 33954 of file qcustomplot.cpp.
◆ getPartAt()
QCPPolarAxisAngular::SelectablePart QCPPolarAxisAngular::getPartAt | ( | const QPointF & | pos | ) | const |
Returns the part of the axis that is hit by pos (in pixels). The return value of this function is independent of the user-selectable parts defined with setSelectableParts. Further, this function does not change the current selection state of the axis.
If the axis is not visible (setVisible), this function always returns spNone.
Definition at line 32931 of file qcustomplot.cpp.
◆ getSubTickPen()
|
protected |
Returns the pen that is used to draw the subticks. Depending on the selection state, this is either mSelectedSubTickPen or mSubTickPen.
Definition at line 33934 of file qcustomplot.cpp.
◆ getTickLabelColor()
|
protected |
Returns the color that is used to draw the tick labels. Depending on the selection state, this is either mSelectedTickLabelColor or mTickLabelColor.
Definition at line 33964 of file qcustomplot.cpp.
◆ getTickLabelFont()
|
protected |
Returns the font that is used to draw the tick labels. Depending on the selection state, this is either mSelectedTickLabelFont or mTickLabelFont.
Definition at line 33944 of file qcustomplot.cpp.
◆ getTickPen()
|
protected |
Returns the pen that is used to draw the (major) ticks. Depending on the selection state, this is either mSelectedTickPen or mTickPen.
Definition at line 33924 of file qcustomplot.cpp.
◆ grid()
|
inline |
Definition at line 7334 of file qcustomplot.h.
◆ height()
|
inline |
Returns the pixel height of this axis rect. Margins are not taken into account here, so the returned value is with respect to the inner rect.
Definition at line 7419 of file qcustomplot.h.
◆ insetLayout()
|
inline |
Returns the inset layout of this axis rect. It can be used to place other layout elements (or even layouts with multiple other elements) inside/on top of an axis rect.
- See also
- QCPLayoutInset
Definition at line 7400 of file qcustomplot.h.
◆ label()
|
inline |
Definition at line 7323 of file qcustomplot.h.
◆ labelColor()
|
inline |
Definition at line 7322 of file qcustomplot.h.
◆ labelFont()
|
inline |
Definition at line 7321 of file qcustomplot.h.
◆ labelPadding()
|
inline |
Definition at line 7324 of file qcustomplot.h.
◆ left()
|
inline |
Returns the pixel position of the left border of this axis rect. Margins are not taken into account here, so the returned value is with respect to the inner rect.
Definition at line 7414 of file qcustomplot.h.
◆ mouseMoveEvent()
|
overrideprotectedvirtual |
Event handler for when the mouse is moved on the axis rect. If range dragging was activated in a preceding mousePressEvent, the range is moved accordingly.
- See also
- mousePressEvent, mouseReleaseEvent
Reimplemented from QCPLayerable.
Definition at line 34020 of file qcustomplot.cpp.
◆ mousePressEvent()
|
overrideprotectedvirtual |
Event handler for when a mouse button is pressed on the axis rect. If the left mouse button is pressed, the range dragging interaction is initialized (the actual range manipulation happens in the mouseMoveEvent).
The mDragging flag is set to true and some anchor points are set that are needed to determine the distance the mouse was dragged in the mouse move/release events later.
- See also
- mouseMoveEvent, mouseReleaseEvent
Reimplemented from QCPLayerable.
Definition at line 33990 of file qcustomplot.cpp.
◆ mouseReleaseEvent()
|
overrideprotectedvirtual |
This event gets called when the user releases the mouse button, after this layerable has become the mouse grabber by accepting the preceding mousePressEvent.
The current pixel position of the cursor on the QCustomPlot widget is accessible via event->pos()
. The parameter startPos indicates the position where the initial mousePressEvent occurred, that started the mouse interaction.
The default implementation does nothing.
Reimplemented from QCPLayerable.
Definition at line 34072 of file qcustomplot.cpp.
◆ moveRange()
void QCPPolarAxisAngular::moveRange | ( | double | diff | ) |
If the scale type (setScaleType) is stLinear, diff is added to the lower and upper bounds of the range. The range is simply moved by diff.
If the scale type is stLogarithmic, the range bounds are multiplied by diff. This corresponds to an apparent "linear" move in logarithmic scaling by a distance of log(diff).
Definition at line 32811 of file qcustomplot.cpp.
◆ numberFormat()
QString QCPPolarAxisAngular::numberFormat | ( | ) | const |
Definition at line 32681 of file qcustomplot.cpp.
◆ numberPrecision()
|
inline |
Definition at line 7310 of file qcustomplot.h.
◆ pixelToCoord()
void QCPPolarAxisAngular::pixelToCoord | ( | QPointF | pixelPos, |
double & | angleCoord, | ||
double & | radiusCoord ) const |
Transforms value, in pixel coordinates of the QCustomPlot widget, to axis coordinates.
Definition at line 32899 of file qcustomplot.cpp.
◆ radialAxes()
QList< QCPPolarAxisRadial * > QCPPolarAxisAngular::radialAxes | ( | ) | const |
Returns all axes on the axis rect sides specified with types.
types may be a single QCPAxis::AxisType or an or
-combination, to get the axes of multiple sides.
- See also
- axis
Definition at line 32729 of file qcustomplot.cpp.
◆ radialAxis()
QCPPolarAxisRadial * QCPPolarAxisAngular::radialAxis | ( | int | index = 0 | ) | const |
Returns the axis with the given index on the axis rect side specified with type.
- See also
- axisCount, axes
Definition at line 32709 of file qcustomplot.cpp.
◆ radialAxisCount()
int QCPPolarAxisAngular::radialAxisCount | ( | ) | const |
Returns the number of axes on the axis rect side specified with type.
- See also
- axis
Definition at line 32699 of file qcustomplot.cpp.
◆ radius()
|
inline |
Definition at line 7426 of file qcustomplot.h.
◆ range()
|
inline |
Definition at line 7298 of file qcustomplot.h.
◆ rangeDrag()
|
inline |
Definition at line 7294 of file qcustomplot.h.
◆ rangeReversed()
|
inline |
Definition at line 7299 of file qcustomplot.h.
◆ rangeZoom()
|
inline |
Definition at line 7295 of file qcustomplot.h.
◆ rangeZoomFactor()
|
inline |
Definition at line 7296 of file qcustomplot.h.
◆ registerPolarGraph()
|
protected |
Definition at line 34138 of file qcustomplot.cpp.
◆ removeGraph()
bool QCPPolarAxisAngular::removeGraph | ( | QCPPolarGraph * | graph | ) |
Definition at line 33036 of file qcustomplot.cpp.
◆ removeRadialAxis()
bool QCPPolarAxisAngular::removeRadialAxis | ( | QCPPolarAxisRadial * | radialAxis | ) |
Removes the specified axis from the axis rect and deletes it.
Returns true on success, i.e. if axis was a valid axis in this axis rect.
- See also
- addAxis
Definition at line 32785 of file qcustomplot.cpp.
◆ rescale()
void QCPPolarAxisAngular::rescale | ( | bool | onlyVisiblePlottables = false | ) |
Changes the axis range such that all plottables associated with this axis are fully visible in that dimension.
Definition at line 32861 of file qcustomplot.cpp.
◆ right()
|
inline |
Returns the pixel position of the right border of this axis rect. Margins are not taken into account here, so the returned value is with respect to the inner rect.
Definition at line 7415 of file qcustomplot.h.
◆ scaleRange() [1/2]
void QCPPolarAxisAngular::scaleRange | ( | double | factor | ) |
Scales the range of this axis by factor around the center of the current axis range. For example, if factor is 2.0, then the axis range will double its size, and the point at the axis range center won't have changed its position in the QCustomPlot widget (i.e. coordinates around the center will have moved symmetrically closer).
If you wish to scale around a different coordinate than the current axis range center, use the overload scaleRange(double factor, double center).
Definition at line 32829 of file qcustomplot.cpp.
◆ scaleRange() [2/2]
void QCPPolarAxisAngular::scaleRange | ( | double | factor, |
double | center ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Scales the range of this axis by factor around the coordinate center. For example, if factor is 2.0, center is 1.0, then the axis range will double its size, and the point at coordinate 1.0 won't have changed its position in the QCustomPlot widget (i.e. coordinates around 1.0 will have moved symmetrically closer to 1.0).
- See also
- scaleRange(double factor)
Definition at line 32843 of file qcustomplot.cpp.
◆ selectableParts()
|
inline |
Definition at line 7326 of file qcustomplot.h.
◆ selectedBasePen()
|
inline |
Definition at line 7331 of file qcustomplot.h.
◆ selectedLabelColor()
|
inline |
Definition at line 7330 of file qcustomplot.h.
◆ selectedLabelFont()
|
inline |
Definition at line 7328 of file qcustomplot.h.
◆ selectedParts()
|
inline |
Definition at line 7325 of file qcustomplot.h.
◆ selectedSubTickPen()
|
inline |
Definition at line 7333 of file qcustomplot.h.
◆ selectedTickLabelColor()
|
inline |
Definition at line 7329 of file qcustomplot.h.
◆ selectedTickLabelFont()
|
inline |
Definition at line 7327 of file qcustomplot.h.
◆ selectedTickPen()
|
inline |
Definition at line 7332 of file qcustomplot.h.
◆ selectionCategory()
|
overrideprotectedvirtual |
Returns the selection category this layerable shall belong to. The selection category is used in conjunction with QCustomPlot::setInteractions to control which objects are selectable and which aren't.
Subclasses that don't fit any of the normal QCP::Interaction values can use QCP::iSelectOther. This is what the default implementation returns.
- See also
- QCustomPlot::setInteractions
Reimplemented from QCPLayerable.
Definition at line 33101 of file qcustomplot.cpp.
◆ selectTest()
|
overridevirtual |
Layout elements are sensitive to events inside their outer rect. If pos is within the outer rect, this method returns a value corresponding to 0.99 times the parent plot's selection tolerance. However, layout elements are not selectable by default. So if onlySelectable is true, -1.0 is returned.
See QCPLayerable::selectTest for a general explanation of this virtual method.
QCPLayoutElement subclasses may reimplement this method to provide more specific selection test behaviour.
Reimplemented from QCPLayoutElement.
Definition at line 32951 of file qcustomplot.cpp.
◆ setAngle()
void QCPPolarAxisAngular::setAngle | ( | double | degrees | ) |
Definition at line 33360 of file qcustomplot.cpp.
◆ setBackground() [1/3]
void QCPPolarAxisAngular::setBackground | ( | const QBrush & | brush | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Sets brush as the background brush. The axis rect background will be filled with this brush. Since axis rects place themselves on the "background" layer by default, the axis rect backgrounds are usually drawn below everything else.
The brush will be drawn before (under) any background pixmap, which may be specified with setBackground(const QPixmap &pm).
To disable drawing of a background brush, set brush to Qt::NoBrush.
- See also
- setBackground(const QPixmap &pm)
Definition at line 33141 of file qcustomplot.cpp.
◆ setBackground() [2/3]
void QCPPolarAxisAngular::setBackground | ( | const QPixmap & | pm | ) |
Sets pm as the axis background pixmap. The axis background pixmap will be drawn inside the axis rect. Since axis rects place themselves on the "background" layer by default, the axis rect backgrounds are usually drawn below everything else.
For cases where the provided pixmap doesn't have the same size as the axis rect, scaling can be enabled with setBackgroundScaled and the scaling mode (i.e. whether and how the aspect ratio is preserved) can be set with setBackgroundScaledMode. To set all these options in one call, consider using the overloaded version of this function.
Below the pixmap, the axis rect may be optionally filled with a brush, if specified with setBackground(const QBrush &brush).
Definition at line 33122 of file qcustomplot.cpp.
◆ setBackground() [3/3]
void QCPPolarAxisAngular::setBackground | ( | const QPixmap & | pm, |
bool | scaled, | ||
Qt::AspectRatioMode | mode = Qt::KeepAspectRatioByExpanding ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Allows setting the background pixmap of the axis rect, whether it shall be scaled and how it shall be scaled in one call.
Definition at line 33153 of file qcustomplot.cpp.
◆ setBackgroundScaled()
void QCPPolarAxisAngular::setBackgroundScaled | ( | bool | scaled | ) |
Sets whether the axis background pixmap shall be scaled to fit the axis rect or not. If scaled is set to true, you may control whether and how the aspect ratio of the original pixmap is preserved with setBackgroundScaledMode.
Note that the scaled version of the original pixmap is buffered, so there is no performance penalty on replots. (Except when the axis rect dimensions are changed continuously.)
- See also
- setBackground, setBackgroundScaledMode
Definition at line 33171 of file qcustomplot.cpp.
◆ setBackgroundScaledMode()
void QCPPolarAxisAngular::setBackgroundScaledMode | ( | Qt::AspectRatioMode | mode | ) |
If scaling of the axis background pixmap is enabled (setBackgroundScaled), use this function to define whether and how the aspect ratio of the original pixmap passed to setBackground is preserved.
- See also
- setBackground, setBackgroundScaled
Definition at line 33181 of file qcustomplot.cpp.
◆ setBasePen()
void QCPPolarAxisAngular::setBasePen | ( | const QPen & | pen | ) |
Sets the pen, the axis base line is drawn with.
- See also
- setTickPen, setSubTickPen
Definition at line 33674 of file qcustomplot.cpp.
◆ setLabel()
void QCPPolarAxisAngular::setLabel | ( | const QString & | str | ) |
Sets the text of the axis label that will be shown below/above or next to the axis, depending on its orientation. To disable axis labels, pass an empty string as str.
Definition at line 33727 of file qcustomplot.cpp.
◆ setLabelColor()
void QCPPolarAxisAngular::setLabelColor | ( | const QColor & | color | ) |
Sets the color of the axis label.
- See also
- setLabelFont
Definition at line 33718 of file qcustomplot.cpp.
◆ setLabelFont()
void QCPPolarAxisAngular::setLabelFont | ( | const QFont & | font | ) |
Sets the font of the axis label.
- See also
- setLabelColor
Definition at line 33704 of file qcustomplot.cpp.
◆ setLabelPadding()
void QCPPolarAxisAngular::setLabelPadding | ( | int | padding | ) |
Sets the distance between the tick labels and the axis label.
- See also
- setTickLabelPadding, setPadding
Definition at line 33741 of file qcustomplot.cpp.
◆ setNumberFormat()
void QCPPolarAxisAngular::setNumberFormat | ( | const QString & | formatCode | ) |
Sets the number format for the numbers in tick labels. This formatCode is an extended version of the format code used e.g. by QString::number() and QLocale::toString(). For reference about that, see the "Argument Formats" section in the detailed description of the QString class.
formatCode is a string of one, two or three characters. The first character is identical to the normal format code used by Qt. In short, this means: 'e'/'E' scientific format, 'f' fixed format, 'g'/'G' scientific or fixed, whichever is shorter.
The second and third characters are optional and specific to QCustomPlot:
If the first char was 'e' or 'g', numbers are/might be displayed in the scientific format, e.g. "5.5e9", which might be visually unappealing in a plot. So when the second char of formatCode is set to 'b' (for "beautiful"), those exponential numbers are formatted in a more natural way, i.e. "5.5
[multiplication sign] 10 [superscript] 9". By default, the multiplication sign is a centered dot. If instead a cross should be shown (as is usual in the USA), the third char of formatCode can be set to 'c'. The inserted multiplication signs are the UTF-8 characters 215 (0xD7) for the cross and 183 (0xB7) for the dot.
Examples for formatCode:
g
normal format code behaviour. If number is small, fixed format is used, if number is large, normal scientific format is usedgb
If number is small, fixed format is used, if number is large, scientific format is used with beautifully typeset decimal powers and a dot as multiplication signebc
All numbers are in scientific format with beautifully typeset decimal power and a cross as multiplication signfb
illegal format code, since fixed format doesn't support (or need) beautifully typeset decimal powers. Format code will be reduced to 'f'.hello
illegal format code, since first char is not 'e', 'E', 'f', 'g' or 'G'. Current format code will not be changed.
Definition at line 33501 of file qcustomplot.cpp.
◆ setNumberPrecision()
void QCPPolarAxisAngular::setNumberPrecision | ( | int | precision | ) |
Sets the precision of the tick label numbers. See QLocale::toString(double i, char f, int prec) for details. The effect of precisions are most notably for number Formats starting with 'e', see setNumberFormat
Definition at line 33556 of file qcustomplot.cpp.
◆ setRange() [1/3]
void QCPPolarAxisAngular::setRange | ( | const QCPRange & | range | ) |
Sets the range of the axis.
This slot may be connected with the rangeChanged signal of another axis so this axis is always synchronized with the other axis range, when it changes.
To invert the direction of an axis, use setRangeReversed.
Definition at line 33215 of file qcustomplot.cpp.
◆ setRange() [2/3]
void QCPPolarAxisAngular::setRange | ( | double | lower, |
double | upper ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Sets the lower and upper bound of the axis range.
To invert the direction of an axis, use setRangeReversed.
There is also a slot to set a range, see setRange(const QCPRange &range).
Definition at line 33279 of file qcustomplot.cpp.
◆ setRange() [3/3]
void QCPPolarAxisAngular::setRange | ( | double | position, |
double | size, | ||
Qt::AlignmentFlag | alignment ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Sets the range of the axis.
The position coordinate indicates together with the alignment parameter, where the new range will be positioned. size defines the size of the new axis range. alignment may be Qt::AlignLeft, Qt::AlignRight or Qt::AlignCenter. This will cause the left border, right border, or center of the range to be aligned with position. Any other values of alignment will default to Qt::AlignCenter.
Definition at line 33304 of file qcustomplot.cpp.
◆ setRangeDrag()
void QCPPolarAxisAngular::setRangeDrag | ( | bool | enabled | ) |
Definition at line 33186 of file qcustomplot.cpp.
◆ setRangeLower()
void QCPPolarAxisAngular::setRangeLower | ( | double | lower | ) |
Sets the lower bound of the axis range. The upper bound is not changed.
- See also
- setRange
Definition at line 33318 of file qcustomplot.cpp.
◆ setRangeReversed()
void QCPPolarAxisAngular::setRangeReversed | ( | bool | reversed | ) |
Sets whether the axis range (direction) is displayed reversed. Normally, the values on horizontal axes increase left to right, on vertical axes bottom to top. When reversed is set to true, the direction of increasing values is inverted.
Note that the range and data interface stays the same for reversed axes, e.g. the lower part of the setRange interface will still reference the mathematically smaller number than the upper part.
Definition at line 33355 of file qcustomplot.cpp.
◆ setRangeUpper()
void QCPPolarAxisAngular::setRangeUpper | ( | double | upper | ) |
Sets the upper bound of the axis range. The lower bound is not changed.
- See also
- setRange
Definition at line 33334 of file qcustomplot.cpp.
◆ setRangeZoom()
void QCPPolarAxisAngular::setRangeZoom | ( | bool | enabled | ) |
Definition at line 33191 of file qcustomplot.cpp.
◆ setRangeZoomFactor()
void QCPPolarAxisAngular::setRangeZoomFactor | ( | double | factor | ) |
Definition at line 33196 of file qcustomplot.cpp.
◆ setSelectableParts()
void QCPPolarAxisAngular::setSelectableParts | ( | const QCPPolarAxisAngular::SelectableParts & | selectableParts | ) |
Sets whether the user can (de-)select the parts in selectable by clicking on the QCustomPlot surface. (When QCustomPlot::setInteractions contains iSelectAxes.)
However, even when selectable is set to a value not allowing the selection of a specific part, it is still possible to set the selection of this part manually, by calling setSelectedParts directly.
- See also
- SelectablePart, setSelectedParts
Definition at line 33237 of file qcustomplot.cpp.
◆ setSelectedBasePen()
void QCPPolarAxisAngular::setSelectedBasePen | ( | const QPen & | pen | ) |
Sets the pen that is used to draw the axis base line when selected.
Definition at line 33803 of file qcustomplot.cpp.
◆ setSelectedLabelColor()
void QCPPolarAxisAngular::setSelectedLabelColor | ( | const QColor & | color | ) |
Sets the color that is used for the axis label when it is selected.
Definition at line 33793 of file qcustomplot.cpp.
◆ setSelectedLabelFont()
void QCPPolarAxisAngular::setSelectedLabelFont | ( | const QFont & | font | ) |
Sets the font that is used for the axis label when it is selected.
Definition at line 33769 of file qcustomplot.cpp.
◆ setSelectedParts()
void QCPPolarAxisAngular::setSelectedParts | ( | const QCPPolarAxisAngular::SelectableParts & | selectedParts | ) |
Sets the selected state of the respective axis parts described by SelectablePart. When a part is selected, it uses a different pen/font.
The entire selection mechanism for axes is handled automatically when QCustomPlot::setInteractions contains iSelectAxes. You only need to call this function when you wish to change the selection state manually.
This function can change the selection state of a part, independent of the setSelectableParts setting.
emits the selectionChanged signal when selected is different from the previous selection state.
- See also
- SelectablePart, setSelectableParts, selectTest, setSelectedBasePen, setSelectedTickPen, setSelectedSubTickPen, setSelectedTickLabelFont, setSelectedLabelFont, setSelectedTickLabelColor, setSelectedLabelColor
Definition at line 33261 of file qcustomplot.cpp.
◆ setSelectedSubTickPen()
void QCPPolarAxisAngular::setSelectedSubTickPen | ( | const QPen & | pen | ) |
Sets the pen that is used to draw the subticks when selected.
Definition at line 33823 of file qcustomplot.cpp.
◆ setSelectedTickLabelColor()
void QCPPolarAxisAngular::setSelectedTickLabelColor | ( | const QColor & | color | ) |
Sets the color that is used for tick labels when they are selected.
Definition at line 33780 of file qcustomplot.cpp.
◆ setSelectedTickLabelFont()
void QCPPolarAxisAngular::setSelectedTickLabelFont | ( | const QFont & | font | ) |
Sets the font that is used for tick labels when they are selected.
Definition at line 33755 of file qcustomplot.cpp.
◆ setSelectedTickPen()
void QCPPolarAxisAngular::setSelectedTickPen | ( | const QPen & | pen | ) |
Sets the pen that is used to draw the (major) ticks when selected.
Definition at line 33813 of file qcustomplot.cpp.
◆ setSubTickLength()
void QCPPolarAxisAngular::setSubTickLength | ( | int | inside, |
int | outside = 0 ) |
Sets the length of the subticks in pixels. inside is the length the subticks will reach inside the plot and outside is the length they will reach outside the plot. If outside is greater than zero, the tick labels and axis label will increase their distance to the axis accordingly, so they won't collide with the ticks.
Definition at line 33633 of file qcustomplot.cpp.
◆ setSubTickLengthIn()
void QCPPolarAxisAngular::setSubTickLengthIn | ( | int | inside | ) |
Sets the length of the inward subticks in pixels. inside is the length the subticks will reach inside the plot.
- See also
- setSubTickLengthOut, setSubTickLength, setTickLength
Definition at line 33645 of file qcustomplot.cpp.
◆ setSubTickLengthOut()
void QCPPolarAxisAngular::setSubTickLengthOut | ( | int | outside | ) |
Sets the length of the outward subticks in pixels. outside is the length the subticks will reach outside the plot. If outside is greater than zero, the tick labels will increase their distance to the axis accordingly, so they won't collide with the ticks.
- See also
- setSubTickLengthIn, setSubTickLength, setTickLength
Definition at line 33660 of file qcustomplot.cpp.
◆ setSubTickPen()
void QCPPolarAxisAngular::setSubTickPen | ( | const QPen & | pen | ) |
Sets the pen, subtick marks will be drawn with.
- See also
- setSubTickCount, setSubTickLength, setBasePen
Definition at line 33694 of file qcustomplot.cpp.
◆ setSubTicks()
void QCPPolarAxisAngular::setSubTicks | ( | bool | show | ) |
Sets whether sub tick marks are displayed.
Sub ticks are only potentially visible if (major) ticks are also visible (see setTicks)
- See also
- setTicks
Definition at line 33616 of file qcustomplot.cpp.
◆ setTicker()
void QCPPolarAxisAngular::setTicker | ( | QSharedPointer< QCPAxisTicker > | ticker | ) |
The axis ticker is responsible for generating the tick positions and tick labels. See the documentation of QCPAxisTicker for details on how to work with axis tickers.
You can change the tick positioning/labeling behaviour of this axis by setting a different QCPAxisTicker subclass using this method. If you only wish to modify the currently installed axis ticker, access it via ticker.
Since the ticker is stored in the axis as a shared pointer, multiple axes may share the same axis ticker simply by passing the same shared pointer to multiple axes.
- See also
- ticker
Definition at line 33379 of file qcustomplot.cpp.
◆ setTickLabelColor()
void QCPPolarAxisAngular::setTickLabelColor | ( | const QColor & | color | ) |
Sets the color of the tick labels.
- See also
- setTickLabels, setTickLabelFont
Definition at line 33443 of file qcustomplot.cpp.
◆ setTickLabelFont()
void QCPPolarAxisAngular::setTickLabelFont | ( | const QFont & | font | ) |
Sets the font of the tick labels.
- See also
- setTickLabels, setTickLabelColor
Definition at line 33433 of file qcustomplot.cpp.
◆ setTickLabelMode()
void QCPPolarAxisAngular::setTickLabelMode | ( | LabelMode | mode | ) |
Definition at line 33462 of file qcustomplot.cpp.
◆ setTickLabelPadding()
void QCPPolarAxisAngular::setTickLabelPadding | ( | int | padding | ) |
Sets the distance between the axis base line (including any outward ticks) and the tick labels.
- See also
- setLabelPadding, setPadding
Definition at line 33423 of file qcustomplot.cpp.
◆ setTickLabelRotation()
void QCPPolarAxisAngular::setTickLabelRotation | ( | double | degrees | ) |
Sets the rotation of the tick labels. If degrees is zero, the labels are drawn normally. Else, the tick labels are drawn rotated by degrees clockwise. The specified angle is bound to values from -90 to 90 degrees.
If degrees is exactly -90, 0 or 90, the tick labels are centered on the tick coordinate. For other angles, the label is drawn with an offset such that it seems to point toward or away from the tick mark.
Definition at line 33457 of file qcustomplot.cpp.
◆ setTickLabels()
void QCPPolarAxisAngular::setTickLabels | ( | bool | show | ) |
Sets whether tick labels are displayed. Tick labels are the numbers drawn next to tick marks.
Definition at line 33408 of file qcustomplot.cpp.
◆ setTickLength()
void QCPPolarAxisAngular::setTickLength | ( | int | inside, |
int | outside = 0 ) |
Sets the length of the ticks in pixels. inside is the length the ticks will reach inside the plot and outside is the length they will reach outside the plot. If outside is greater than zero, the tick labels and axis label will increase their distance to the axis accordingly, so they won't collide with the ticks.
- See also
- setSubTickLength, setTickLengthIn, setTickLengthOut
Definition at line 33573 of file qcustomplot.cpp.
◆ setTickLengthIn()
void QCPPolarAxisAngular::setTickLengthIn | ( | int | inside | ) |
Sets the length of the inward ticks in pixels. inside is the length the ticks will reach inside the plot.
- See also
- setTickLengthOut, setTickLength, setSubTickLength
Definition at line 33585 of file qcustomplot.cpp.
◆ setTickLengthOut()
void QCPPolarAxisAngular::setTickLengthOut | ( | int | outside | ) |
Sets the length of the outward ticks in pixels. outside is the length the ticks will reach outside the plot. If outside is greater than zero, the tick labels and axis label will increase their distance to the axis accordingly, so they won't collide with the ticks.
- See also
- setTickLengthIn, setTickLength, setSubTickLength
Definition at line 33600 of file qcustomplot.cpp.
◆ setTickPen()
void QCPPolarAxisAngular::setTickPen | ( | const QPen & | pen | ) |
Sets the pen, tick marks will be drawn with.
- See also
- setTickLength, setBasePen
Definition at line 33684 of file qcustomplot.cpp.
◆ setTicks()
void QCPPolarAxisAngular::setTicks | ( | bool | show | ) |
Sets whether tick marks are displayed.
Note that setting show to false does not imply that tick labels are invisible, too. To achieve that, see setTickLabels.
- See also
- setSubTicks
Definition at line 33396 of file qcustomplot.cpp.
◆ setupTickVectors()
|
protected |
Prepares the internal tick vector, sub tick vector and tick label vector. This is done by calling QCPAxisTicker::generate on the currently installed ticker.
If a change in the label text/count is detected, the cached axis margin is invalidated to make sure the next margin calculation recalculates the label sizes and returns an up-to-date value.
Definition at line 33886 of file qcustomplot.cpp.
◆ size()
|
inline |
Returns the pixel size of this axis rect. Margins are not taken into account here, so the returned value is with respect to the inner rect.
Definition at line 7420 of file qcustomplot.h.
◆ subTickLengthIn()
|
inline |
Definition at line 7316 of file qcustomplot.h.
◆ subTickLengthOut()
|
inline |
Definition at line 7317 of file qcustomplot.h.
◆ subTickPen()
|
inline |
Definition at line 7320 of file qcustomplot.h.
◆ subTicks()
|
inline |
Definition at line 7315 of file qcustomplot.h.
◆ ticker()
|
inline |
Definition at line 7301 of file qcustomplot.h.
◆ tickLabelColor()
|
inline |
Definition at line 7306 of file qcustomplot.h.
◆ tickLabelFont()
|
inline |
Definition at line 7305 of file qcustomplot.h.
◆ tickLabelMode()
QCPPolarAxisAngular::LabelMode QCPPolarAxisAngular::tickLabelMode | ( | ) | const |
Definition at line 32669 of file qcustomplot.cpp.
◆ tickLabelPadding()
|
inline |
Definition at line 7304 of file qcustomplot.h.
◆ tickLabelRotation()
|
inline |
Definition at line 7307 of file qcustomplot.h.
◆ tickLabels()
|
inline |
Definition at line 7303 of file qcustomplot.h.
◆ tickLengthIn()
|
inline |
Definition at line 7313 of file qcustomplot.h.
◆ tickLengthOut()
|
inline |
Definition at line 7314 of file qcustomplot.h.
◆ tickPen()
|
inline |
Definition at line 7319 of file qcustomplot.h.
◆ ticks()
|
inline |
Definition at line 7302 of file qcustomplot.h.
◆ tickVector()
|
inline |
Definition at line 7311 of file qcustomplot.h.
◆ tickVectorLabels()
Definition at line 7312 of file qcustomplot.h.
◆ top()
|
inline |
Returns the pixel position of the top border of this axis rect. Margins are not taken into account here, so the returned value is with respect to the inner rect.
Definition at line 7416 of file qcustomplot.h.
◆ topLeft()
|
inline |
Returns the top left corner of this axis rect in pixels. Margins are not taken into account here, so the returned value is with respect to the inner rect.
Definition at line 7421 of file qcustomplot.h.
◆ topRight()
|
inline |
Returns the top right corner of this axis rect in pixels. Margins are not taken into account here, so the returned value is with respect to the inner rect.
Definition at line 7422 of file qcustomplot.h.
◆ update()
|
overridevirtual |
This method is called automatically upon replot and doesn't need to be called by users of QCPPolarAxisAngular.
Calls the base class implementation to update the margins (see QCPLayoutElement::update), and finally passes the rect to the inset layout (insetLayout) and calls its QCPInsetLayout::update function.
\seebaseclassmethod
Reimplemented from QCPLayoutElement.
Definition at line 32992 of file qcustomplot.cpp.
◆ wheelEvent()
|
overrideprotectedvirtual |
Event handler for mouse wheel events. If rangeZoom is Qt::Horizontal, Qt::Vertical or both, the ranges of the axes defined as rangeZoomHorzAxis and rangeZoomVertAxis are scaled. The center of the scaling operation is the current cursor position inside the axis rect. The scaling factor is dependent on the mouse wheel delta (which direction the wheel was rotated) to provide a natural zooming feel. The Strength of the zoom can be controlled via setRangeZoomFactor.
Note, that event->delta() is usually +/-120 for single rotation steps. However, if the mouse wheel is turned rapidly, many steps may bunch up to one event, so the event->delta() may then be multiples of 120. This is taken into account here, by calculating wheelSteps and using it as exponent of the range zoom factor. This takes care of the wheel direction automatically, by inverting the factor, when the wheel step is negative (f^-1 = 1/f).
Reimplemented from QCPLayerable.
Definition at line 34098 of file qcustomplot.cpp.
◆ width()
|
inline |
Returns the pixel width of this axis rect. Margins are not taken into account here, so the returned value is with respect to the inner rect.
Definition at line 7418 of file qcustomplot.h.
Member Data Documentation
◆ mAADragBackup
|
protected |
Definition at line 7490 of file qcustomplot.h.
◆ mAngle
|
protected |
Definition at line 7447 of file qcustomplot.h.
◆ mAngleRad
|
protected |
Definition at line 7447 of file qcustomplot.h.
◆ mBackgroundBrush
|
protected |
Definition at line 7436 of file qcustomplot.h.
◆ mBackgroundPixmap
|
protected |
Definition at line 7437 of file qcustomplot.h.
◆ mBackgroundScaled
|
protected |
Definition at line 7439 of file qcustomplot.h.
◆ mBackgroundScaledMode
|
protected |
Definition at line 7440 of file qcustomplot.h.
◆ mBasePen
|
protected |
Definition at line 7449 of file qcustomplot.h.
◆ mCenter
|
protected |
Definition at line 7476 of file qcustomplot.h.
◆ mDragAngularStart
|
protected |
Definition at line 7488 of file qcustomplot.h.
◆ mDragging
|
protected |
Definition at line 7487 of file qcustomplot.h.
◆ mDragRadialStart
Definition at line 7489 of file qcustomplot.h.
◆ mGraphs
|
protected |
Definition at line 7480 of file qcustomplot.h.
◆ mGrid
|
protected |
Definition at line 7479 of file qcustomplot.h.
◆ mInsetLayout
|
protected |
Definition at line 7441 of file qcustomplot.h.
◆ mLabel
|
protected |
Definition at line 7452 of file qcustomplot.h.
◆ mLabelColor
|
protected |
Definition at line 7454 of file qcustomplot.h.
◆ mLabelFont
|
protected |
Definition at line 7453 of file qcustomplot.h.
◆ mLabelPadding
|
protected |
Definition at line 7451 of file qcustomplot.h.
◆ mLabelPainter
|
protected |
Definition at line 7491 of file qcustomplot.h.
◆ mNotAADragBackup
|
protected |
Definition at line 7490 of file qcustomplot.h.
◆ mNumberBeautifulPowers
|
protected |
Definition at line 7463 of file qcustomplot.h.
◆ mNumberFormatChar
|
protected |
Definition at line 7462 of file qcustomplot.h.
◆ mNumberMultiplyCross
|
protected |
Definition at line 7464 of file qcustomplot.h.
◆ mNumberPrecision
|
protected |
Definition at line 7461 of file qcustomplot.h.
◆ mRadialAxes
|
protected |
Definition at line 7478 of file qcustomplot.h.
◆ mRadius
|
protected |
Definition at line 7477 of file qcustomplot.h.
◆ mRange
|
protected |
Definition at line 7472 of file qcustomplot.h.
◆ mRangeDrag
|
protected |
Definition at line 7442 of file qcustomplot.h.
◆ mRangeReversed
|
protected |
Definition at line 7473 of file qcustomplot.h.
◆ mRangeZoom
|
protected |
Definition at line 7443 of file qcustomplot.h.
◆ mRangeZoomFactor
|
protected |
Definition at line 7444 of file qcustomplot.h.
◆ mScaledBackgroundPixmap
|
protected |
Definition at line 7438 of file qcustomplot.h.
◆ mSelectableParts
|
protected |
Definition at line 7448 of file qcustomplot.h.
◆ mSelectedBasePen
|
protected |
Definition at line 7449 of file qcustomplot.h.
◆ mSelectedLabelColor
|
protected |
Definition at line 7454 of file qcustomplot.h.
◆ mSelectedLabelFont
|
protected |
Definition at line 7453 of file qcustomplot.h.
◆ mSelectedParts
|
protected |
Definition at line 7448 of file qcustomplot.h.
◆ mSelectedSubTickPen
|
protected |
Definition at line 7470 of file qcustomplot.h.
◆ mSelectedTickLabelColor
|
protected |
Definition at line 7460 of file qcustomplot.h.
◆ mSelectedTickLabelFont
|
protected |
Definition at line 7459 of file qcustomplot.h.
◆ mSelectedTickPen
|
protected |
Definition at line 7469 of file qcustomplot.h.
◆ mSubTickLengthIn
|
protected |
Definition at line 7468 of file qcustomplot.h.
◆ mSubTickLengthOut
|
protected |
Definition at line 7468 of file qcustomplot.h.
◆ mSubTickPen
|
protected |
Definition at line 7470 of file qcustomplot.h.
◆ mSubTicks
|
protected |
Definition at line 7467 of file qcustomplot.h.
◆ mSubTickVector
|
protected |
Definition at line 7485 of file qcustomplot.h.
◆ mSubTickVectorCosSin
Definition at line 7486 of file qcustomplot.h.
◆ mTicker
|
protected |
Definition at line 7481 of file qcustomplot.h.
◆ mTickLabelColor
|
protected |
Definition at line 7460 of file qcustomplot.h.
◆ mTickLabelFont
|
protected |
Definition at line 7459 of file qcustomplot.h.
◆ mTickLabels
|
protected |
Definition at line 7457 of file qcustomplot.h.
◆ mTickLengthIn
|
protected |
Definition at line 7468 of file qcustomplot.h.
◆ mTickLengthOut
|
protected |
Definition at line 7468 of file qcustomplot.h.
◆ mTickPen
|
protected |
Definition at line 7469 of file qcustomplot.h.
◆ mTicks
|
protected |
Definition at line 7466 of file qcustomplot.h.
◆ mTickVector
|
protected |
Definition at line 7482 of file qcustomplot.h.
◆ mTickVectorCosSin
Definition at line 7484 of file qcustomplot.h.
◆ mTickVectorLabels
Definition at line 7483 of file qcustomplot.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:53:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.