[Paraview] Custom filter that contains a filename (Utkarsh Ayachit)

Christine Corbett Moran corbett at physik.uzh.ch
Tue Nov 3 08:34:29 EST 2009


Hi,

I ran across something related which I am not sure if it is a bug or a
feature. I found that when you have multiple file list domains in your
XML, ParaView decides which one is the "main" file (i.e. the one
specified with the --data= flag at the command line or the first file
selected in a reader) by the name of the string attribute which is a
file list domain which is alphabetically first. I found this automatic
behavior a bit bizarre (at least I had the unfortunate cooincidence of
the first additional file list domain I wanted to add being
alphabetically after my "main" file, and the second beginning with Aa,
and the reason for the "main" file switching only for the second one
took me awhile to track down).

Is there a way to manually specify which file should be the main file?
If not, at least I hope this helps someone else.

Cheers,
Christine

> Message: 2
> Date: Mon, 2 Nov 2009 18:28:45 +0000
> From: Paul Edwards <paul.m.edwards at gmail.com>
> Subject: [Paraview] Custom filter that contains a filename
> To: paraview <paraview at paraview.org>
> Message-ID:
>        <c9adba420911021028h48482734n929ab226e32f2f44 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
>
> I have created my own filter which has a filename as one of the
> properties, e.g. XML is:
>
> 8<------------------------------------------------------
>          <StringVectorProperty
>                                                   name="MyFileName"
>                                                   command="SetMyFileName"
>                                                   number_of_elements="1">
>                  <FileListDomain name="files"/>
>          </StringVectorProperty>
>
>          <Hints>
>                  <Property name="MyFileName" show="1"/>
>          </Hints>
> ------------------------------------------------------>8
>
> If I try to create a custom filter inside ParaView and expose this
> property it is not displayed in the new custom filters properties
> panel of the object inspector.
>
> Regards,
> Paul
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 2 Nov 2009 13:42:59 -0500
> From: Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
> Subject: Re: [Paraview] Custom filter that contains a filename
> To: Paul Edwards <paul.m.edwards at gmail.com>
> Cc: paraview <paraview at paraview.org>
> Message-ID:
>        <7ba9d6a30911021042me0b47dfv5b4775fa802a4621 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> This is a known bug. For now, try adding another bogus property with
> FileListDomain as follows. The first one always gets ignored.
> <StringVectorProperty name="bogus"
>     number_of_elements="1">
>     <FileListDomain name="files"/>
> </StringVectorProperty>
>
> Utkarsh
>
>
> On Mon, Nov 2, 2009 at 1:28 PM, Paul Edwards <paul.m.edwards at gmail.com> wrote:
>> Hi,
>>
>> I have created my own filter which has a filename as one of the
>> properties, e.g. XML is:
>>
>> 8<------------------------------------------------------
>> ? ? ? ? ?<StringVectorProperty
>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? name="MyFileName"
>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? command="SetMyFileName"
>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? number_of_elements="1">
>> ? ? ? ? ? ? ? ? ?<FileListDomain name="files"/>
>> ? ? ? ? ?</StringVectorProperty>
>>
>> ? ? ? ? ?<Hints>
>> ? ? ? ? ? ? ? ? ?<Property name="MyFileName" show="1"/>
>> ? ? ? ? ?</Hints>
>> ------------------------------------------------------>8
>>
>> If I try to create a custom filter inside ParaView and expose this
>> property it is not displayed in the new custom filters properties
>> panel of the object inspector.
>>
>> Regards,
>> Paul
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>
>


More information about the ParaView mailing list