comparison icqsol_scale_shape.xml @ 0:e3bce7e46736 draft default tip

Uploaded
author iuc
date Tue, 23 Aug 2016 15:03:46 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e3bce7e46736
1 <?xml version='1.0' encoding='UTF-8'?>
2 <tool id="icqsol_scale_shape" name="Scale 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_scale_shape.py
11 --input "$input"
12 --input_file_format_and_type $input.ext
13 --input_dataset_type $input.metadata.dataset_type
14 --scale_x $scale_x
15 --scale_y $scale_y
16 --scale_z $scale_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="scale_x" type="float" value="1.0" label="X coordinate of scale" help="Floating point number." />
26 <validator type="in_range" min="0" exclude_min="true" />
27 <param name="scale_y" type="float" value="1.0" label="Y coordinate of scale" help="Floating point number." />
28 <validator type="in_range" min="0" exclude_min="true" />
29 <param name="scale_z" type="float" value="1.0" label="Z coordinate of scale" help="Floating point number." />
30 <validator type="in_range" min="0" exclude_min="true" />
31 <expand macro="output_vtk_type_params" />
32 </inputs>
33 <outputs>
34 <data name="output" format="vtkascii">
35 <actions>
36 <action type="format">
37 <option type="from_param" name="output_vtk_type" />
38 </action>
39 </actions>
40 </data>
41 </outputs>
42 <tests>
43 <test>
44 <param name="input" value="cylinder_with_field.vtkascii" ftype="vtkascii" />
45 <param name="input_file_format_and_type" value="vtkascii" />
46 <param name="input_dataset_type" value="POLYDATA" />
47 <param name="scale_x" value="0.1" />
48 <param name="scale_y" value="1.5" />
49 <param name="scale_z" value="3.5" />
50 <output name="output" file="scaled_cylinder_with_field.vtkascii" ftype="vtkascii" />
51 <param name="output_vtk_type" value="vtkascii" />
52 </test>
53 </tests>
54 <help>
55
56 **What it does**
57
58 Magnifies the dimensions of a shape along the X, Y and Z directions.
59
60 * **Shape** - Shape to be scaled.
61 * **Scale X,Y,Z** - Scale factors along x, y, and z.
62
63 </help>
64 <expand macro="citations" />
65 </tool>