class AnalogSignal : public Signal
{
private:
+ static const int NominalHeight;
static const QColor SignalColours[4];
static const float EnvelopeThreshold;
public:
- AnalogSignal(std::shared_ptr<pv::device::DevInst> dev_inst,
- const sr_channel *const channel,
+ AnalogSignal(pv::SigSession &session,
+ std::shared_ptr<sigrok::Channel> channel,
std::shared_ptr<pv::data::Analog> data);
virtual ~AnalogSignal();
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<int, int> v_extents() const;
+
/**
* Paints the background layer of the signal with a QPainter
* @param p the QPainter to paint into.