X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fanalogsignal.h;h=710639005a615cf485efb53b013ef0d7fecaab8d;hp=a7ae455b8598159e47c738a48cc5e8176ace3ed7;hb=a5d93c27b5bd6b95000e29c6cddac56ab254b289;hpb=dc747705ac06c9e9ab582b6b8b7cfc31003128e0 diff --git a/pv/view/analogsignal.h b/pv/view/analogsignal.h index a7ae455b..71063900 100644 --- a/pv/view/analogsignal.h +++ b/pv/view/analogsignal.h @@ -37,6 +37,7 @@ namespace view { class AnalogSignal : public Signal { private: + static const int NominalHeight; static const QColor SignalColours[4]; static const float EnvelopeThreshold; @@ -54,6 +55,12 @@ public: void set_scale(float scale); + /** + * Computes the vertical extents of the contents of this row item. + * @return A pair containing the minimum and maximum y-values. + */ + std::pair v_extents() const; + /** * Paints the background layer of the signal with a QPainter * @param p the QPainter to paint into.