]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/analogsignal.hpp
Implement graphical display of A2L thresholds
[pulseview.git] / pv / views / trace / analogsignal.hpp
index 7dc1e0d9de9917135c7e1dbb60747e1fbdfca11f..37b0c1a3ccdae7db9d89db07f2871abf8056473f 100644 (file)
@@ -50,6 +50,7 @@ private:
        static const QColor SignalColours[4];
        static const QColor GridMajorColor, GridMinorColor;
        static const QColor SamplingPointColour;
+       static const QColor ThresholdColor;
 
        static const int64_t TracePaintBlockSize;
        static const float EnvelopeThreshold;
@@ -131,6 +132,8 @@ private:
                int y, int left, const int64_t start, const int64_t end,
                const double pixels_offset, const double samples_per_pixel);
 
+       void paint_conversion_thresholds(QPainter &p, ViewItemPaintParams &pp);
+
        void paint_logic_mid(QPainter &p, ViewItemPaintParams &pp);
 
        void paint_logic_caps(QPainter &p, QLineF *const lines,