42 lines
682 B
C++
42 lines
682 B
C++
#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
|