Mercurial > repos > iuc > icqsol_translate_shape
comparison icqsol_translate_shape.xml @ 0:88af59c4a2e5 draft default tip
Uploaded
author | iuc |
---|---|
date | Tue, 23 Aug 2016 15:05:48 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:88af59c4a2e5 |
---|---|
1 <?xml version='1.0' encoding='UTF-8'?> | |
2 <tool id="icqsol_translate_shape" name="Translate shape" version="@WRAPPER_VERSION@.0"> | |
3 <description></description> | |
4 <macros> | |
5 <import>icqsol_macros.xml</import> | |
6 </macros> | |
7 <expand macro="requirements" /> | |
8 <command> | |
9 <![CDATA[ | |
10 python $__tool_directory__/icqsol_translate_shape.py | |
11 --input "$input" | |
12 --input_file_format_and_type $input.ext | |
13 --input_dataset_type $input.metadata.dataset_type | |
14 --displacement_x $displacement_x | |
15 --displacement_y $displacement_y | |
16 --displacement_z $displacement_z | |
17 --output "$output" | |
18 --output_vtk_type $output_vtk_type | |
19 ]]> | |
20 </command> | |
21 <inputs> | |
22 <param name="input" type="data" format="plyascii,plybinary,vtkascii,vtkbinary" label="Shape"> | |
23 <validator type="dataset_ok_validator" /> | |
24 </param> | |
25 <param name="displacement_x" type="float" value="0.0" label="X coordinate of displacement" help="Floating point number." /> | |
26 <param name="displacement_y" type="float" value="0.0" label="Y coordinate of displacement" help="Floating point number." /> | |
27 <param name="displacement_z" type="float" value="0.0" label="Z coordinate of displacement" help="Floating point number." /> | |
28 <expand macro="output_vtk_type_params" /> | |
29 </inputs> | |
30 <outputs> | |
31 <data name="output" format="vtkascii"> | |
32 <actions> | |
33 <action type="format"> | |
34 <option type="from_param" name="output_vtk_type" /> | |
35 </action> | |
36 </actions> | |
37 </data> | |
38 </outputs> | |
39 <tests> | |
40 <test> | |
41 <param name="input" value="cylinder_with_field.vtkascii" ftype="vtkascii" /> | |
42 <param name="input_file_format_and_type" value="vtkascii" /> | |
43 <param name="input_dataset_type" value="POLYDATA" /> | |
44 <param name="displacement_x" value="0.0" /> | |
45 <param name="displacement_y" value="1.0" /> | |
46 <param name="displacement_z" value="-0.5" /> | |
47 <output name="output" file="translated_cylinder_with_field.vtkascii" ftype="vtkascii" /> | |
48 <param name="output_vtk_type" value="vtkascii" /> | |
49 </test> | |
50 </tests> | |
51 <help> | |
52 | |
53 **What it does** | |
54 | |
55 Applies translation operations to a shape by adding a displacement to each coordinate. | |
56 | |
57 * **Shape** - Shape to be translated. | |
58 * **Displacement X,Y,Z** - Coordinates of the displacement. | |
59 | |
60 </help> | |
61 <expand macro="citations" /> | |
62 </tool> |