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 <[email protected]>
> Subject: [Paraview] Custom filter that contains a filename
> To: paraview <[email protected]>
> Message-ID:
>        <[email protected]>
> 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 <[email protected]>
> Subject: Re: [Paraview] Custom filter that contains a filename
> To: Paul Edwards <[email protected]>
> Cc: paraview <[email protected]>
> Message-ID:
>        <[email protected]>
> 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 <[email protected]> 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
>>
>
>
_______________________________________________
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

Reply via email to