File: basic_frame_config.xml

package info (click to toggle)
sight 25.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 43,252 kB
  • sloc: cpp: 310,629; xml: 17,622; ansic: 9,960; python: 1,379; sh: 144; makefile: 33
file content (42 lines) | stat: -rw-r--r-- 1,608 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<extension implements="sight::app::extension::config">
    <id>tuto10_launch_basic_config::basic_frame_config</id>
    <!-- Declared the required parameters -->
    <parameters>
        <!-- image is defined by the previous configuration that called the config_launcher. -->
        <object uid="image" type="sight::data::image" />

        <!--
            The 'CLOSE_CONFIG' channel is defined by config_launcher. It allows to connect the frame signal "closed"
            to the config_launcher slot 'stop'.
         -->
        <channel name="CLOSE_CONFIG" />
    </parameters>
    <config>
        <!-- ******************************* UI declaration *********************************** -->

        <service uid="main_frame" type="sight::module::ui::frame">
            <window onclose="notify" />
            <gui>
                <frame>
                    <name>Basic frame config</name>
                    <min_size width="900" height="600" />
                </frame>
            </gui>
            <registry>
                <view sid="image_renderer_srv" />
            </registry>
        </service>

        <!-- ******************************* Services ***************************************** -->

        <service uid="image_renderer_srv" type="sight::module::viz::sample::image">
            <in key="image" uid="${image}" />
        </service>

        <!-- ******************************* Connections ***************************************** -->

        <connect channel="${CLOSE_CONFIG}">
            <signal>main_frame/closed</signal>
        </connect>
    </config>
</extension>