MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / QCPPolarAxisAngular

Method QCPPolarAxisAngular

3rdparty/qcustomplot/qcustomplot.cpp:32572–32652  ·  view source on GitHub ↗

! 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. */

Source from the content-addressed store, hash-verified

32570 sides, the top and right axes are set invisible initially.
32571*/
32572QCPPolarAxisAngular::QCPPolarAxisAngular(QCustomPlot *parentPlot) :
32573 QCPLayoutElement(parentPlot),
32574 mBackgroundBrush(Qt::NoBrush),
32575 mBackgroundScaled(true),
32576 mBackgroundScaledMode(Qt::KeepAspectRatioByExpanding),
32577 mInsetLayout(new QCPLayoutInset),
32578 mRangeDrag(false),
32579 mRangeZoom(false),
32580 mRangeZoomFactor(0.85),
32581 // axis base:
32582 mAngle(-90),
32583 mAngleRad(mAngle/180.0*M_PI),
32584 mSelectableParts(spAxis | spTickLabels | spAxisLabel),
32585 mSelectedParts(spNone),
32586 mBasePen(QPen(Qt::black, 0, Qt::SolidLine, Qt::SquareCap)),
32587 mSelectedBasePen(QPen(Qt::blue, 2)),
32588 // axis label:
32589 mLabelPadding(0),
32590 mLabel(),
32591 mLabelFont(mParentPlot->font()),
32592 mSelectedLabelFont(QFont(mLabelFont.family(), mLabelFont.pointSize(), QFont::Bold)),
32593 mLabelColor(Qt::black),
32594 mSelectedLabelColor(Qt::blue),
32595 // tick labels:
32596 //mTickLabelPadding(0), in label painter
32597 mTickLabels(true),
32598 //mTickLabelRotation(0), in label painter
32599 mTickLabelFont(mParentPlot->font()),
32600 mSelectedTickLabelFont(QFont(mTickLabelFont.family(), mTickLabelFont.pointSize(), QFont::Bold)),
32601 mTickLabelColor(Qt::black),
32602 mSelectedTickLabelColor(Qt::blue),
32603 mNumberPrecision(6),
32604 mNumberFormatChar('g'),
32605 mNumberBeautifulPowers(true),
32606 mNumberMultiplyCross(false),
32607 // ticks and subticks:
32608 mTicks(true),
32609 mSubTicks(true),
32610 mTickLengthIn(5),
32611 mTickLengthOut(0),
32612 mSubTickLengthIn(2),
32613 mSubTickLengthOut(0),
32614 mTickPen(QPen(Qt::black, 0, Qt::SolidLine, Qt::SquareCap)),
32615 mSelectedTickPen(QPen(Qt::blue, 2)),
32616 mSubTickPen(QPen(Qt::black, 0, Qt::SolidLine, Qt::SquareCap)),
32617 mSelectedSubTickPen(QPen(Qt::blue, 2)),
32618 // scale and range:
32619 mRange(0, 360),
32620 mRangeReversed(false),
32621 // internal members:
32622 mRadius(1), // non-zero initial value, will be overwritten in ::update() according to inner rect
32623 mGrid(new QCPPolarGrid(this)),
32624 mTicker(new QCPAxisTickerFixed),
32625 mDragging(false),
32626 mLabelPainter(parentPlot)
32627{
32628 // TODO:
32629 //mInsetLayout->initializeParentPlot(mParentPlot);

Callers

nothing calls this directly

Calls 9

radialAxisFunction · 0.85
fontMethod · 0.80
setTickStepMethod · 0.80
currentLayerMethod · 0.80
setCacheSizeMethod · 0.80
setRadialAxisMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected