annotate icqsol_compose_shapes.xml @ 0:1574fdcc16df draft default tip

Uploaded
author iuc
date Tue, 23 Aug 2016 14:59:12 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
1574fdcc16df Uploaded
iuc
parents:
diff changeset
1 <?xml version='1.0' encoding='UTF-8'?>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
2 <tool id="icqsol_compose_shapes" name="Compose shapes" version="@WRAPPER_VERSION@.0">
1574fdcc16df Uploaded
iuc
parents:
diff changeset
3 <description></description>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
4 <macros>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
5 <import>icqsol_macros.xml</import>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
6 </macros>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
7 <expand macro="requirements" />
1574fdcc16df Uploaded
iuc
parents:
diff changeset
8 <command>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
9 <![CDATA[
1574fdcc16df Uploaded
iuc
parents:
diff changeset
10 python $__tool_directory__/icqsol_compose_shapes.py
1574fdcc16df Uploaded
iuc
parents:
diff changeset
11 --expression "$expression"
1574fdcc16df Uploaded
iuc
parents:
diff changeset
12 #for $i in $input_shapes:
1574fdcc16df Uploaded
iuc
parents:
diff changeset
13 --shape_dataset "${i.expression_var}" "${i.input_shape}" "${i.input_shape.ext}" "${i.input_shape.metadata.dataset_type}"
1574fdcc16df Uploaded
iuc
parents:
diff changeset
14 #end for
1574fdcc16df Uploaded
iuc
parents:
diff changeset
15 --output "$output"
1574fdcc16df Uploaded
iuc
parents:
diff changeset
16 --output_vtk_type $output_vtk_type
1574fdcc16df Uploaded
iuc
parents:
diff changeset
17 ]]>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
18 </command>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
19 <inputs>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
20 <param name="expression" type="text" value="" label="Composition expression" help="Example: A + B - C * D"/>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
21 <repeat name="input_shapes" title="Expression variable and shape" min="2">
1574fdcc16df Uploaded
iuc
parents:
diff changeset
22 <param name="expression_var" type="text" value="" label="Expression variable" help="The selected shape will be associated with this variable in the expression."/>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
23 <param name="input_shape" type="data" format="plyascii,plybinary,vtkascii,vtkbinary" label="Shape">
1574fdcc16df Uploaded
iuc
parents:
diff changeset
24 <validator type="dataset_ok_validator" />
1574fdcc16df Uploaded
iuc
parents:
diff changeset
25 </param>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
26 </repeat>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
27 <expand macro="output_vtk_type_params" />
1574fdcc16df Uploaded
iuc
parents:
diff changeset
28 </inputs>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
29 <outputs>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
30 <data name="output" format="vtkascii">
1574fdcc16df Uploaded
iuc
parents:
diff changeset
31 <actions>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
32 <action type="format">
1574fdcc16df Uploaded
iuc
parents:
diff changeset
33 <option type="from_param" name="output_vtk_type" />
1574fdcc16df Uploaded
iuc
parents:
diff changeset
34 </action>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
35 </actions>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
36 </data>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
37 </outputs>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
38 <tests>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
39 <test>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
40 <param name="expression" value="head + shaft - notch1 - notch2" />
1574fdcc16df Uploaded
iuc
parents:
diff changeset
41 <repeat name="input_shapes">
1574fdcc16df Uploaded
iuc
parents:
diff changeset
42 <param name="expression_var" value="head" />
1574fdcc16df Uploaded
iuc
parents:
diff changeset
43 <param name="input_shape" value="head.vtkascii" ftype="vtkascii" />
1574fdcc16df Uploaded
iuc
parents:
diff changeset
44 </repeat>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
45 <repeat name="input_shapes">
1574fdcc16df Uploaded
iuc
parents:
diff changeset
46 <param name="expression_var" value="shaft" />
1574fdcc16df Uploaded
iuc
parents:
diff changeset
47 <param name="input_shape" value="shaft.vtkascii" ftype="vtkascii" />
1574fdcc16df Uploaded
iuc
parents:
diff changeset
48 </repeat>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
49 <repeat name="input_shapes">
1574fdcc16df Uploaded
iuc
parents:
diff changeset
50 <param name="expression_var" value="notch1" />
1574fdcc16df Uploaded
iuc
parents:
diff changeset
51 <param name="input_shape" value="notch1.vtkascii" ftype="vtkascii" />
1574fdcc16df Uploaded
iuc
parents:
diff changeset
52 </repeat>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
53 <repeat name="input_shapes">
1574fdcc16df Uploaded
iuc
parents:
diff changeset
54 <param name="expression_var" value="notch2" />
1574fdcc16df Uploaded
iuc
parents:
diff changeset
55 <param name="input_shape" value="notch2.vtkascii" ftype="vtkascii" />
1574fdcc16df Uploaded
iuc
parents:
diff changeset
56 </repeat>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
57 <output name="output" file="philips_bolt.vtkascii" ftype="vtkascii" />
1574fdcc16df Uploaded
iuc
parents:
diff changeset
58 <param name="output_vtk_type" value="vtkascii" />
1574fdcc16df Uploaded
iuc
parents:
diff changeset
59 </test>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
60 </tests>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
61 <help>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
62 **What it does**
1574fdcc16df Uploaded
iuc
parents:
diff changeset
63
1574fdcc16df Uploaded
iuc
parents:
diff changeset
64 Creates a shape composed of any number of selected shapes where the composition is based on a mathematical
1574fdcc16df Uploaded
iuc
parents:
diff changeset
65 expression consisting of **+**, **-** and ***** operations. The **+** results in a union of shapes, the
1574fdcc16df Uploaded
iuc
parents:
diff changeset
66 **-** operator removes a shape and the ***** operator results in an intersection of shapes.
1574fdcc16df Uploaded
iuc
parents:
diff changeset
67
1574fdcc16df Uploaded
iuc
parents:
diff changeset
68 For example, if the **Composition expression** is **A + B - C - D**, selecting 4 shapes from your history
1574fdcc16df Uploaded
iuc
parents:
diff changeset
69 and associating each shape with a variable from the expression will result in a shape composed of the shapes
1574fdcc16df Uploaded
iuc
parents:
diff changeset
70 associated with A and B, but eliminating the shapes associated with C and D.
1574fdcc16df Uploaded
iuc
parents:
diff changeset
71
1574fdcc16df Uploaded
iuc
parents:
diff changeset
72 </help>
1574fdcc16df Uploaded
iuc
parents:
diff changeset
73 <expand macro="citations" />
1574fdcc16df Uploaded
iuc
parents:
diff changeset
74 </tool>