view icqsol_translate_shape.xml @ 0:88af59c4a2e5 draft default tip

Uploaded
author iuc
date Tue, 23 Aug 2016 15:05:48 -0400
parents
children
line wrap: on
line source

<?xml version='1.0' encoding='UTF-8'?>
<tool id="icqsol_translate_shape" name="Translate shape" version="@WRAPPER_VERSION@.0">
    <description></description>
    <macros>
        <import>icqsol_macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <command>
        <![CDATA[
            python $__tool_directory__/icqsol_translate_shape.py
            --input "$input"
            --input_file_format_and_type $input.ext
            --input_dataset_type $input.metadata.dataset_type
            --displacement_x $displacement_x
            --displacement_y $displacement_y
            --displacement_z $displacement_z
            --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="displacement_x" type="float" value="0.0" label="X coordinate of displacement" help="Floating point number." />
        <param name="displacement_y" type="float" value="0.0" label="Y coordinate of displacement" help="Floating point number." />
        <param name="displacement_z" type="float" value="0.0" label="Z coordinate of displacement" 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="displacement_x" value="0.0" />
            <param name="displacement_y" value="1.0" />
            <param name="displacement_z" value="-0.5" />
            <output name="output" file="translated_cylinder_with_field.vtkascii" ftype="vtkascii" />
            <param name="output_vtk_type" value="vtkascii" />
        </test>
    </tests>
    <help>

**What it does**

Applies translation operations to a shape by adding a displacement to each coordinate.

* **Shape** - Shape to be translated.
* **Displacement X,Y,Z** - Coordinates of the displacement.

    </help>
    <expand macro="citations" />
</tool>