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

Method setupTickVectors

3rdparty/qcustomplot/qcustomplot.cpp:9734–9742  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

9732 sure the next margin calculation recalculates the label sizes and returns an up-to-date value.
9733*/
9734void QCPAxis::setupTickVectors()
9735{
9736 if (!mParentPlot) return;
9737 if ((!mTicks && !mTickLabels && !mGrid->visible()) || mRange.size() <= 0) return;
9738
9739 QVector<QString> oldLabels = mTickVectorLabels;
9740 mTicker->generate(mRange, mParentPlot->locale(), mNumberFormatChar, mNumberPrecision, mTickVector, mSubTicks ? &mSubTickVector : nullptr, mTickLabels ? &mTickVectorLabels : nullptr);
9741 mCachedMarginValid &= mTickVectorLabels == oldLabels; // if labels have changed, margin might have changed, too
9742}
9743
9744/*! \internal
9745

Callers 1

updateMethod · 0.80

Calls 6

coordToAngleRadFunction · 0.85
generateMethod · 0.80
resizeMethod · 0.80
sizeMethod · 0.45
clearMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected