mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
22 lines
542 B
C++
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;
|
|
};
|