中间状态暂存

This commit is contained in:
2026-08-14 17:53:13 +08:00
parent 260f649b08
commit bb64801679
75 changed files with 2984 additions and 1823 deletions
+7 -7
View File
@@ -1032,7 +1032,7 @@ private:
return;
}
if (case_id_ == "spectrum" || case_id_ == "selection_overlay") {
Spectrum_Properties properties;
Spectrum::Properties properties;
properties.frequency_range = {88'000'000.0, 108'000'000.0};
properties.frequency_point_size = 512;
properties.center_frequency = 98'000'000.0;
@@ -1055,7 +1055,7 @@ private:
data_node_, frequency_domain_axis_, value_axis_);
primary_ = spectrum_;
if (case_id_ == "selection_overlay") {
Selection_Rectangle_Overlay_Properties overlay;
Selection_Rectangle_Overlay::Properties overlay;
overlay.label_font = {12.0, 500, false};
overlay.selection_brush = {color_from_hex("#173b66", 70), Brush_Style::Solid};
overlay.selection_border_pen = {color_from_hex("#7dd3fc"), 1.0, Line_Style::Dash};
@@ -1066,7 +1066,7 @@ private:
return;
}
if (case_id_ == "waterfall") {
Waterfall_Properties properties;
Waterfall::Properties properties;
properties.frequency_range = {88'000'000.0, 108'000'000.0};
properties.power_range = {-120.0, -20.0};
properties.frequency_bin_count = 256;
@@ -1076,7 +1076,7 @@ private:
return;
}
if (case_id_ == "afterglow") {
Afterglow_Properties properties;
Afterglow::Properties properties;
properties.frequency_range = {88'000'000.0, 108'000'000.0};
properties.power_range = {-120.0, -20.0};
properties.frequency_point_size = 192;
@@ -1088,7 +1088,7 @@ private:
return;
}
if (case_id_ == "sweep_spectrum") {
Sweep_Spectrum_Properties properties;
Sweep_Spectrum::Properties properties;
properties.frequency_range = {0.0, 300.0};
properties.bins_per_block = 64;
properties.block_count = 8;
@@ -1100,7 +1100,7 @@ private:
return;
}
if (case_id_ == "frequency_trace") {
Frequency_Trace_Properties properties;
Frequency_Trace::Properties properties;
properties.pen = {color_from_hex("#35e6b2"), 2.0, Line_Style::Solid,
Line_Cap::Round, Line_Join::Round};
trace_ = Gallery_Frequency_Trace::Builder{properties, &attach}.build(
@@ -1109,7 +1109,7 @@ private:
return;
}
if (case_id_ == "constellation") {
Constellation_Diagram_Properties properties;
Constellation_Diagram::Properties properties;
properties.i_range = {-1.25, 1.25};
properties.q_range = {-1.25, 1.25};
properties.point_color = color_from_hex("#49e6c3");
+5 -3
View File
@@ -46,7 +46,7 @@ public:
private:
template <auto Member>
auto adminive_read() const {
return this->template property_value<Member>();
return this->template get<Member>();
}
template <auto Member, class Value>
void adminive_write(Value&& value) {
@@ -131,14 +131,16 @@ class Gallery_Frequency_Axis final
: public Gallery_Axis_Base<Frequency_Axis, Axis_Properties> {
public:
using Gallery_Axis_Base::Gallery_Axis_Base;
using Builder = detail::Axis_Renderable_Builder<Gallery_Frequency_Axis, Properties>;
using Builder =
detail::Axis_Renderable_Builder<Gallery_Frequency_Axis, Properties>;
};
class Gallery_Time_Axis final
: public Gallery_Axis_Base<Time_Axis, Time_Axis_Properties> {
public:
using Gallery_Axis_Base::Gallery_Axis_Base;
using Builder = detail::Axis_Renderable_Builder<Gallery_Time_Axis, Properties>;
using Builder =
detail::Axis_Renderable_Builder<Gallery_Time_Axis, Properties>;
};
} // namespace renderive::web
+7 -7
View File
@@ -366,7 +366,7 @@ struct Type_Descriptor<renderive::web::Gallery_Time_Axis> {
} \
}
RENDERIVE_GALLERY_DESCRIPTOR(Gallery_Spectrum, Spectrum_Properties, "spectrum", "实时频谱",
RENDERIVE_GALLERY_DESCRIPTOR(Gallery_Spectrum, Spectrum::Properties, "spectrum", "实时频谱",
property_number<T, &P::frequency_point_size>("frequency_point_size", "频率点数"),
property_select<T, &P::partition_mode>("partition_mode", "任务分区模式")
.enum_label<renderive::Render_Partition_Mode::Automatic>("自动瓶颈优化")
@@ -405,7 +405,7 @@ RENDERIVE_GALLERY_DESCRIPTOR(Gallery_Spectrum, Spectrum_Properties, "spectrum",
property_object<T, &P::tooltip_text_pen>("tooltip_text_pen", "提示框文字画笔"),
property_object<T, &P::tooltip_background_brush>("tooltip_background_brush", "提示框背景"));
RENDERIVE_GALLERY_DESCRIPTOR(Gallery_Waterfall, Waterfall_Properties, "waterfall", "频谱瀑布",
RENDERIVE_GALLERY_DESCRIPTOR(Gallery_Waterfall, Waterfall::Properties, "waterfall", "频谱瀑布",
property_object<T, &P::frequency_range>("frequency_range", "频率范围"),
property_object<T, &P::power_range>("power_range", "功率范围"),
property_number<T, &P::frequency_bin_count>("frequency_bin_count", "频率格数"),
@@ -429,7 +429,7 @@ RENDERIVE_GALLERY_DESCRIPTOR(Gallery_Waterfall, Waterfall_Properties, "waterfall
property_object<T, &P::tooltip_text_pen>("tooltip_text_pen", "提示框文字画笔"),
property_object<T, &P::tooltip_background_brush>("tooltip_background_brush", "提示框背景"));
RENDERIVE_GALLERY_DESCRIPTOR(Gallery_Afterglow, Afterglow_Properties, "afterglow", "余辉频谱",
RENDERIVE_GALLERY_DESCRIPTOR(Gallery_Afterglow, Afterglow::Properties, "afterglow", "余辉频谱",
property_object<T, &P::frequency_range>("frequency_range", "频率范围"),
property_object<T, &P::power_range>("power_range", "功率范围"),
property_number<T, &P::frequency_point_size>("frequency_point_size", "频率点数"),
@@ -447,7 +447,7 @@ RENDERIVE_GALLERY_DESCRIPTOR(Gallery_Afterglow, Afterglow_Properties, "afterglow
.enum_label<renderive::web::gallery_adminive::Color_Map_Choice::Ember>("火焰")
.enum_label<renderive::web::gallery_adminive::Color_Map_Choice::Grayscale>("灰度"));
RENDERIVE_GALLERY_DESCRIPTOR(Gallery_Sweep_Spectrum, Sweep_Spectrum_Properties, "sweep_spectrum", "扫频频谱",
RENDERIVE_GALLERY_DESCRIPTOR(Gallery_Sweep_Spectrum, Sweep_Spectrum::Properties, "sweep_spectrum", "扫频频谱",
property_object<T, &P::frequency_range>("frequency_range", "频率范围"),
property_number<T, &P::bins_per_block>("bins_per_block", "每块频率格数"),
property_number<T, &P::block_count>("block_count", "扫频块数"),
@@ -462,16 +462,16 @@ RENDERIVE_GALLERY_DESCRIPTOR(Gallery_Sweep_Spectrum, Sweep_Spectrum_Properties,
.enum_label<renderive::Line_Interpolation_Mode::Step_Right>("右阶梯")
.enum_label<renderive::Line_Interpolation_Mode::Cubic_Value>("三次插值"));
RENDERIVE_GALLERY_DESCRIPTOR(Gallery_Frequency_Trace, Frequency_Trace_Properties, "frequency_trace", "频率轨迹",
RENDERIVE_GALLERY_DESCRIPTOR(Gallery_Frequency_Trace, Frequency_Trace::Properties, "frequency_trace", "频率轨迹",
property_object<T, &P::pen>("pen", "轨迹画笔"));
RENDERIVE_GALLERY_DESCRIPTOR(Gallery_Selection_Rectangle_Overlay, Selection_Rectangle_Overlay_Properties, "selection_overlay", "框选区域",
RENDERIVE_GALLERY_DESCRIPTOR(Gallery_Selection_Rectangle_Overlay, Selection_Rectangle_Overlay::Properties, "selection_overlay", "框选区域",
property_object<T, &P::label_font>("label_font", "标签字体"),
property_object<T, &P::label_pen>("label_pen", "标签画笔"),
property_object<T, &P::selection_brush>("selection_brush", "选区画刷"),
property_object<T, &P::selection_border_pen>("selection_border_pen", "选区边框画笔"));
RENDERIVE_GALLERY_DESCRIPTOR(Gallery_Constellation_Diagram, Constellation_Diagram_Properties, "constellation", "星座图",
RENDERIVE_GALLERY_DESCRIPTOR(Gallery_Constellation_Diagram, Constellation_Diagram::Properties, "constellation", "星座图",
property_object<T, &P::i_range>("i_range", "I 轴范围"),
property_object<T, &P::q_range>("q_range", "Q 轴范围"),
property_color<T, &P::point_color>("point_color", "点颜色"),