11 m_sequenceStore(sequenceStore)
16 FunctionGraphView::drawRect(ctx, rect);
17 for (
int i = 0; i < m_sequenceStore->numberOfActiveFunctions(); i++) {
18 Sequence * s = m_sequenceStore->activeFunctionAtIndex(i);
20 rectXMin = rectXMin < 0 ? 0 : rectXMin;
26 for (
int x = rectXMin; x < rectXMax; x += step) {
27 float y = s->evaluateAtAbscissa((
float)x, context());
31 drawDot(ctx, rect, x, y, s->color());
32 if (x >= m_highlightedStart && x <= m_highlightedEnd && s == m_selectedFunction) {
void drawSegment(KDContext *ctx, KDRect rect, Axis axis, float coordinate, float lowerBound, float upperBound, KDColor color, KDCoordinate thickness=1) const
virtual float samplingRatio() const
KDCoordinate right() const
static constexpr int k_externRectMargin
KDCoordinate left() const
constexpr KDColor KDColorBlack
void drawDot(KDContext *ctx, KDRect rect, float x, float y, KDColor color, bool oversize=false) const
void drawRect(KDContext *ctx, KDRect rect) const override
float pixelToFloat(Axis axis, KDCoordinate p) const