This commit is contained in:
2026-08-16 21:50:12 +08:00
parent 3153f7d64f
commit 8073e18318
22 changed files with 332 additions and 355 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
#include "Gallery_Enum.h"
#include "common/Gallery_Performance_Types.h"
#include "render_2D/scene/Plot_Scene.h"
#include "render_2D/scene/Render_Scene_2D.h"
#include "render_2D/renderable/Renderable.h"
#include "adminive/adminive.hpp"
+6 -6
View File
@@ -87,13 +87,13 @@ void append_session_actions(Gallery_Frame_Mode frame_mode,
std::vector<Action_Model>& result) {
switch (frame_mode) {
case Gallery_Frame_Mode::Manual:
append_gallery_actions<Gallery_Session_Control<Plot_Scene>>(result);
append_gallery_actions<Gallery_Session_Control<Render_Scene_2D>>(result);
return;
case Gallery_Frame_Mode::Low_Latency:
append_gallery_actions<Gallery_Session_Control<Plot_Scene>>(result);
append_gallery_actions<Gallery_Session_Control<Render_Scene_2D>>(result);
return;
case Gallery_Frame_Mode::Playback:
append_gallery_actions<Gallery_Session_Control<Plot_Scene>>(result);
append_gallery_actions<Gallery_Session_Control<Render_Scene_2D>>(result);
return;
}
::renderive::error::unexpected<std::invalid_argument>("unknown gallery frame mode");
@@ -103,11 +103,11 @@ std::size_t session_control_count(std::string_view case_id, Gallery_Frame_Mode f
return 0;
switch (frame_mode) {
case Gallery_Frame_Mode::Manual:
return gallery_control_count<Gallery_Session_Control<Plot_Scene>>();
return gallery_control_count<Gallery_Session_Control<Render_Scene_2D>>();
case Gallery_Frame_Mode::Low_Latency:
return gallery_control_count<Gallery_Session_Control<Plot_Scene>>();
return gallery_control_count<Gallery_Session_Control<Render_Scene_2D>>();
case Gallery_Frame_Mode::Playback:
return gallery_control_count<Gallery_Session_Control<Plot_Scene>>();
return gallery_control_count<Gallery_Session_Control<Render_Scene_2D>>();
}
::renderive::error::unexpected<std::invalid_argument>("unknown gallery frame mode");
}
+1 -1
View File
@@ -1,7 +1,7 @@
#pragma once
#include "render_2D/plottable/Performance_Overlay.h"
#include "render_2D/renderable/Renderable.h"
#include "render_2D/scene/Plot_Scene.h"
#include "render_2D/scene/Render_Scene_2D.h"
#include <memory>
#include <string>
namespace adminive {
+1 -1
View File
@@ -51,7 +51,7 @@ double gaussian(double x, double center, double width) {
}
} // namespace
struct Web_Plot_Session::Impl {
Plot_Scene plot;
Render_Scene_2D plot;
renderive_Owner<Frequency_Axis> spectrum_frequency_axis;
renderive_Owner<Axis> spectrum_power_axis;
renderive_Owner<Frequency_Axis> waterfall_frequency_axis;
+3 -3
View File
@@ -218,7 +218,7 @@ public:
}
attach_performance_overlay(plot_);
apply_layout();
session_control_ = std::make_unique<Gallery_Session_Control<Plot_Scene>>(
session_control_ = std::make_unique<Gallery_Session_Control<Render_Scene_2D>>(
plot_, *primary_, feedback_policy_);
register_controls();
set_performance_plot_name(plot_, case_id_ + "/" + gallery_enum_id(frame_mode_));
@@ -1420,9 +1420,9 @@ private:
std::string case_id_;
Gallery_Frame_Mode frame_mode_ = Gallery_Frame_Mode::Low_Latency;
bool automatic_low_latency_{};
Plot_Scene plot_;
Render_Scene_2D plot_;
Gallery_Feedback_Policy feedback_policy_;
std::unique_ptr<Gallery_Session_Control<Plot_Scene>> session_control_;
std::unique_ptr<Gallery_Session_Control<Render_Scene_2D>> session_control_;
Gallery_Controls controls_;
std::chrono::steady_clock::time_point performance_started_;
std::chrono::steady_clock::time_point last_performance_log_;
+2 -2
View File
@@ -5,7 +5,7 @@
#include "../Gallery_Enum.h"
#include "../common/Gallery_Scheduler_Adminive.h"
#include "../common/Pixel_Frame.h"
#include <render_3D/Point_Scene.h>
#include <render_3D/Render_Scene_3D.h>
#include "adminive/adminive.hpp"
#include "adminive/adapters/nlohmann_json.hpp"
@@ -681,7 +681,7 @@ private:
bool automatic_low_latency_{};
bool active_{true};
std::shared_ptr<Point_Visual> visual_;
Point_Scene scene_;
Render_Scene_3D scene_;
Gallery_Client_Performance client_performance_;
float blue_offset_{};
float projection_scale_{1.0F};