File: basic_frame_config.xml

package info (click to toggle)
sight 25.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 43,108 kB
  • sloc: cpp: 306,170; xml: 18,037; ansic: 9,960; python: 1,379; sh: 144; makefile: 33
file content (49 lines) | stat: -rw-r--r-- 2,018 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
43
44
45
46
47
48
49
<extension implements="sight::app::extension::config">
    <id>Tuto10LaunchBasicConfig_BasicFrameConfig_AppCfg</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" />

        <!--
            CLOSE_CONFIG_CHANNEL is defined by config_launcher. It allows to connect the frame signal "closed" to the
            config_launcher slot "stopConfig".
            The default value "DummyChannel" is used if the paramter CLOSE_CONFIG_CHANNEL is not defined (for example if
            the configuration is launched from another service.
         -->
        <param name="CLOSE_CONFIG_CHANNEL" default="DummyChannel" />
    </parameters>
    <config>
        <!-- ******************************* UI declaration *********************************** -->

        <service uid="mainFrame" type="sight::module::ui::frame">
            <window onclose="notify" />
            <gui>
                <frame>
                    <name>Basic frame config</name>
                    <minSize width="900" height="600" />
                </frame>
            </gui>
            <registry>
                <view sid="imageRendereSrv" start="false" />
            </registry>
        </service>

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

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

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

        <connect channel="${CLOSE_CONFIG_CHANNEL}">
            <signal>mainFrame/closed</signal>
        </connect>

        <!-- ******************************* Start services ***************************************** -->

        <start uid="mainFrame" />
        <start uid="imageRendereSrv" />
    </config>
</extension>