MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / setRange

Method setRange

3rdparty/qcustomplot/qcustomplot.cpp:8389–8405  ·  view source on GitHub ↗

! Sets the range of the axis. This slot may be connected with the \ref 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 \ref setRangeReversed. */

Source from the content-addressed store, hash-verified

8387 To invert the direction of an axis, use \ref setRangeReversed.
8388*/
8389void QCPAxis::setRange(const QCPRange &range)
8390{
8391 if (range.lower == mRange.lower && range.upper == mRange.upper)
8392 return;
8393
8394 if (!QCPRange::validRange(range)) return;
8395 QCPRange oldRange = mRange;
8396 if (mScaleType == stLogarithmic)
8397 {
8398 mRange = range.sanitizedForLogScale();
8399 } else
8400 {
8401 mRange = range.sanitizedForLinScale();
8402 }
8403 emit rangeChanged(mRange);
8404 emit rangeChanged(mRange, oldRange);
8405}
8406
8407/*!
8408 Sets whether the user can (de-)select the parts in \a selectable by clicking on the QCustomPlot surface.

Callers 10

rescaleKeyAxisMethod · 0.80
rescaleValueAxisMethod · 0.80
foreachFunction · 0.80
setupFullAxesBoxMethod · 0.80
mouseMoveEventMethod · 0.80
setTypeMethod · 0.80
setDataRangeMethod · 0.80
AeqPreviewPlotMethod · 0.80
importCsvMethod · 0.80
importGraphicEqMethod · 0.80

Calls 2

sanitizedForLogScaleMethod · 0.80
sanitizedForLinScaleMethod · 0.80

Tested by

no test coverage detected