[Paraview] XML for SetAxisMagnificationFactor

clinton at elemtech.com clinton at elemtech.com
Thu Jan 31 13:55:11 EST 2008


On Thursday 31 January 2008 11:20:49 am Charl Botha wrote:
> Deal all,
>
> I have been banging my head (and core dumping my workstation) trying
> to find the correct server XML for the SetAxisMagnificationFactor
> method of vtkImageResample.
>
> SetAxisMagnificationFactor takes an integer index as first parameter
> and a double factor as the second parameter.  One does this for each
> axis in the input vtkImageData.
>
> Could anyone give me hints on the correct DoubleVectorProperty
> specification for this?

How about starting with this?

     <StringVectorProperty
        name="AxisMagnificiationFactor"
        command="SetAxisMagnificationFactor"
        number_of_elements="2"
        element_types="0 1"
        default_values="0" >
     </StringVectorProperty>

For element_types, 0 means int, 1 means double.

Clint


More information about the ParaView mailing list