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

Method QCPAbstractPlottable

3rdparty/qcustomplot/qcustomplot.cpp:11418–11437  ·  view source on GitHub ↗

! Constructs an abstract plottable which uses \a keyAxis as its key axis ("x") and \a valueAxis as its value axis ("y"). \a keyAxis and \a valueAxis must reside in the same QCustomPlot instance and have perpendicular orientations. If either of these restrictions is violated, a corresponding message is printed to the debug output (qDebug), the construction is not aborted, though. Since

Source from the content-addressed store, hash-verified

11416 You probably want one of the subclasses like \ref QCPGraph or \ref QCPCurve instead.
11417*/
11418QCPAbstractPlottable::QCPAbstractPlottable(QCPAxis *keyAxis, QCPAxis *valueAxis) :
11419 QCPLayerable(keyAxis->parentPlot(), QString(), keyAxis->axisRect()),
11420 mName(),
11421 mAntialiasedFill(true),
11422 mAntialiasedScatters(true),
11423 mPen(Qt::black),
11424 mBrush(Qt::NoBrush),
11425 mKeyAxis(keyAxis),
11426 mValueAxis(valueAxis),
11427 mSelectable(QCP::stWhole),
11428 mSelectionDecorator(nullptr)
11429{
11430 if (keyAxis->parentPlot() != valueAxis->parentPlot())
11431 qDebug() << Q_FUNC_INFO << "Parent plot of keyAxis is not the same as that of valueAxis.";
11432 if (keyAxis->orientation() == valueAxis->orientation())
11433 qDebug() << Q_FUNC_INFO << "keyAxis and valueAxis must be orthogonal to each other.";
11434
11435 mParentPlot->registerPlottable(this);
11436 setSelectionDecorator(new QCPSelectionDecorator);
11437}
11438
11439QCPAbstractPlottable::~QCPAbstractPlottable()
11440{

Callers

nothing calls this directly

Calls 3

axisRectMethod · 0.80
registerPlottableMethod · 0.80
QStringClass · 0.50

Tested by

no test coverage detected