! Creates a QCPPolarGrid instance and sets default values. You shouldn't instantiate grids on their own, since every axis brings its own grid. */
| 34178 | You shouldn't instantiate grids on their own, since every axis brings its own grid. |
| 34179 | */ |
| 34180 | QCPPolarGrid::QCPPolarGrid(QCPPolarAxisAngular *parentAxis) : |
| 34181 | QCPLayerable(parentAxis->parentPlot(), QString(), parentAxis), |
| 34182 | mType(gtNone), |
| 34183 | mSubGridType(gtNone), |
| 34184 | mAntialiasedSubGrid(true), |
| 34185 | mAntialiasedZeroLine(true), |
| 34186 | mParentAxis(parentAxis) |
| 34187 | { |
| 34188 | // warning: this is called in QCPPolarAxisAngular constructor, so parentAxis members should not be accessed/called |
| 34189 | setParent(parentAxis); |
| 34190 | setType(gtAll); |
| 34191 | setSubGridType(gtNone); |
| 34192 | |
| 34193 | setAngularPen(QPen(QColor(200,200,200), 0, Qt::DotLine)); |
| 34194 | setAngularSubGridPen(QPen(QColor(220,220,220), 0, Qt::DotLine)); |
| 34195 | |
| 34196 | setRadialPen(QPen(QColor(200,200,200), 0, Qt::DotLine)); |
| 34197 | setRadialSubGridPen(QPen(QColor(220,220,220), 0, Qt::DotLine)); |
| 34198 | setRadialZeroLinePen(QPen(QColor(200,200,200), 0, Qt::SolidLine)); |
| 34199 | |
| 34200 | setAntialiased(true); |
| 34201 | } |
| 34202 | |
| 34203 | void QCPPolarGrid::setRadialAxis(QCPPolarAxisRadial *axis) |
| 34204 | { |