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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
|
<plugin id="tuto12_scene2d">
<requirement id="sight::module::service" />
<requirement id="sight::module::ui::qt" />
<requirement id="sight::module::viz::scene2d" />
<extension implements="sight::app::extension::config">
<id>Tuto12Scene2D_AppCfg</id>
<config>
<!-- ******************************* UI declaration *********************************** -->
<service uid="mainFrame" type="sight::module::ui::frame">
<gui>
<frame>
<name>tuto12_scene2d</name>
<icon>tuto12_scene2d/tuto.ico</icon>
<minSize width="800" height="600" />
</frame>
</gui>
<registry>
<view sid="mainView" start="true" />
</registry>
</service>
<service uid="mainView" type="sight::module::ui::view">
<gui>
<layout type="sight::ui::layout::line">
<orientation value="vertical" />
<view proportion="1" backgroundColor="#36393E" />
<view proportion="0" backgroundColor="#36393E" />
</layout>
</gui>
<registry>
<view sid="genericSceneSrv" start="false" />
<view sid="editorView" start="true" />
</registry>
</service>
<service uid="editorView" type="sight::module::ui::view">
<gui>
<layout type="sight::ui::layout::line">
<orientation value="vertical" />
<view proportion="1" />
<view proportion="1" />
</layout>
</gui>
<registry>
<view sid="spacingEditorSrv" start="false" />
<view sid="depthRangeSliderSrv" start="false" />
</registry>
</service>
<!-- *************************** Begin generic scene *************************** -->
<service uid="genericSceneSrv" type="sight::viz::scene2d::render">
<scene>
<scene x="-100" y="-100" width="200" height="200" />
<axis id="axe1" origin="0.0" scale="1.0" scaleType="LINEAR" />
<adaptor uid="gridAdp" />
<adaptor uid="square1Adp" />
<adaptor uid="square2Adp" />
<adaptor uid="abscissaAdp" />
<adaptor uid="ordinateAdp" />
</scene>
</service>
<service uid="gridAdp" type="sight::module::viz::scene2d::adaptor::grid2d">
<config xMin="-150" xMax="150" yMin="-150" yMax="150" xSpacing="10" ySpacing="10" color="#619647" zValue="2" xAxis="axe1" yAxis="axe1" />
</service>
<service uid="square1Adp" type="sight::module::viz::scene2d::adaptor::square">
<config x="0" y="0" size="15" color="#D25252" zValue="4" />
</service>
<service uid="square2Adp" type="sight::module::viz::scene2d::adaptor::square">
<config x="20" y="20" size="30" color="#6997BB" zValue="4" />
</service>
<service uid="abscissaAdp" type="sight::module::viz::scene2d::adaptor::line">
<config x1="-100" x2="100" y1="0" y2="0" color="#D25252" zValue="5" />
</service>
<service uid="ordinateAdp" type="sight::module::viz::scene2d::adaptor::line">
<config x1="0" x2="0" y1="-100" y2="100" color="#D25252" zValue="6" />
</service>
<!-- ******************************* Services ***************************************** -->
<service uid="spacingEditorSrv" type="sight::module::ui::qt::parameters">
<parameters>
<param type="double2" name="Grid spacing" key="spacing" defaultValue="10." min="1." max="150." />
</parameters>
</service>
<service uid="depthRangeSliderSrv" type="sight::module::ui::qt::parameters">
<parameters>
<param type="double" widget="slider" name="X" key="X" defaultValue="0." min="-100." max="100." />
<param type="double" widget="slider" name="Y" key="Y" defaultValue="0." min="-100." max="100." />
</parameters>
</service>
<!-- ******************************* Connections ***************************************** -->
<connect>
<signal>spacingEditorSrv/double2_changed</signal>
<slot>gridAdp/set_grid_spacing</slot>
</connect>
<connect>
<signal>depthRangeSliderSrv/double_changed</signal>
<slot>square1Adp/set_double_parameter</slot>
</connect>
<!-- ******************************* Start services ***************************************** -->
<start uid="mainFrame" />
<start uid="genericSceneSrv" />
<start uid="spacingEditorSrv" />
<start uid="depthRangeSliderSrv" />
<start uid="gridAdp" />
<start uid="square1Adp" />
<start uid="square2Adp" />
<start uid="abscissaAdp" />
<start uid="ordinateAdp" />
</config>
</extension>
</plugin>
|