! Constructs an Axis instance of Type \a type for the axis rect \a parent. Usually it isn't necessary to instantiate axes directly, because you can let QCustomPlot create them for you with \ref QCPAxisRect::addAxis. If you want to use own QCPAxis-subclasses however, create them manually and then inject them also via \ref QCPAxisRect::addAxis. */
| 31095 | create them manually and then inject them also via \ref QCPAxisRect::addAxis. |
| 31096 | */ |
| 31097 | QCPPolarAxisRadial::QCPPolarAxisRadial(QCPPolarAxisAngular *parent) : |
| 31098 | QCPLayerable(parent->parentPlot(), QString(), parent), |
| 31099 | mRangeDrag(true), |
| 31100 | mRangeZoom(true), |
| 31101 | mRangeZoomFactor(0.85), |
| 31102 | // axis base: |
| 31103 | mAngularAxis(parent), |
| 31104 | mAngle(45), |
| 31105 | mAngleReference(arAngularAxis), |
| 31106 | mSelectableParts(spAxis | spTickLabels | spAxisLabel), |
| 31107 | mSelectedParts(spNone), |
| 31108 | mBasePen(QPen(Qt::black, 0, Qt::SolidLine, Qt::SquareCap)), |
| 31109 | mSelectedBasePen(QPen(Qt::blue, 2)), |
| 31110 | // axis label: |
| 31111 | mLabelPadding(0), |
| 31112 | mLabel(), |
| 31113 | mLabelFont(mParentPlot->font()), |
| 31114 | mSelectedLabelFont(QFont(mLabelFont.family(), mLabelFont.pointSize(), QFont::Bold)), |
| 31115 | mLabelColor(Qt::black), |
| 31116 | mSelectedLabelColor(Qt::blue), |
| 31117 | // tick labels: |
| 31118 | // mTickLabelPadding(0), in label painter |
| 31119 | mTickLabels(true), |
| 31120 | // mTickLabelRotation(0), in label painter |
| 31121 | mTickLabelFont(mParentPlot->font()), |
| 31122 | mSelectedTickLabelFont(QFont(mTickLabelFont.family(), mTickLabelFont.pointSize(), QFont::Bold)), |
| 31123 | mTickLabelColor(Qt::black), |
| 31124 | mSelectedTickLabelColor(Qt::blue), |
| 31125 | mNumberPrecision(6), |
| 31126 | mNumberFormatChar('g'), |
| 31127 | mNumberBeautifulPowers(true), |
| 31128 | mNumberMultiplyCross(false), |
| 31129 | // ticks and subticks: |
| 31130 | mTicks(true), |
| 31131 | mSubTicks(true), |
| 31132 | mTickLengthIn(5), |
| 31133 | mTickLengthOut(0), |
| 31134 | mSubTickLengthIn(2), |
| 31135 | mSubTickLengthOut(0), |
| 31136 | mTickPen(QPen(Qt::black, 0, Qt::SolidLine, Qt::SquareCap)), |
| 31137 | mSelectedTickPen(QPen(Qt::blue, 2)), |
| 31138 | mSubTickPen(QPen(Qt::black, 0, Qt::SolidLine, Qt::SquareCap)), |
| 31139 | mSelectedSubTickPen(QPen(Qt::blue, 2)), |
| 31140 | // scale and range: |
| 31141 | mRange(0, 5), |
| 31142 | mRangeReversed(false), |
| 31143 | mScaleType(stLinear), |
| 31144 | // internal members: |
| 31145 | mRadius(1), // non-zero initial value, will be overwritten in ::update() according to inner rect |
| 31146 | mTicker(new QCPAxisTicker), |
| 31147 | mLabelPainter(mParentPlot) |
| 31148 | { |
| 31149 | setParent(parent); |
| 31150 | setAntialiased(true); |
| 31151 | |
| 31152 | setTickLabelPadding(5); |
| 31153 | setTickLabelRotation(0); |
| 31154 | setTickLabelMode(lmUpright); |
nothing calls this directly
no test coverage detected