ImageManager.xml 2.64 KB
Newer Older
1
2
3
4
5
<extension implements="::fwServices::registry::AppConfig2">
    <id>ImageManager</id>
    <parameters>
        <param name="WID_PARENT" />
        <param name="GENERIC_UID" />
6
7
8
        <param name="IMAGE_UID" /><!-- Image to manage -->
        <param name="TF_IMAGE" /><!-- Composite containing the selected TransferFunction -->
        <param name="TF_KEY" default="SelectedTF"/><!-- Key of the TransferFunction in the composite 'TF_IMAGE' -->
9
10
11
12
13
14
    </parameters>
    <config>

        <object uid="${IMAGE_UID}" type="::fwData::Image" src="ref" />
        <object uid="${TF_IMAGE}" type="::fwData::Composite" src="ref" />

15
        <service uid="imageManagerView" type="::gui::view::SDefaultView">
16
17
18
19
20
21
22
23
24
25
26
            <gui>
                <layout type="::fwGui::LineLayoutManager">
                    <orientation value="vertical" />
                    <view proportion="0" />
                    <view proportion="0" />
                    <spacer />
                </layout>
            </gui>
            <registry>
                <parent wid="${WID_PARENT}" />
                <view sid="windowLevelImage" start="yes" />
27
                <view sid="sliderView" start="yes" />
28
29
30
            </registry>
        </service>

31
        <service uid="sliderView" type="::gui::view::SDefaultView">
32
33
34
35
36
37
38
39
40
41
42
            <gui>
                <layout type="::fwGui::LineLayoutManager">
                    <orientation value="horizontal" />
                    <view proportion="1" />
                </layout>
            </gui>
            <registry>
                <view sid="selectorSliderNegatoImage" start="yes" />
            </registry>
        </service>

43
        <!-- Service to add field used to properly display and manage image: Slice index, TransferFunction, ... -->
44
45
46
47
        <service uid="medicalImageConverterImage" type="::ctrlSelection::MedicalImageSrv">
            <inout key="image" uid="${IMAGE_UID}" />
        </service>

48
        <!-- Editor to manage slice index and image orientation (axial, frontal, sagittal) -->
49
50
51
52
53
        <service uid="selectorSliderNegatoImage" type="::uiImage::SliceIndexPositionEditor" autoConnect="yes">
            <inout key="image" uid="${IMAGE_UID}" />
            <sliceIndex>axial</sliceIndex>
        </service>

54
        <!-- Editor to manage image windowing -->
55
56
57
58
59
60
        <service uid="windowLevelImage" type="::uiImage::WindowLevel" autoConnect="yes">
            <inout key="image" uid="${IMAGE_UID}" />
            <inout key="TFSelections" uid="${TF_IMAGE}" />
            <config selectedTFKey="${TF_KEY}" />
        </service>
        
61
62
        <start uid="imageManagerView" />
        <start uid="medicalImageConverterImage" />
63
64
65
        
    </config>
</extension>