X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fanalogsignal.h;h=710639005a615cf485efb53b013ef0d7fecaab8d;hb=448a72cf7f0225eace2335ec05b979c4e9a6b882;hp=934203366dca78b93591402b57fc49d56b996c8e;hpb=6ac6242b25cfbd4df14abe7580adc9d0f4cffe43;p=pulseview.git diff --git a/pv/view/analogsignal.h b/pv/view/analogsignal.h index 93420336..71063900 100644 --- a/pv/view/analogsignal.h +++ b/pv/view/analogsignal.h @@ -37,13 +37,14 @@ namespace view { class AnalogSignal : public Signal { private: + static const int NominalHeight; static const QColor SignalColours[4]; static const float EnvelopeThreshold; public: - AnalogSignal(std::shared_ptr dev_inst, - const sr_channel *const channel, + AnalogSignal(pv::SigSession &session, + std::shared_ptr channel, std::shared_ptr data); virtual ~AnalogSignal(); @@ -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.