| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
echo "===== Extracting test coreschema XML files =====" |
| 4 |
|
| 5 |
# ---------------------- actionAndComponentUsingViewerExtension.xml ---------------------- |
| 6 |
# Example taken from distributed source ./sdk/libraries/cepcoreschema/testdata/actionAndComponentUsingViewerExtension.xml |
| 7 |
cat <<EOF > actionAndComponentUsingViewerExtension.xml |
| 8 |
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> |
| 9 |
<cep xmlns="http://camitk.imag.fr/cepcoreschema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://camitk.imag.fr/cepcoreschema Cep.xsd"> |
| 10 |
<name>A CEP with one action and one component that required a viewer extension</name> |
| 11 |
<contact> |
| 12 |
<email>[email protected]</email> |
| 13 |
</contact> |
| 14 |
<description>This CEP contains a new type of component and an action that can do something with it where both require the medicalimageviewer viewer extension. |
| 15 |
This test the link between an action and a component defined in the same CEP as well as the dependency to a viewer.</description> |
| 16 |
<actionExtensions> |
| 17 |
<actionExtension> |
| 18 |
<name>Test Actions</name> |
| 19 |
<description>This extension description is really useless.</description> |
| 20 |
<actions> |
| 21 |
<action> |
| 22 |
<name>Test Action</name> |
| 23 |
<description>This description is void.</description> |
| 24 |
<component>TestMeshBasedComponent</component> |
| 25 |
<classification> |
| 26 |
<family>Testing CepGenerator</family> |
| 27 |
</classification> |
| 28 |
<parameters> |
| 29 |
<parameter defaultValue="100.0" description="Testing double" editable="true" name="testDouble" type="double" unit=""/> |
| 30 |
</parameters> |
| 31 |
</action> |
| 32 |
</actions> |
| 33 |
<dependencies> |
| 34 |
<dependency name="testcomponents" type="component"/> |
| 35 |
<dependency name="medicalimageviewer" type="viewer"/> |
| 36 |
</dependencies> |
| 37 |
</actionExtension> |
| 38 |
</actionExtensions> |
| 39 |
<componentExtensions> |
| 40 |
<componentExtension> |
| 41 |
<name>Test components</name> |
| 42 |
<description>This extension description a new / specific component</description> |
| 43 |
<components> |
| 44 |
<component> |
| 45 |
<name>TestMeshBasedComponent</name> |
| 46 |
<description>My description is useless...</description> |
| 47 |
<representation>Mesh</representation> |
| 48 |
<properties> |
| 49 |
<parameter defaultValue="false" description="Testing bools" editable="true" name="testBool" type="bool" unit=""/> |
| 50 |
<parameter defaultValue="QColor(255, 255, 255, 255)" description="Testing color" editable="true" name="testColor" type="QColor" unit=""/> |
| 51 |
<parameter defaultValue="QVector3D(0.0, 0.0, 0.0)" description="test 3D vector" editable="true" name="testVector3D" type="QVector3D" unit=""/> |
| 52 |
</properties> |
| 53 |
<fileSuffix>specific</fileSuffix> |
| 54 |
</component> |
| 55 |
<dependencies> |
| 56 |
<dependency name="medicalimageviewer" type="viewer"/> |
| 57 |
</dependencies> |
| 58 |
</components> |
| 59 |
</componentExtension> |
| 60 |
</componentExtensions> |
| 61 |
</cep> |
| 62 |
EOF |
| 63 |
|
| 64 |
|
| 65 |
# ---------------------- exampleComponents.xml ---------------------- |
| 66 |
# Example taken from distributed source ./sdk/libraries/cepcoreschema/testdata/exampleComponents.xml |
| 67 |
cat <<EOF > exampleComponents.xml |
| 68 |
<?xml version="1.0" encoding="UTF-8"?> |
| 69 |
<cep |
| 70 |
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' |
| 71 |
xmlns='http://camitk.imag.fr/cepcoreschema' |
| 72 |
xsi:schemaLocation='http://camitk.imag.fr/cepcoreschema ../Cep.xsd'> |
| 73 |
<name>Example Of Tinman With Components</name> |
| 74 |
<contact> |
| 75 |
<email>[email protected]</email> |
| 76 |
</contact> |
| 77 |
<description>Tinman Test file containing several kinds of Component Extensions.</description> |
| 78 |
<copyright><![CDATA[/* **************************************************************************** |
| 79 |
$USERDEF_LICENCE_BEGIN$ |
| 80 |
CamiTK - Computer Assisted Medical Intervention ToolKit |
| 81 |
(c) 2001-2025 Univ. Grenoble Alpes, CNRS, Grenoble INP - UGA, TIMC, 38000 Grenoble, France |
| 82 |
|
| 83 |
Visit http://camitk.imag.fr for more information |
| 84 |
|
| 85 |
This file is part of CamiTK. |
| 86 |
|
| 87 |
$CEP_NAME$ is under the following licence: |
| 88 |
A specific private licence, just to test Tinman licence managing |
| 89 |
|
| 90 |
$USERDEF_LICENCE_END$ |
| 91 |
*************************************************************************** */ |
| 92 |
]]></copyright> |
| 93 |
|
| 94 |
<componentExtensions> |
| 95 |
<componentExtension> |
| 96 |
<name>Example with no file suffix</name> |
| 97 |
<description> |
| 98 |
This component tests the ability of Tinman to create and make |
| 99 |
compilable and executable component extensions which do not |
| 100 |
handle any file suffix (components should then be created from actions). |
| 101 |
</description> |
| 102 |
<components> |
| 103 |
<component> |
| 104 |
<name>my own cube</name> |
| 105 |
<description>A Mesh Cube</description> |
| 106 |
<representation>Mesh</representation> |
| 107 |
<properties> |
| 108 |
<parameter name="size" type="int" defaultValue="5" description="An integer."/> |
| 109 |
<parameter name="color" type="QColor" description="A QColor."/> |
| 110 |
</properties> |
| 111 |
</component> |
| 112 |
</components> |
| 113 |
</componentExtension> |
| 114 |
<componentExtension> |
| 115 |
<name>Example with one file suffix</name> |
| 116 |
<description>Simple Mixed component extension handling .example files</description> |
| 117 |
<components> |
| 118 |
<component> |
| 119 |
<name>Tinman Example File</name> |
| 120 |
<description> |
| 121 |
Simple component handling .example files with no representation. |
| 122 |
</description> |
| 123 |
<representation>None</representation> |
| 124 |
<fileSuffix>example</fileSuffix> |
| 125 |
</component> |
| 126 |
</components> |
| 127 |
</componentExtension> |
| 128 |
|
| 129 |
<componentExtension> |
| 130 |
<name>Example with several file suffixes</name> |
| 131 |
<description>Simple Mixed component extension handling .example files</description> |
| 132 |
<components> |
| 133 |
<component> |
| 134 |
<name>Tinman A File</name> |
| 135 |
<description> |
| 136 |
Simple component handling .a files with an image representation. |
| 137 |
</description> |
| 138 |
<representation>Image</representation> |
| 139 |
<properties> |
| 140 |
<parameter name="aa" type="int" defaultValue="2" description="An integer."/> |
| 141 |
</properties> |
| 142 |
<fileSuffix>a</fileSuffix> |
| 143 |
</component> |
| 144 |
<component> |
| 145 |
<name>Tinman B File</name> |
| 146 |
<description> |
| 147 |
Simple component handling .b files with a Mesh representation. |
| 148 |
</description> |
| 149 |
<representation>Image</representation> |
| 150 |
<properties> |
| 151 |
<parameter name="bb" type="bool" description="A boolean."/> |
| 152 |
</properties> |
| 153 |
<fileSuffix>b</fileSuffix> |
| 154 |
</component> |
| 155 |
<component> |
| 156 |
<name>Tinman C File</name> |
| 157 |
<description> |
| 158 |
Simple component handling .c files with no representation. |
| 159 |
</description> |
| 160 |
<representation>None</representation> |
| 161 |
<properties> |
| 162 |
<parameter name="cc" type="double" defaultValue="3.8" description="A double."/> |
| 163 |
</properties> |
| 164 |
<fileSuffix>c</fileSuffix> |
| 165 |
</component> |
| 166 |
</components> |
| 167 |
</componentExtension> |
| 168 |
</componentExtensions> |
| 169 |
</cep> |
| 170 |
EOF |
| 171 |
|
| 172 |
|
| 173 |
# ---------------------- actionsExamplesLicence.xml ---------------------- |
| 174 |
# Example taken from distributed source ./sdk/libraries/cepcoreschema/testdata/actionsExamplesLicence.xml |
| 175 |
cat <<EOF > actionsExamplesLicence.xml |
| 176 |
<?xml version="1.0" encoding="UTF-8"?> |
| 177 |
<cep xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 178 |
xmlns="http://camitk.imag.fr/cepcoreschema" |
| 179 |
xsi:schemaLocation="http://camitk.imag.fr/cepcoreschema ../cep.xsd"> |
| 180 |
<name>CEP created by Wizard</name> |
| 181 |
<contact> |
| 182 |
<email>[email protected]</email> |
| 183 |
</contact> |
| 184 |
<description>Example of empty CEP</description> |
| 185 |
<copyright><![CDATA[/***************************************************************************** |
| 186 |
$USERDEF_LICENCE_BEGIN$ |
| 187 |
CamiTK - Computer Assisted Medical Intervention ToolKit |
| 188 |
(c) 2001-2025 Univ. Grenoble Alpes, CNRS, Grenoble INP - UGA, TIMC, 38000 Grenoble, France |
| 189 |
|
| 190 |
Visit http://camitk.imag.fr for more information |
| 191 |
|
| 192 |
This file is part of CamiTK. |
| 193 |
|
| 194 |
$CEP_NAME$ is under the following licence: |
| 195 |
A specific private licence |
| 196 |
$USERDEF_LICENCE_END$ |
| 197 |
****************************************************************************/ |
| 198 |
]]></copyright> |
| 199 |
<actionExtensions> |
| 200 |
<actionExtension> |
| 201 |
<name>Wizard created image actions</name> |
| 202 |
<description>This action extension proposes several actions on image components</description> |
| 203 |
<!-- <directoryName>imagewizardactions</directoryName> --> |
| 204 |
<actions> |
| 205 |
<action> |
| 206 |
<name>Example of Image Action</name> |
| 207 |
<description>Example of simple action on image component.</description> |
| 208 |
<component>ImageComponent</component> |
| 209 |
<classification> |
| 210 |
<family>CreatedByWizard</family> |
| 211 |
<tag>Image</tag> |
| 212 |
</classification> |
| 213 |
<parameters> |
| 214 |
<parameter name="alpha" type="int" description="An integer."/> |
| 215 |
<parameter name="beta" type="bool" description="A boolean."/> |
| 216 |
</parameters> |
| 217 |
</action> |
| 218 |
<action> |
| 219 |
<name>Example of Image ITK Filter</name> |
| 220 |
<description>Example of an itk image action.</description> |
| 221 |
<component>ImageComponent</component> |
| 222 |
<classification> |
| 223 |
<family>CreatedByWizard</family> |
| 224 |
<tag>Image</tag> |
| 225 |
<tag>itk</tag> |
| 226 |
<itkFilter outputType="Same as Input"/> |
| 227 |
</classification> |
| 228 |
<parameters> |
| 229 |
<parameter name="gamma" type="QDate" description="A QDate."/> |
| 230 |
<parameter name="phi" type="double" description="A double."/> |
| 231 |
</parameters> |
| 232 |
</action> |
| 233 |
</actions> |
| 234 |
<dependencies> |
| 235 |
<dependency type="library" name="itk"/> |
| 236 |
</dependencies> |
| 237 |
</actionExtension> |
| 238 |
<actionExtension> |
| 239 |
<name>Wizard created mesh actions</name> |
| 240 |
<description>This action extension proposes an action on mesh components</description> |
| 241 |
<actions> |
| 242 |
<action> |
| 243 |
<name>Example of Mesh Action</name> |
| 244 |
<description>Example of action on a mesh.</description> |
| 245 |
<component>MeshComponent</component> |
| 246 |
<classification> |
| 247 |
<family>CreatedByWizard</family> |
| 248 |
<tag>Mesh</tag> |
| 249 |
<tag>Example</tag> |
| 250 |
</classification> |
| 251 |
<parameters> |
| 252 |
<parameter name="A long parameter name" type="QColor" description="A QColor."/> |
| 253 |
</parameters> |
| 254 |
</action> |
| 255 |
</actions> |
| 256 |
</actionExtension> |
| 257 |
</actionExtensions> |
| 258 |
|
| 259 |
</cep> |
| 260 |
EOF |
| 261 |
|
| 262 |
|
| 263 |
# ---------------------- actionsExamplesNoLicence.xml ---------------------- |
| 264 |
# Example taken from distributed source ./sdk/libraries/cepcoreschema/testdata/actionsExamplesNoLicence.xml |
| 265 |
cat <<EOF > actionsExamplesNoLicence.xml |
| 266 |
<?xml version="1.0" encoding="UTF-8"?> |
| 267 |
<cep xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 268 |
xmlns="http://camitk.imag.fr/cepcoreschema" |
| 269 |
xsi:schemaLocation="http://camitk.imag.fr/cepcoreschema ../cep.xsd"> |
| 270 |
<name>CEP created by Wizard</name> |
| 271 |
<contact> |
| 272 |
<email>[email protected]</email> |
| 273 |
</contact> |
| 274 |
<description>Example of empty CEP</description> |
| 275 |
<actionExtensions> |
| 276 |
<actionExtension> |
| 277 |
<name>Wizard created image actions</name> |
| 278 |
<description>This action extension proposes several actions on image components</description> |
| 279 |
<!-- <directoryName>imagewizardactions</directoryName> --> |
| 280 |
<actions> |
| 281 |
<action> |
| 282 |
<name>Example of Image Action</name> |
| 283 |
<description>Example of simple action on image component.</description> |
| 284 |
<component>ImageComponent</component> |
| 285 |
<classification> |
| 286 |
<family>CreatedByWizard</family> |
| 287 |
<tag>Image</tag> |
| 288 |
</classification> |
| 289 |
<parameters> |
| 290 |
<parameter name="alpha" type="int" description="An integer."/> |
| 291 |
<parameter name="beta" type="bool" description="A boolean parameter."/> |
| 292 |
</parameters> |
| 293 |
</action> |
| 294 |
<action> |
| 295 |
<name>Example of Image ITK Filter</name> |
| 296 |
<description>Example of an itk image action.</description> |
| 297 |
<component>ImageComponent</component> |
| 298 |
<classification> |
| 299 |
<family>CreatedByWizard</family> |
| 300 |
<tag>Image</tag> |
| 301 |
<tag>itk</tag> |
| 302 |
<itkFilter outputType="Same as Input"/> |
| 303 |
</classification> |
| 304 |
<parameters> |
| 305 |
<parameter name="gamma" type="QDate" description="Using class QDate as parameter type"/> |
| 306 |
<parameter name="phi" type="double" description="Phi is <i>another parameter</i>" /> |
| 307 |
</parameters> |
| 308 |
</action> |
| 309 |
</actions> |
| 310 |
<dependencies> |
| 311 |
<dependency type="library" name="itk"/> |
| 312 |
</dependencies> |
| 313 |
</actionExtension> |
| 314 |
<actionExtension> |
| 315 |
<name>Wizard created mesh actions</name> |
| 316 |
<description>This action extension proposes an action on mesh components</description> |
| 317 |
<actions> |
| 318 |
<action> |
| 319 |
<name>Example of Mesh Action</name> |
| 320 |
<description>Example of action on a mesh.</description> |
| 321 |
<component>MeshComponent</component> |
| 322 |
<classification> |
| 323 |
<family>CreatedByWizard</family> |
| 324 |
<tag>Mesh</tag> |
| 325 |
<tag>Example</tag> |
| 326 |
</classification> |
| 327 |
<parameters> |
| 328 |
<parameter name="A long parameter name" type="QColor" description="This is a very long description<br/>(for a very long parameter name)"/> |
| 329 |
</parameters> |
| 330 |
</action> |
| 331 |
</actions> |
| 332 |
</actionExtension> |
| 333 |
</actionExtensions> |
| 334 |
|
| 335 |
</cep> |
| 336 |
EOF |
| 337 |
|
| 338 |
|
| 339 |
# ---------------------- actionAndComponent.xml ---------------------- |
| 340 |
# Example taken from distributed source ./sdk/libraries/cepcoreschema/testdata/actionAndComponent.xml |
| 341 |
cat <<EOF > actionAndComponent.xml |
| 342 |
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> |
| 343 |
<cep xmlns="http://camitk.imag.fr/cepcoreschema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://camitk.imag.fr/cepcoreschema Cep.xsd"> |
| 344 |
<name>Yet another example of CEP</name> |
| 345 |
<contact> |
| 346 |
<email>[email protected]</email> |
| 347 |
</contact> |
| 348 |
<description>This CEP contains a new type of component and an action that can do something with it. |
| 349 |
This test the link between an action and a component defined in the same CEP.</description> |
| 350 |
<actionExtensions> |
| 351 |
<actionExtension> |
| 352 |
<name>Another Example Of An Action Extension</name> |
| 353 |
<description>This extension description is really useless.</description> |
| 354 |
<actions> |
| 355 |
<action> |
| 356 |
<name>DoSomethingOnSpecific</name> |
| 357 |
<description>This description is void.</description> |
| 358 |
<component>SpecificMeshBasedComponent</component> |
| 359 |
<classification> |
| 360 |
<family>Testing CepGenerator</family> |
| 361 |
</classification> |
| 362 |
<parameters> |
| 363 |
<parameter defaultValue="100.0" description="Testing double" editable="true" name="testDouble" type="double" unit=""/> |
| 364 |
</parameters> |
| 365 |
</action> |
| 366 |
<action> |
| 367 |
<name>OnlyOneVec3D</name> |
| 368 |
<description>Check compilation of an action with only a QVector3D parameter (check bug#189).</description> |
| 369 |
<component></component> |
| 370 |
<classification> |
| 371 |
<family>Testing CepGenerator</family> |
| 372 |
</classification> |
| 373 |
<parameters> |
| 374 |
<parameter defaultValue="QVector3D(0.0, 0.0, 0.0)" description="test 3D vector" editable="true" name="testVector3D" type="QVector3D" unit=""/> |
| 375 |
</parameters> |
| 376 |
</action> |
| 377 |
</actions> |
| 378 |
<dependencies> |
| 379 |
<dependency name="specificcomponent" type="component"/> |
| 380 |
</dependencies> |
| 381 |
</actionExtension> |
| 382 |
</actionExtensions> |
| 383 |
<componentExtensions> |
| 384 |
<componentExtension> |
| 385 |
<name>Specific component</name> |
| 386 |
<description>This extension description a new / specific component</description> |
| 387 |
<components> |
| 388 |
<component> |
| 389 |
<name>SpecificMeshBasedComponent</name> |
| 390 |
<description>My description is useless...</description> |
| 391 |
<representation>Mesh</representation> |
| 392 |
<properties> |
| 393 |
<parameter defaultValue="false" description="Testing bools" editable="true" name="testBool" type="bool" unit=""/> |
| 394 |
<parameter defaultValue="QColor(255, 255, 255, 255)" description="Testing color" editable="true" name="testColor" type="QColor" unit=""/> |
| 395 |
<parameter defaultValue="QVector3D(0.0, 0.0, 0.0)" description="test 3D vector" editable="true" name="testVector3D" type="QVector3D" unit=""/> |
| 396 |
</properties> |
| 397 |
<fileSuffix>specific</fileSuffix> |
| 398 |
</component> |
| 399 |
</components> |
| 400 |
</componentExtension> |
| 401 |
</componentExtensions> |
| 402 |
</cep> |
| 403 |
EOF |
| 404 |
|
| 405 |
# ---------------------- empty.xml ---------------------- |
| 406 |
# Example taken from distributed source ./sdk/libraries/cepcoreschema/testdata/empty.xml |
| 407 |
cat <<EOF > empty.xml |
| 408 |
<?xml version="1.0" encoding="UTF-8"?> |
| 409 |
<cep xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 410 |
xmlns="http://camitk.imag.fr/cepcoreschema" |
| 411 |
xsi:schemaLocation="http://camitk.imag.fr/cepcoreschema ../cep.xsd"> |
| 412 |
<name>empty</name> |
| 413 |
<contact> |
| 414 |
<email>[email protected]</email> |
| 415 |
<email>[email protected]</email> |
| 416 |
</contact> |
| 417 |
<description>Example of empty CEP</description> |
| 418 |
</cep> |
| 419 |
EOF |
| 420 |
|
| 421 |
# ---------------------- completeTest1.xml ---------------------- |
| 422 |
# Example taken from distributed source ./sdk/libraries/cepcoreschema/testdata/complete-test-1.xml |
| 423 |
cat <<EOF > completeTest1.xml |
| 424 |
<?xml version="1.0" encoding="utf-8"?> |
| 425 |
<cep xmlns="http://camitk.imag.fr/cepcoreschema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://camitk.imag.fr/cepcoreschema Cep.xsd"> |
| 426 |
<name>Complete test CEP 1</name> |
| 427 |
<contact> |
| 428 |
<email>[email protected]</email> |
| 429 |
</contact> |
| 430 |
<description>This CEP is trying to achieve a complete test of all possible cepcoreschema element</description> |
| 431 |
<readme>This CEP is trying to achieve a complete test of all possible cepcoreschema element. Probably some specific cases are not included, but it is our best shot</readme> |
| 432 |
<copyright><![CDATA[/***************************************************************************** |
| 433 |
$USERDEF_LICENCE_BEGIN$ |
| 434 |
CamiTK - Computer Assisted Medical Intervention ToolKit |
| 435 |
(c) 2001-2025 Univ. Grenoble Alpes, CNRS, Grenoble INP - UGA, TIMC, 38000 Grenoble, France |
| 436 |
|
| 437 |
Visit http://camitk.imag.fr for more information |
| 438 |
|
| 439 |
This file is part of CamiTK. |
| 440 |
|
| 441 |
$CEP_NAME$ is under the following licence: |
| 442 |
This is the complete licence, it covers everything, everywhere, for everyone at everytime. |
| 443 |
Please consider thatthis is just an example... |
| 444 |
$USERDEF_LICENCE_END$ |
| 445 |
****************************************************************************/ |
| 446 |
]]></copyright> |
| 447 |
<actionExtensions> |
| 448 |
<actionExtension> |
| 449 |
<name>Test Action Extension 1</name> |
| 450 |
<description>Test the first action extension</description> |
| 451 |
<actions> |
| 452 |
<action> |
| 453 |
<name>Test Action 1</name> |
| 454 |
<description>Test a first action, for image component, with a lot of parameters</description> |
| 455 |
<component>ImageComponent</component> |
| 456 |
<classification> |
| 457 |
<family>Complete Test Actions #1</family> |
| 458 |
<tag>Test</tag> |
| 459 |
<tag>Action #1</tag> |
| 460 |
<tag>ImageComponent</tag> |
| 461 |
<itkFilter outputType="Same as Input" /> |
| 462 |
</classification> |
| 463 |
<parameters> |
| 464 |
<parameter name="p1" type="int" description="This is p1" unit="unit 1" defaultValue="42" editable="true" /> |
| 465 |
<parameter name="p2" type="bool" description="This is p2" unit="unit 2" defaultValue="true" editable="true" /> |
| 466 |
<parameter name="p3" type="double" description="This is p3" unit="unit 3" defaultValue="42.42" editable="true" /> |
| 467 |
<parameter name="p4" type="QString" description="This is p4" unit="unit 4" defaultValue="Default value" editable="true" /> |
| 468 |
<parameter name="p5" type="QDate" description="This is p5" unit="unit 5" defaultValue="QDate(1952,3,11)" editable="true" /> |
| 469 |
<parameter name="p6" type="QColor" description="This is p6" unit="unit 6" defaultValue='QColor("gold")' editable="true" /> |
| 470 |
<parameter name="p7" type="QPoint" description="This is p7" unit="unit 7" defaultValue="QPoint(42,84)" editable="true" /> |
| 471 |
<parameter name="p8" type="QPointF" description="This is p8" unit="unit 8" defaultValue="QPointF(42.42,84.84)" editable="true" /> |
| 472 |
<parameter name="p9" type="QVector3D" description="This is p9" unit="unit 9" defaultValue="QVariant().value<QVector3D>()" editable="true" /> |
| 473 |
<parameter name="p10" type="QVector4D" description="This is p10" unit="unit 10" defaultValue="QVariant().value<QVector4D>()" editable="true" /> |
| 474 |
<parameter name="p11" type="QTime" description="This is p11" unit="unit 11" defaultValue="QTime(23,58)" editable="true" /> |
| 475 |
</parameters> |
| 476 |
<properties modal="false" embedded="true" delayed="false" /> |
| 477 |
</action> |
| 478 |
<action> |
| 479 |
<name>Test Action 2</name> |
| 480 |
<description>Test a second action, with no tag, no component, and with just one non editable parameters</description> |
| 481 |
<component></component> |
| 482 |
<classification> |
| 483 |
<family>Complete Test Actions #1</family> |
| 484 |
<!-- no tag... --> |
| 485 |
</classification> |
| 486 |
<parameters> |
| 487 |
<parameter name="No Tag Action" type="bool" description="A <b>small</b> description with <i>hyper text<i>" unit="€" defaultValue="false" editable="false"/> |
| 488 |
</parameters> |
| 489 |
<properties modal="true" embedded="false" delayed="false" /> |
| 490 |
</action> |
| 491 |
<action> |
| 492 |
<name>Test Action 3</name> |
| 493 |
<description>Test a third action, with non existing \"Mesh Component\", and with lots of parameters and defautl editable</description> |
| 494 |
<component></component> |
| 495 |
<classification> |
| 496 |
<family>Complete Test Actions #1</family> |
| 497 |
<tag>Mesh Component</tag> |
| 498 |
</classification> |
| 499 |
<parameters> |
| 500 |
<parameter name="p1" type="int" description="This is p1" unit="unit 1" defaultValue="42"/> |
| 501 |
<parameter name="p2" type="bool" description="This is p2" unit="unit 2" defaultValue="true"/> |
| 502 |
<parameter name="p3" type="double" description="This is p3" unit="unit 3" defaultValue="42.42"/> |
| 503 |
<parameter name="p4" type="QString" description="This is p4" unit="unit 4" defaultValue="Default value"/> |
| 504 |
<parameter name="p5" type="QDate" description="This is p5" unit="unit 5" defaultValue="QDate(1952,3,11)"/> |
| 505 |
<parameter name="p6" type="QColor" description="This is p6" unit="unit 6" defaultValue='QColor("gold")'/> |
| 506 |
<parameter name="p7" type="QPoint" description="This is p7" unit="unit 7" defaultValue="QPoint(42,84)"/> |
| 507 |
<parameter name="p8" type="QPointF" description="This is p8" unit="unit 8" defaultValue="QPointF(42.42,84.84)"/> |
| 508 |
<parameter name="p9" type="QVector3D" description="This is p9" unit="unit 9" defaultValue="QVariant().value<QVector3D>()"/> |
| 509 |
<parameter name="p10" type="QVector4D" description="This is p10" unit="unit 10" defaultValue="QVariant().value<QVector4D>()"/> |
| 510 |
<parameter name="p11" type="QTime" description="This is p11" unit="unit 11" defaultValue="QTime(23,58)" editable="true" /> |
| 511 |
</parameters> |
| 512 |
<properties modal="true" embedded="false" delayed="false" /> |
| 513 |
</action> |
| 514 |
</actions> |
| 515 |
<dependencies> |
| 516 |
<dependency type="library" name="itk"/> |
| 517 |
<dependency type="cepLibrary" name="testlib"/> |
| 518 |
</dependencies> |
| 519 |
</actionExtension> |
| 520 |
<actionExtension> |
| 521 |
<name>Test Action Extension 2</name> |
| 522 |
<description>Test the second action extension</description> |
| 523 |
<actions> |
| 524 |
<action> |
| 525 |
<name>Test Action 4</name> |
| 526 |
<description>This action use the Test Component 1</description> |
| 527 |
<component>TestComponent1</component> |
| 528 |
<classification> |
| 529 |
<family>Complete Test Actions #2</family> |
| 530 |
<tag>Test</tag> |
| 531 |
<tag>Action #2</tag> |
| 532 |
<tag>Test Component 1</tag> |
| 533 |
</classification> |
| 534 |
<parameters> |
| 535 |
<parameter name="message" type="QString" description="This is a message parameter" unit="none" defaultValue="hello!" editable="true" /> |
| 536 |
</parameters> |
| 537 |
<properties modal="false" embedded="true" delayed="false" /> |
| 538 |
</action> |
| 539 |
</actions> |
| 540 |
<dependencies> |
| 541 |
<dependency type="component" name="testcomponentextension1"/> |
| 542 |
</dependencies> |
| 543 |
</actionExtension> |
| 544 |
</actionExtensions> |
| 545 |
<applications> |
| 546 |
<application> |
| 547 |
<name>testapp</name> |
| 548 |
<description>Test application</description> |
| 549 |
<directoryName>testappdir</directoryName> |
| 550 |
</application> |
| 551 |
</applications> |
| 552 |
<componentExtensions> |
| 553 |
<componentExtension> |
| 554 |
<name>Test Component Extension 1</name> |
| 555 |
<description>Test the first component extension</description> |
| 556 |
<components> |
| 557 |
<component> |
| 558 |
<name>Test Component 1</name> |
| 559 |
<description>Test a first action with an image representation</description> |
| 560 |
<representation>Image</representation> |
| 561 |
<properties> |
| 562 |
<parameter name="p1" type="int" description="This is p1" unit="unit 1" defaultValue="42" editable="true" /> |
| 563 |
<parameter name="p2" type="bool" description="This is p2" unit="unit 2" defaultValue="true" editable="true" /> |
| 564 |
<parameter name="p3" type="double" description="This is p3" unit="unit 3" defaultValue="42.42" editable="true" /> |
| 565 |
<parameter name="p4" type="QString" description="This is p4" unit="unit 4" defaultValue="Default value" editable="true" /> |
| 566 |
<parameter name="p5" type="QDate" description="This is p5" unit="unit 5" defaultValue="QDate(1952,3,11)" editable="true" /> |
| 567 |
<parameter name="p6" type="QColor" description="This is p6" unit="unit 6" defaultValue='QColor("gold")' editable="true" /> |
| 568 |
<parameter name="p7" type="QPoint" description="This is p7" unit="unit 7" defaultValue="QPoint(42,84)" editable="true" /> |
| 569 |
<parameter name="p8" type="QPointF" description="This is p8" unit="unit 8" defaultValue="QPointF(42.42,84.84)" editable="true" /> |
| 570 |
<parameter name="p9" type="QVector3D" description="This is p9" unit="unit 9" defaultValue="QVariant().value<QVector3D>()" editable="true" /> |
| 571 |
<parameter name="p10" type="QVector4D" description="This is p10" unit="unit 10" defaultValue="QVariant().value<QVector4D>()" editable="true" /> |
| 572 |
<parameter name="p11" type="QTime" description="This is p11" unit="unit 11" defaultValue="QTime(23,58)" editable="true" /> |
| 573 |
</properties> |
| 574 |
<fileSuffix>test</fileSuffix> |
| 575 |
</component> |
| 576 |
</components> |
| 577 |
<dependencies> |
| 578 |
<dependency type="cepLibrary" name="testlib"/> |
| 579 |
</dependencies> |
| 580 |
</componentExtension> |
| 581 |
</componentExtensions> |
| 582 |
<libraries> |
| 583 |
<library static="false"> |
| 584 |
<name>testlib</name> |
| 585 |
<description>A simple test lib. This lib will not compile unless some minimal C++ code is present in the generated source. Copy TestLib.h and TestLib.cpp to the library directory before configuration time.</description> |
| 586 |
<dependencies> |
| 587 |
<dependency type="library" name="XSD"/> |
| 588 |
<dependency type="library" name="ITK"/> |
| 589 |
<dependency type="cepLibrary" name="qtpropertybrowser"/> |
| 590 |
</dependencies> |
| 591 |
</library> |
| 592 |
</libraries> |
| 593 |
</cep> |
| 594 |
EOF |
| 595 |
|
| 596 |
|
| 597 |
# ---------------------- viewerExample.xml ---------------------- |
| 598 |
# Example taken from distributed source ./sdk/libraries/cepcoreschema/testdata/viewerExample.xml |
| 599 |
cat <<EOF > viewerExample.xml |
| 600 |
<?xml version="1.0" encoding="UTF-8"?> |
| 601 |
<cep xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 602 |
xmlns="http://camitk.imag.fr/cepcoreschema" |
| 603 |
xsi:schemaLocation="http://camitk.imag.fr/cepcoreschema ../cep.xsd"> |
| 604 |
<name>Test Viewer CEP</name> |
| 605 |
<contact> |
| 606 |
<email>[email protected]</email> |
| 607 |
</contact> |
| 608 |
<description>Example of a CEP with two viewer extensions</description> |
| 609 |
<viewerExtensions> |
| 610 |
<viewerExtension> |
| 611 |
<name>Test Viewer 1</name> |
| 612 |
<description>This viewer extension manages a default viewer</description> |
| 613 |
<registerDefaultViewer/> |
| 614 |
<viewer> |
| 615 |
<name>Test Viewer 1</name> |
| 616 |
<description>Example of simple embedded viewer</description> |
| 617 |
<type>EMBEDDED</type> |
| 618 |
<component>MeshComponent</component> |
| 619 |
<component>ImageComponent</component> |
| 620 |
</viewer> |
| 621 |
</viewerExtension> |
| 622 |
|
| 623 |
<viewerExtension> |
| 624 |
<name>Test Viewer 2</name> |
| 625 |
<description>This viewer extension manages three named viewer</description> |
| 626 |
<registerNewViewer>First Test Viewer</registerNewViewer> |
| 627 |
<registerNewViewer>Second Test Viewer</registerNewViewer> |
| 628 |
<viewer> |
| 629 |
<name>Test Viewer 2</name> |
| 630 |
<description>Example of simple docked viewer</description> |
| 631 |
<type>DOCKED</type> |
| 632 |
<component>Component</component> |
| 633 |
</viewer> |
| 634 |
</viewerExtension> |
| 635 |
</viewerExtensions> |
| 636 |
</cep> |
| 637 |
EOF |
| 638 |
|
| 639 |
echo "[OK]" |