| 2657 | |
| 2658 | template <typename T> |
| 2659 | void PlotStems(const char* label_id, const T* values, int count, double ref, double scale, double start, const ImPlotSpec& spec) { |
| 2660 | if (ImHasFlag(spec.Flags, ImPlotStemsFlags_Horizontal)) { |
| 2661 | GetterXY<IndexerIdx<T>,IndexerLin> get_mark(IndexerIdx<T>(values,count,spec.Offset,Stride<T>(spec)),IndexerLin(scale,start),count); |
| 2662 | GetterXY<IndexerConst,IndexerLin> get_base(IndexerConst(ref),IndexerLin(scale,start),count); |
| 2663 | PlotStemsEx(label_id, get_mark, get_base, spec); |
| 2664 | } |
| 2665 | else { |
| 2666 | GetterXY<IndexerLin,IndexerIdx<T>> get_mark(IndexerLin(scale,start),IndexerIdx<T>(values,count,spec.Offset,Stride<T>(spec)),count); |
| 2667 | GetterXY<IndexerLin,IndexerConst> get_base(IndexerLin(scale,start),IndexerConst(ref),count); |
| 2668 | PlotStemsEx(label_id, get_mark, get_base, spec); |
| 2669 | } |
| 2670 | } |
| 2671 | |
| 2672 | template <typename T> |
| 2673 | void PlotStems(const char* label_id, const T* xs, const T* ys, int count, double ref, const ImPlotSpec& spec) { |
no test coverage detected