Files
Renderive/YSGraphic_Core/Axis/Axis.cpp
T
2026-06-16 13:33:27 +08:00

24 lines
627 B
C++

#include "Axis_p.h"
namespace YSG {
Q_Ptr_cpp(Axis)
PROP_P(Axis, int, numberPrecision)
PROP_P(Axis, double, coordStart)
PROP_P(Axis, double, coordLength)
void Axis::set_coordRange(Range range){
INIT_SET(AbsAxis)
sc->coordStart = range.lower;
sc->coordLength = range.upper - range.lower;
}
Axis::Builder::Builder(Plot* plot, Qt::Orientation orientation) {
this->plot = plot;
this->orientation = orientation;
}
Axis* Axis::Builder::build() {
Axis* ret = new Axis();
Axis::BuilderT<Axis::Builder>::set(ret);
return ret;
}
}