Commit 07cebd6
Evgeni Raikhel
Update viewer panel and mock example to the new composite-option API surface
- realsense-viewer's HKR Temporal Filter DPP panel now goes through
sub->s->option_ref(RS2_OPTION_HKR_TEMPORAL_FILTER_DPP).is/as<rs2::composite_option>()
instead of the removed rs2::composite_option_sensor, and casts to/from the now-
public rs2_temporal_filter_dpp_config struct instead of a viewer-local copy of it.
- The standalone mock example no longer bypasses into an internal transport class
(xu_structured_control) directly - it now drives the mechanism through the real
public entry points: rs2_set_composite_option/rs2_get_composite_option (C) and
option_ref()/is<rs2::composite_option>()/as<rs2::composite_option>() (C++), backed
by a minimal fake librealsense::option + composite_option_interface +
options_interface standing in for a real device. Round-trip correctness and
exactly-one-set+one-get atomicity are asserted across both API paths. Since it now
needs the real public API/DLL entry points, it links against realsense2 like any
other example instead of compiling an isolated internal source file directly.1 parent 3c782db commit 07cebd6
4 files changed
Lines changed: 224 additions & 173 deletions
File tree
- common
- examples/hkr-temporal-filter-dpp-mock
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 32 | | |
52 | 33 | | |
53 | 34 | | |
| |||
2791 | 2772 | | |
2792 | 2773 | | |
2793 | 2774 | | |
2794 | | - | |
2795 | | - | |
2796 | | - | |
2797 | | - | |
2798 | | - | |
2799 | | - | |
2800 | | - | |
2801 | | - | |
2802 | | - | |
2803 | | - | |
2804 | | - | |
2805 | | - | |
2806 | | - | |
| 2775 | + | |
| 2776 | + | |
| 2777 | + | |
| 2778 | + | |
| 2779 | + | |
| 2780 | + | |
| 2781 | + | |
| 2782 | + | |
| 2783 | + | |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
| 2787 | + | |
| 2788 | + | |
2807 | 2789 | | |
2808 | 2790 | | |
2809 | 2791 | | |
| |||
2812 | 2794 | | |
2813 | 2795 | | |
2814 | 2796 | | |
2815 | | - | |
2816 | | - | |
| 2797 | + | |
| 2798 | + | |
2817 | 2799 | | |
2818 | 2800 | | |
2819 | | - | |
| 2801 | + | |
2820 | 2802 | | |
2821 | 2803 | | |
2822 | 2804 | | |
| |||
2842 | 2824 | | |
2843 | 2825 | | |
2844 | 2826 | | |
2845 | | - | |
| 2827 | + | |
2846 | 2828 | | |
2847 | 2829 | | |
2848 | 2830 | | |
2849 | 2831 | | |
2850 | | - | |
| 2832 | + | |
2851 | 2833 | | |
2852 | 2834 | | |
2853 | 2835 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
235 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
0 commit comments