29 lines
650 B
C++
29 lines
650 B
C++
#pragma once
|
|
|
|
#include "asio.hpp"
|
|
#include "Plot.h"
|
|
#include <QApplication>
|
|
#include <QThread>
|
|
#include <memory>
|
|
|
|
|
|
namespace YSG {
|
|
struct PlotPrivate {
|
|
explicit PlotPrivate(Plot* plot) : q(plot) {};
|
|
Plot *q{};
|
|
int mRefreshTimesPreSecond = 30;
|
|
TimerThread* mTimerThread{};
|
|
std::unique_ptr<asio::steady_timer> mRenderTimer;
|
|
bool mRenderEnabled = false;
|
|
QSize mRenderSize;
|
|
RenderAble::RenderPipeline mPipeline;
|
|
SpinLock mBufferLock, mRenderLock, mPrepareDataLock, mMustPrepareDataLock;
|
|
QColor mBackground = Qt::black;
|
|
PerformanceShower *mShower{};
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|