Mercurial > repos > iuc > icqsol_rotate_shape
view icqsol_rotate_shape.xml @ 0:f63d4da328a3 draft default tip
Uploaded
author | iuc |
---|---|
date | Tue, 23 Aug 2016 15:02:48 -0400 |
parents | |
children |
line wrap: on
line source
<?xml version='1.0' encoding='UTF-8'?> <tool id="icqsol_rotate_shape" name="Rotate shape" version="@WRAPPER_VERSION@.0"> <description></description> <macros> <import>icqsol_macros.xml</import> </macros> <expand macro="requirements" /> <command> <![CDATA[ python $__tool_directory__/icqsol_rotate_shape.py --input "$input" --input_file_format_and_type $input.ext --input_dataset_type $input.metadata.dataset_type --rotation_axis_x $rotation_axis_x --rotation_axis_y $rotation_axis_y --rotation_axis_z $rotation_axis_z --rotation_degrees $rotation_degrees --output "$output" --output_vtk_type $output_vtk_type ]]> </command> <inputs> <param name="input" type="data" format="plyascii,plybinary,vtkascii,vtkbinary" label="Shape"> <validator type="dataset_ok_validator" /> </param> <param name="rotation_axis_x" type="float" value="1.0" label="X coordinate of rotation axis" help="Floating point number." /> <param name="rotation_axis_y" type="float" value="0.0" label="Y coordinate of rotation axis" help="Floating point number." /> <param name="rotation_axis_z" type="float" value="0.0" label="Z coordinate of rotation axis" help="Floating point number." /> <param name="rotation_degrees" type="float" value="0.0" label="Degree of rotation" help="Floating point number." /> <expand macro="output_vtk_type_params" /> </inputs> <outputs> <data name="output" format="vtkascii"> <actions> <action type="format"> <option type="from_param" name="output_vtk_type" /> </action> </actions> </data> </outputs> <tests> <test> <param name="input" value="cylinder_with_field.vtkascii" ftype="vtkascii" /> <param name="input_file_format_and_type" value="vtkascii" /> <param name="input_dataset_type" value="POLYDATA" /> <param name="rotation_degrees" value="-90.0" /> <param name="rotation_axis_x" value="0.0" /> <param name="rotation_axis_y" value="1.0" /> <param name="rotation_axis_z" value="-0.5" /> <output name="output" file="rotated_cylinder_with_field.vtkascii" ftype="vtkascii" /> <param name="output_vtk_type" value="vtkascii" /> </test> </tests> <help> **What it does** Applies a rotation to a shape by a given angle about an arbitrary axis. * **Shape** - Shape to be rotated. * **Rotation axis X,Y,Z** - The axis of rotation. * **Degree of rotation** - The degree of rotation around the axis. </help> <expand macro="citations" /> </tool>