projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Provide notifiers for when signal data changes
[pulseview.git]
/
pv
/
data
/
analogsegment.hpp
diff --git
a/pv/data/analogsegment.hpp
b/pv/data/analogsegment.hpp
index 09ae2c0203dfa65d4c36c8a791754e9379e7804b..e6c312ade78d3b7157b43cc2f9584ba283381edb 100644
(file)
--- a/
pv/data/analogsegment.hpp
+++ b/
pv/data/analogsegment.hpp
@@
-25,6
+25,8
@@
#include <utility>
#include <vector>
#include <utility>
#include <vector>
+#include <QObject>
+
namespace AnalogSegmentTest {
struct Basic;
}
namespace AnalogSegmentTest {
struct Basic;
}
@@
-32,14
+34,18
@@
struct Basic;
namespace pv {
namespace data {
namespace pv {
namespace data {
+class Analog;
+
typedef struct {
uint64_t sample_index, chunk_num, chunk_offs;
uint8_t* chunk;
float* value;
} SegmentAnalogDataIterator;
typedef struct {
uint64_t sample_index, chunk_num, chunk_offs;
uint8_t* chunk;
float* value;
} SegmentAnalogDataIterator;
-class AnalogSegment : public Segment
+class AnalogSegment : public
QObject, public
Segment
{
{
+ Q_OBJECT
+
public:
struct EnvelopeSample
{
public:
struct EnvelopeSample
{
@@
-71,7
+77,7
@@
private:
static const uint64_t EnvelopeDataUnit;
public:
static const uint64_t EnvelopeDataUnit;
public:
- AnalogSegment(uint64_t samplerate);
+ AnalogSegment(
Analog& owner,
uint64_t samplerate);
virtual ~AnalogSegment();
virtual ~AnalogSegment();
@@
-96,6
+102,8
@@
private:
void append_payload_to_envelope_levels();
private:
void append_payload_to_envelope_levels();
private:
+ Analog& owner_;
+
struct Envelope envelope_levels_[ScaleStepCount];
float min_value_, max_value_;
struct Envelope envelope_levels_[ScaleStepCount];
float min_value_, max_value_;