-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDuvGraph.hpp
More file actions
31 lines (24 loc) · 772 Bytes
/
Copy pathDuvGraph.hpp
File metadata and controls
31 lines (24 loc) · 772 Bytes
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
// SPDX-FileCopyrightText: 2026 Błażej Szczygieł <mumei6102@gmail.com>
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include "Headers.hpp"
class DuvGraph : public QObject
{
Q_OBJECT
QML_NAMED_ELEMENT(DuvGraphPriv)
Q_PROPERTY(QPointF currentPoint MEMBER m_currentPoint NOTIFY currentPointChanged FINAL)
Q_PROPERTY(bool valid MEMBER m_valid NOTIFY validChanged FINAL)
public:
DuvGraph();
~DuvGraph();
Q_INVOKABLE void setSpectralLocus(QObject *pathPolyLine);
Q_INVOKABLE void setPlanckianLocus(QObject *pathPolyLine);
signals:
void currentPointChanged();
void validChanged();
private:
QList<QPointF> m_spectralLocus;
QList<QPointF> m_planckianLocus;
QPointF m_currentPoint;
bool m_valid = false;
};