! Returns a list of all the color maps associated with this color scale. */
| 20386 | Returns a list of all the color maps associated with this color scale. |
| 20387 | */ |
| 20388 | QList<QCPColorMap*> QCPColorScale::colorMaps() const |
| 20389 | { |
| 20390 | QList<QCPColorMap*> result; |
| 20391 | for (int i=0; i<mParentPlot->plottableCount(); ++i) |
| 20392 | { |
| 20393 | if (QCPColorMap *cm = qobject_cast<QCPColorMap*>(mParentPlot->plottable(i))) |
| 20394 | if (cm->colorScale() == this) |
| 20395 | result.append(cm); |
| 20396 | } |
| 20397 | return result; |
| 20398 | } |
| 20399 | |
| 20400 | /*! |
| 20401 | Changes the data range such that all color maps associated with this color scale are fully mapped |
nothing calls this directly
no test coverage detected