! Constructs a graph which uses \a keyAxis as its angular and \a valueAxis as its radial axis. \a keyAxis and \a valueAxis must reside in the same QCustomPlot, and the radial axis must be associated with the angular axis. If either of these restrictions is violated, a corresponding message is printed to the debug output (qDebug), the construction is not aborted, though. The created QCPP
| 34454 | method. |
| 34455 | */ |
| 34456 | QCPPolarGraph::QCPPolarGraph(QCPPolarAxisAngular *keyAxis, QCPPolarAxisRadial *valueAxis) : |
| 34457 | QCPLayerable(keyAxis->parentPlot(), QString(), keyAxis), |
| 34458 | mDataContainer(new QCPGraphDataContainer), |
| 34459 | mName(), |
| 34460 | mAntialiasedFill(true), |
| 34461 | mAntialiasedScatters(true), |
| 34462 | mPen(Qt::black), |
| 34463 | mBrush(Qt::NoBrush), |
| 34464 | mPeriodic(true), |
| 34465 | mKeyAxis(keyAxis), |
| 34466 | mValueAxis(valueAxis), |
| 34467 | mSelectable(QCP::stWhole) |
| 34468 | //mSelectionDecorator(0) // TODO |
| 34469 | { |
| 34470 | if (keyAxis->parentPlot() != valueAxis->parentPlot()) |
| 34471 | qDebug() << Q_FUNC_INFO << "Parent plot of keyAxis is not the same as that of valueAxis."; |
| 34472 | |
| 34473 | mKeyAxis->registerPolarGraph(this); |
| 34474 | |
| 34475 | //setSelectionDecorator(new QCPSelectionDecorator); // TODO |
| 34476 | |
| 34477 | setPen(QPen(Qt::blue, 0)); |
| 34478 | setBrush(Qt::NoBrush); |
| 34479 | setLineStyle(lsLine); |
| 34480 | } |
| 34481 | |
| 34482 | QCPPolarGraph::~QCPPolarGraph() |
| 34483 | { |
nothing calls this directly
no test coverage detected