首次提交

This commit is contained in:
2026-06-16 13:33:27 +08:00
commit 81e2f99ab5
187 changed files with 26001 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#pragma once
#include "Plot.h"
#include <QApplication>
#include <QThread>
namespace YSG {
struct PlotPrivate {
explicit PlotPrivate(Plot* plot) : q(plot) {};
Plot *q{};
int mRefreshTimesPreSecond = 30;
TimerThread* mTimerThread{};
QTimer *mTimer{};
enum PlotState { NeedToRender, NeedToPaint};
QAtomicInteger<int> mPlotState = NeedToRender;
SpinLock mBufferLock, mRenderLock, mPrepareDataLock, mMustPrepareDataLock;
//QPixmap *mRenderBuffer{}, mPaintBuffer;
//QImage *mRenderBuffer{}, mPaintBuffer;
QImage *mRenderBuffer{};
QPixmap mPaintBuffer{};
QColor mBackground = Qt::black;
PerformanceShower *mShower{};
};
}