初步重构
This commit is contained in:
@@ -16,17 +16,17 @@ static YSG::Range frequent_range = {-12000, 12000};
|
||||
QWidget* RadioWidget::createSpectrogramPowerPlot() {
|
||||
class SpectrumPlot : public YSG::Plot {
|
||||
public:
|
||||
YSG::FrequentAxis *xAxis{};
|
||||
YSG::Frequent_Axis *xAxis{};
|
||||
YSG::Axis *yAxis{};
|
||||
YSG::MutiSelectRect* msr{};
|
||||
YSG::Muti_Select_Rect* msr{};
|
||||
YSG::Spectrum *sp{};
|
||||
QMenu *mMenu{};
|
||||
void init() override {
|
||||
Plot::init();
|
||||
mObjectName = "SpectrumPlot";
|
||||
object_name = "SpectrumPlot";
|
||||
|
||||
|
||||
xAxis = YSG::FrequentAxis::Builder(this, Qt::Horizontal)
|
||||
xAxis = YSG::Frequent_Axis::Builder(this, Qt::Horizontal)
|
||||
.set_coord_range(frequent_range)
|
||||
.set_tick_length(-10)
|
||||
.build();
|
||||
@@ -41,7 +41,7 @@ QWidget* RadioWidget::createSpectrogramPowerPlot() {
|
||||
.set_frequent_range(frequent_range)
|
||||
.set_frequent_point_size(1024)
|
||||
.build();
|
||||
msr = YSG::MutiSelectRect::Builder(xAxis, yAxis).build();
|
||||
msr = YSG::Muti_Select_Rect::Builder(xAxis, yAxis).build();
|
||||
if(use_Performance_shower) set_use_performance_shower(true);
|
||||
}
|
||||
protected:
|
||||
@@ -80,29 +80,29 @@ QWidget* RadioWidget::createSpectrogramPowerPlot() {
|
||||
QWidget* RadioWidget::createWaterFallPlot() {
|
||||
class WaterFallPlot : public YSG::Plot {
|
||||
public:
|
||||
YSG::FrequentAxis *xAxis{};
|
||||
YSG::TimeAxis *yAxis{};
|
||||
YSG::MutiSelectRect *msr{};
|
||||
YSG::WaterFall *wf{};
|
||||
YSG::Frequent_Axis *xAxis{};
|
||||
YSG::Time_Axis *yAxis{};
|
||||
YSG::Muti_Select_Rect *msr{};
|
||||
YSG::Waterfall *wf{};
|
||||
QMenu *mMenu{};
|
||||
void init() override {
|
||||
Plot::init();
|
||||
mObjectName = "WaterFallPlot";
|
||||
xAxis = YSG::FrequentAxis::Builder(this, Qt::Horizontal)
|
||||
object_name = "WaterFallPlot";
|
||||
xAxis = YSG::Frequent_Axis::Builder(this, Qt::Horizontal)
|
||||
.set_tick_length(-10)
|
||||
.set_sub_tick_length(-5)
|
||||
.set_coord_range(frequent_range)
|
||||
.build();
|
||||
yAxis = YSG::TimeAxis::Builder(this, Qt::Vertical)
|
||||
yAxis = YSG::Time_Axis::Builder(this, Qt::Vertical)
|
||||
.set_time_point_size(100)
|
||||
.build();
|
||||
wf = YSG::WaterFall::Builder(xAxis, yAxis)
|
||||
wf = YSG::Waterfall::Builder(xAxis, yAxis)
|
||||
.set_frequent_range(frequent_range)
|
||||
.set_frequent_point_size(1024)
|
||||
.set_power_range({0, max})
|
||||
// .set_time_point_size(100)
|
||||
.build();
|
||||
msr = YSG::MutiSelectRect::Builder(xAxis, yAxis).build();
|
||||
msr = YSG::Muti_Select_Rect::Builder(xAxis, yAxis).build();
|
||||
if(use_Performance_shower) set_use_performance_shower(true);
|
||||
}
|
||||
protected:
|
||||
@@ -136,17 +136,17 @@ QWidget* RadioWidget::createWaterFallPlot() {
|
||||
QWidget* RadioWidget::createAudioSpectrogramPlot() {
|
||||
class SpectrumPlot : public YSG::Plot {
|
||||
public:
|
||||
YSG::FrequentAxis *xAxis{};
|
||||
YSG::Frequent_Axis *xAxis{};
|
||||
YSG::Axis *yAxis{};
|
||||
YSG::MutiSelectRect* msr{};
|
||||
YSG::Muti_Select_Rect* msr{};
|
||||
YSG::Spectrum *sp{};
|
||||
QMenu *mMenu{};
|
||||
void init() override {
|
||||
Plot::init();
|
||||
mObjectName = "SpectrumPlot";
|
||||
object_name = "SpectrumPlot";
|
||||
|
||||
|
||||
xAxis = YSG::FrequentAxis::Builder(this, Qt::Horizontal)
|
||||
xAxis = YSG::Frequent_Axis::Builder(this, Qt::Horizontal)
|
||||
.set_coord_range({-12000 ,12000})
|
||||
.set_tick_length(-10)
|
||||
.set_sub_tick_length(-5)
|
||||
@@ -163,7 +163,7 @@ QWidget* RadioWidget::createAudioSpectrogramPlot() {
|
||||
.set_frequent_point_size(512)
|
||||
.build();
|
||||
|
||||
msr = YSG::MutiSelectRect::Builder(xAxis, yAxis).build();
|
||||
msr = YSG::Muti_Select_Rect::Builder(xAxis, yAxis).build();
|
||||
|
||||
if(use_Performance_shower) set_use_performance_shower(true);
|
||||
}
|
||||
@@ -199,16 +199,16 @@ QWidget* RadioWidget::createAudioSpectrogramPlot() {
|
||||
QWidget* RadioWidget::createTimePowerPlot() {
|
||||
class AudioPlot : public YSG::Plot {
|
||||
public:
|
||||
YSG::TimeAxis *xAxis{};
|
||||
YSG::Time_Axis *xAxis{};
|
||||
YSG::Axis *yAxis{};
|
||||
YSG::AudioFrequent *audio{};
|
||||
YSG::MutiSelectRect* msr{};
|
||||
YSG::Audio_Frequent *audio{};
|
||||
YSG::Muti_Select_Rect* msr{};
|
||||
QMenu *mMenu{};
|
||||
void init() override {
|
||||
Plot::init();
|
||||
mObjectName = "AudioPlot";
|
||||
object_name = "AudioPlot";
|
||||
|
||||
xAxis = YSG::TimeAxis::Builder(this, Qt::Horizontal)
|
||||
xAxis = YSG::Time_Axis::Builder(this, Qt::Horizontal)
|
||||
.set_tick_length(-10)
|
||||
.set_sub_tick_length(-5)
|
||||
.build();
|
||||
@@ -218,9 +218,9 @@ QWidget* RadioWidget::createTimePowerPlot() {
|
||||
.build();
|
||||
|
||||
|
||||
audio = YSG::AudioFrequent::Builder(xAxis, yAxis)
|
||||
audio = YSG::Audio_Frequent::Builder(xAxis, yAxis)
|
||||
.build();
|
||||
msr = YSG::MutiSelectRect::Builder(xAxis, yAxis).build();
|
||||
msr = YSG::Muti_Select_Rect::Builder(xAxis, yAxis).build();
|
||||
|
||||
|
||||
if(use_Performance_shower) set_use_performance_shower(true);
|
||||
|
||||
Reference in New Issue
Block a user