! 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
| 11416 | You probably want one of the subclasses like \ref QCPGraph or \ref QCPCurve instead. |
| 11417 | */ |
| 11418 | QCPAbstractPlottable::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 | |
| 11439 | QCPAbstractPlottable::~QCPAbstractPlottable() |
| 11440 | { |
nothing calls this directly
no test coverage detected