-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlissajousitem.h
41 lines (32 loc) · 1000 Bytes
/
lissajousitem.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef LISSAJOUSITEM_H
#define LISSAJOUSITEM_H
#include "basechartitem.h"
class Channel;
class LissajousItem : public BaseChartItem
{
Q_OBJECT
Q_PROPERTY(int startPoint READ startPoint WRITE setStartPoint NOTIFY startPointChanged)
Q_PROPERTY(int endPoint READ endPoint WRITE setEndPoint NOTIFY endPointChanged)
Q_PROPERTY(Channel* priChan READ priChan WRITE setPriChan NOTIFY priChanChanged)
public:
explicit LissajousItem(QQuickPaintedItem *parent = nullptr);
int startPoint() const;
void setStartPoint(int startPoint);
int endPoint() const;
void setEndPoint(int endPoint);
Channel *priChan() const;
void setPriChan(Channel *priChan);
Q_INVOKABLE int boundSpan(int span);
signals:
void startPointChanged();
void endPointChanged();
void priChanChanged();
private:
// BaseChartItem interface
bool transform() override;
private:
int m_startPoint;
int m_endPoint;
Channel* m_priChan;
};
#endif // LISSAJOUSITEM_H