0
|
1 <?xml version='1.0' encoding='UTF-8'?>
|
|
2 <tool id="icqsol_rotate_shape" name="Rotate 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_rotate_shape.py
|
|
11 --input "$input"
|
|
12 --input_file_format_and_type $input.ext
|
|
13 --input_dataset_type $input.metadata.dataset_type
|
|
14 --rotation_axis_x $rotation_axis_x
|
|
15 --rotation_axis_y $rotation_axis_y
|
|
16 --rotation_axis_z $rotation_axis_z
|
|
17 --rotation_degrees $rotation_degrees
|
|
18 --output "$output"
|
|
19 --output_vtk_type $output_vtk_type
|
|
20 ]]>
|
|
21 </command>
|
|
22 <inputs>
|
|
23 <param name="input" type="data" format="plyascii,plybinary,vtkascii,vtkbinary" label="Shape">
|
|
24 <validator type="dataset_ok_validator" />
|
|
25 </param>
|
|
26 <param name="rotation_axis_x" type="float" value="1.0" label="X coordinate of rotation axis" help="Floating point number." />
|
|
27 <param name="rotation_axis_y" type="float" value="0.0" label="Y coordinate of rotation axis" help="Floating point number." />
|
|
28 <param name="rotation_axis_z" type="float" value="0.0" label="Z coordinate of rotation axis" help="Floating point number." />
|
|
29 <param name="rotation_degrees" type="float" value="0.0" label="Degree of rotation" help="Floating point number." />
|
|
30 <expand macro="output_vtk_type_params" />
|
|
31 </inputs>
|
|
32 <outputs>
|
|
33 <data name="output" format="vtkascii">
|
|
34 <actions>
|
|
35 <action type="format">
|
|
36 <option type="from_param" name="output_vtk_type" />
|
|
37 </action>
|
|
38 </actions>
|
|
39 </data>
|
|
40 </outputs>
|
|
41 <tests>
|
|
42 <test>
|
|
43 <param name="input" value="cylinder_with_field.vtkascii" ftype="vtkascii" />
|
|
44 <param name="input_file_format_and_type" value="vtkascii" />
|
|
45 <param name="input_dataset_type" value="POLYDATA" />
|
|
46 <param name="rotation_degrees" value="-90.0" />
|
|
47 <param name="rotation_axis_x" value="0.0" />
|
|
48 <param name="rotation_axis_y" value="1.0" />
|
|
49 <param name="rotation_axis_z" value="-0.5" />
|
|
50 <output name="output" file="rotated_cylinder_with_field.vtkascii" ftype="vtkascii" />
|
|
51 <param name="output_vtk_type" value="vtkascii" />
|
|
52 </test>
|
|
53 </tests>
|
|
54 <help>
|
|
55 **What it does**
|
|
56
|
|
57 Applies a rotation to a shape by a given angle about an arbitrary axis.
|
|
58
|
|
59 * **Shape** - Shape to be rotated.
|
|
60 * **Rotation axis X,Y,Z** - The axis of rotation.
|
|
61 * **Degree of rotation** - The degree of rotation around the axis.
|
|
62
|
|
63 </help>
|
|
64 <expand macro="citations" />
|
|
65 </tool>
|