Skip to content

File StepPath.hpp

File List > internal > StepPath.hpp

Go to the documentation of this file

//
// SPDX-FileCopyrightText: 2026 Michal Grabarczyk
// SPDX-License-Identifier: GPL-3.0-only WITH Universal-FOSS-exception-1.0
//
// This file is also available under a separate commercial license.
// See COMMERCIAL-LICENSING.md for contact information.
//
#pragma once

#include "QAccelPlot/renderers/CurveRendererParams.hpp"
#include "QAccelPlot/series/StepMode.hpp"

#include <QPointF>

#include <optional>

namespace QAccelPlot::Internal {

[[nodiscard]] int stepCornerCount(StepMode mode) noexcept;

[[nodiscard]] std::optional<QPointF> stepCorner(const CurveDataView& data, int from, int to, int corner, StepMode mode, bool logScaleX, bool logScaleY);

[[nodiscard]] std::optional<QPointF> linePathPoint(
    const CurveDataView& data, int pointCount, int index, int corner, StepMode mode, bool logScaleX, bool logScaleY);

} // namespace QAccelPlot::Internal