[Paraview] Custom filter independent from data

Nima Maftoon n_maftoon at yahoo.com
Wed Jan 27 15:02:50 EST 2016


Hello, 

I assumed that if I compound a bunch of filters into a custom filter it will be portable and I can use it for new data. It is not always the case for my filters. If for example I make a custom filter with a sequence of an "Extract Block" followed by a "Merge Blocks", the resulting filter is data independent but for a more complicated structures the exported cpd or xml custom filter includes information about the data. This makes the filter unusable for other data. An example is when Wrap By Vector is one of the filters to include. In that case the cpd file will have a block like the following, specific to a data file:

      <Proxy group="filters" type="WarpVector" id="4220" servers="1" compound_name="WarpByVector1">
        <Property name="Input" id="4220.Input" number_of_elements="1">
          <Proxy value="4209" output_port="0"/>
          <Domain name="groups" id="4220.Input.groups"/>
          <Domain name="input_array" id="4220.Input.input_array">
            <InputArray attribute_type="point" number_of_components="3"/>
          </Domain>
          <Domain name="input_type" id="4220.Input.input_type"/>
        </Property>
        <Property name="ScaleFactor" id="4220.ScaleFactor" number_of_elements="1">
          <Element index="0" value="4000"/>
          <Domain name="range" id="4220.ScaleFactor.range"/>
        </Property>
        <Property name="SelectInputVectors" id="4220.SelectInputVectors" number_of_elements="5">
          <Element index="0" value=""/>
          <Element index="1" value=""/>
          <Element index="2" value=""/>
          <Element index="3" value="0"/>
          <Element index="4" value="comp"/>
          <Domain name="array_list" id="4220.SelectInputVectors.array_list">
            <String text="comp"/>            <String text="Imag____DEPL"/>
            <String text="Real____DEPL [00] - 2097.55"/>
            <String text="Real____DEPL [01] - 2428.3"/>
            <String text="Real____DEPL [02] - 2764.21"/>
            <String text="Real____DEPL [03] - 3162.74"/>
            <String text="Real____DEPL [04] - 4011.2"/>
            <String text="Real____DEPL [05] - 4430.21"/>
            <String text="Real____DEPL [06] - 4864.37"/>
            <String text="Real____DEPL [07] - 5029.38"/>
            <String text="Real____DEPL [08] - 5362.25"/>
            <String text="Real____DEPL [09] - 5693.28"/>
            <String text="Real____DEPL [10] - 5992.98"/>
            <String text="Real____DEPL [11] - 6385.21"/>
            <String text="Real____DEPL [12] - 6776.61"/>
            <String text="Real____DEPL [13] - 7218.14"/>
            <String text="Real____DEPL [14] - 7492.95"/>
            <String text="Real____DEPL [15] - 7818.61"/>
            <String text="Real____DEPL [16] - 8256.92"/>
            <String text="Real____DEPL [17] - 8747.48"/>
            <String text="Real____DEPL [18] - 8972.36"/>
            <String text="Real____DEPL [19] - 9216.32"/>
            <String text="Real____DEPL [20] - 9471.24"/>
            <String text="Real____DEPL [21] - 9954.08"/>
          </Domain>
        </Property>
      </Proxy>
Any hints?Nima
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160127/41c3ae88/attachment.html>


More information about the ParaView mailing list