首次提交

This commit is contained in:
2026-06-16 13:38:08 +08:00
commit ec32ae543d
192 changed files with 13162 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
#include "TimeAxis_p.h"
#include "base/Plot.h"
namespace YSG {
Q_Ptr_cpp(TimeAxis)
int TimeAxis::timePointSize(SRC src) {
INIT_GET(TimeAxis)
return renderState->mTimePointSize;
}
void TimeAxis::giveData(QTime time) {
SpinLockGuard guard(&d()->mBufferLock);
TimeAxisTempData* sc = d()->tempDataCache();
sc->mDataList.push_back(time);
}
void TimeAxis::setTickSpace(int tickSpace) {
INIT_SET(TimeAxis)
sc->mTickSpace = tickSpace;
}
bool TimeAxis::startCoordToEndCoord(SRC src) {
INIT_GET(TimeAxis)
return renderState->mStartCoordToEndCoord;
}
void TimeAxis::setFixedTimePointSize(int timePointSize) {
INIT_SET(TimeAxis)
sc->mFixedTimePointSize = true;
sc->mTimePointSize = timePointSize;
}
void TimeAxis::unsetFixedTimePointSize() {
INIT_SET(TimeAxis)
sc->mFixedTimePointSize = false;
sc->mTimePointSize = mPlot->width() + 1;
}
}