! Returns a list of all the color maps associated with this color scale. */
| 19615 | Returns a list of all the color maps associated with this color scale. |
| 19616 | */ |
| 19617 | QList<QCPColorMap*> QCPColorScale::colorMaps() const |
| 19618 | { |
| 19619 | QList<QCPColorMap*> result; |
| 19620 | for (int i=0; i<mParentPlot->plottableCount(); ++i) |
| 19621 | { |
| 19622 | if (QCPColorMap *cm = qobject_cast<QCPColorMap*>(mParentPlot->plottable(i))) |
| 19623 | if (cm->colorScale() == this) |
| 19624 | result.append(cm); |
| 19625 | } |
| 19626 | return result; |
| 19627 | } |
| 19628 | |
| 19629 | /*! |
| 19630 | 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