Files
fluxengine/src/gui2/fluxview.h
2025-02-05 22:51:03 +01:00

22 lines
542 B
C++

#pragma once
static constexpr double FLUXVIEWER_NS_PER_UNIT = 100000.0;
static constexpr double FLUXVIEWER_GRADIENT_ADJUST = 0.001;
static constexpr double FLUXVIEWER_LINE_WIDTH = 1.1;
class FluxView
{
public:
static std::unique_ptr<FluxView> create();
public:
virtual void setTrackData(
int track, std::shared_ptr<const Fluxmap>& fluxmap) = 0;
virtual void clear() = 0;
virtual void redraw(QPainter& painter,
nanoseconds_t startPos,
nanoseconds_t endPos,
int track, double height) = 0;
};