<extension implements="::fwServices::registry::AppConfig">
    <id>tuto15MultithreadMeshViewConfig</id>
    <type>parameters</type>
    <parameters>
        <param name="GENERIC_UID" />
        <param name="meshUid" />
        <param name="parentViewId" />
        <param name="channelId" />
    </parameters>
    <config>

        <object type="::fwData::Composite" >
            
            <item key="mesh">
                <object uid="${meshUid}" type="::fwData::Mesh" src="ref">

                    <!-- Visualization service for the first window. -->
                    <service uid="${GENERIC_UID}_rendering" impl="::vtkSimpleMesh::RendererService" autoConnect="yes">
                        <registry>
                            <parent wid="${parentViewId}" />
                        </registry>
                    </service>
        
                </object>
            </item>
            
            <!-- Connect the signal slot of the service to receive the updating of camera position -->
            <proxy channel="${channelId}" >
                <signal>${GENERIC_UID}_rendering/camUpdated</signal>
                <slot>${GENERIC_UID}_rendering/updateCamPosition</slot>
            </proxy>
        
            <start uid="${GENERIC_UID}_rendering" />
            
        </object>
        
    </config>
</extension>