为二维与三维深度色标增加每帧自适应选项。
默认仍锁定本会话首帧,勾选后两视图按当前帧有效深度共用同一范围。已用深度色标与显示设置测试验证。
This commit is contained in:
@@ -57,6 +57,7 @@ def test_the_pane_holds_a_legend_and_no_settings(panel):
|
||||
panel.deform_check,
|
||||
panel.gain_spin,
|
||||
panel.scale_combo,
|
||||
panel.depth_adaptive_check,
|
||||
panel.fps_combo,
|
||||
panel.reset_button,
|
||||
):
|
||||
@@ -89,10 +90,22 @@ def test_the_settings_dialog_hosts_the_panes_own_controls(panel):
|
||||
assert not dialog.isVisible()
|
||||
assert panel.enable_check.text(), "closing the dialog destroyed its controls"
|
||||
assert panel.settings().max_fps == 30
|
||||
assert panel.settings().depth_scale_adaptive is False
|
||||
finally:
|
||||
dialog.deleteLater()
|
||||
|
||||
|
||||
def test_adaptive_depth_scale_round_trips_through_the_dialog(panel):
|
||||
"""The per-frame colour bar is a saved setting, not a one-shot toggle."""
|
||||
from orisys_app_shared.scene3d.contracts import DisplaySettings
|
||||
|
||||
panel.apply_settings(DisplaySettings(depth_scale_adaptive=True))
|
||||
assert panel.depth_adaptive_check.isChecked()
|
||||
assert panel.settings().depth_scale_adaptive is True
|
||||
panel.apply_settings(DisplaySettings())
|
||||
assert panel.settings().depth_scale_adaptive is False
|
||||
|
||||
|
||||
def test_the_pane_header_offers_the_two_actions(qt_app):
|
||||
"""A gear and a view reset: the two things that belong to *looking*."""
|
||||
from orisys_studio.ui.mesh3d_panel import Mesh3dPanel
|
||||
|
||||
Reference in New Issue
Block a user