Aperture/mycanvas.h

43 lines
682 B
C
Raw Normal View History

2023-05-16 14:58:12 +00:00
#ifndef MYCANVAS_H
#define MYCANVAS_H
#include <QWidget>
#include <QPainter>
#include <QPaintEvent>
#include <QScatterSeries>
#include <QChart>
#include <QChartView>
#include <QValueAxis>
#include "RadarExt.h"
struct TColPoint
{
double x, y, amp;
QColor col;
};
class ToPaintState {
public:
ToPaintState() {}
ToPaintState(int type) : type (type) {}
int type = 0;
};
class MyCanvas : public QChartView
{
Q_OBJECT
public:
explicit MyCanvas(QWidget *parent = nullptr);
TRadar radar = TRadar();
QVector<QVector<TColPoint>> FDNMass;
void drawState(ToPaintState);
private:
ToPaintState state = ToPaintState();
};
#endif // MYCANVAS_H