三维显示与二维共用深度色标,配置名改为 Finger
箭头阈值写入设置;去掉网格告警。三维色标改为立刻采用二维量程(不再 P5/P95 缓变)。选择器显示 Finger。已用 pane UI、shared-scale 与 catalog 单测验证。
This commit is contained in:
@@ -129,6 +129,21 @@ def test_arrow_threshold_round_trips_and_feeds_the_shared_policy(panel):
|
||||
assert policy_for_settings(again).flow_on_px == pytest.approx(0.9)
|
||||
|
||||
|
||||
def test_depth_legend_follows_the_shared_2d_span_immediately(panel):
|
||||
"""The 3D colour-bar numbers are the 2D span, not a lagged GL automatic range."""
|
||||
from orisys_app_shared.scene3d.contracts import FieldDescriptor, RenderStats
|
||||
|
||||
panel.set_descriptor(
|
||||
FieldDescriptor("depth_response", "1", "approximate", False)
|
||||
)
|
||||
panel.set_render_stats(
|
||||
RenderStats(scale_lower=0.0, scale_upper=0.0489, scale_mode="automatic")
|
||||
)
|
||||
panel.set_shared_depth_scale((0.0, 0.029))
|
||||
assert panel.scale_lower_label.text() == "0.000"
|
||||
assert panel.scale_upper_label.text() == "0.029"
|
||||
|
||||
|
||||
def test_source_kind_analysis_uses_its_own_label(panel):
|
||||
"""A stored result is not labelled as live acquisition."""
|
||||
panel.set_diagnostics_visible(True)
|
||||
@@ -241,8 +256,8 @@ def test_the_diagnostics_switch_governs_what_the_pane_explains(panel):
|
||||
)
|
||||
panel.set_diagnostics_visible(False)
|
||||
assert not panel.scale_bar.isHidden()
|
||||
assert panel.scale_lower_label.text() == "0.25"
|
||||
assert panel.scale_upper_label.text() == "2.5"
|
||||
assert panel.scale_lower_label.text() == "0.250"
|
||||
assert panel.scale_upper_label.text() == "2.500"
|
||||
assert not panel.scale_lower_label.isHidden()
|
||||
assert not panel.scale_upper_label.isHidden()
|
||||
assert panel.legend_label.isHidden()
|
||||
|
||||
Reference in New Issue
Block a user