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

Method QCPPolarGraph

3rdparty/qcustomplot/qcustomplot.cpp:34456–34480  ·  view source on GitHub ↗

! 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

Source from the content-addressed store, hash-verified

34454 method.
34455*/
34456QCPPolarGraph::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
34482QCPPolarGraph::~QCPPolarGraph()
34483{

Callers

nothing calls this directly

Calls 2

registerPolarGraphMethod · 0.80
QStringClass · 0.50

Tested by

no test coverage detected