[Paraview] Custom Reader Issue
Adriano Gagliardi
agagliardi at ara.co.uk
Wed Mar 24 08:02:48 EDT 2010
Yeah, that's what I am using at the moment. However, when I select my mesh
file initially using File->Open, RequestInformation is called. At this point
in time, no data file has been selected. I then have a vtkSetStringMacro
that allows me to browse for a second input file (the data file). However,
for this to then be read in to obtain the variables contained within (hence
populate the point array table), I need to click apply again so that
RequestInformation is called. I was just wondering if there was a workaround
so I could avoid having to reapply the filter.
Adriano
-----Original Message-----
From: Mark Olesen [mailto:Mark.Olesen at faurecia.com]
Sent: 24 March 2010 11:57
To: agagliardi at ara.co.uk
Subject: Re: [Paraview] Custom Reader Issue
On Wed, 2010-03-24 at 11:00 +0000, Adriano Gagliardi wrote:
> Hi,
>
> I have a reader that currently reads in a mesh. As an option it will
> read in a data file associated with the mesh, if provided via file
> browsing. At the moment the list of data arrays only appears after the
> filter is applied, since it will only then read in the data file. So
> the user then has to select the variables he/she wants and then
> reapplies the filter. I'd like to avoid this and, instead, have it so
> if the user browses and selects a data file that it will then populate the
point array selection immediately i.e.
> before the filter is applied. Is this possible?
AFIAK that's the purpose of the RequestInformation() method.
You can use it populate arrays etc. The vtkOpenFOAMReader.cxx (for
example) does just that too.
/mark
DISCLAIMER:
This electronic transmission (and any attachments thereto) is intended
solely for the use of the addressee(s). It may contain confidential or
legally privileged information. If you are not the intended recipient of
this message, you must delete it immediately and notify the sender. Any
unauthorized use or disclosure of this message is strictly prohibited.
Faurecia does not guarantee the integrity of this transmission and shall
therefore never be liable if the message is altered or falsified nor for any
virus, interception or damage to your system.
---------------------------
This email contains information that is private and confidential and is intended only for the addressee. If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.
Note: All email sent to or from this address may be accessed by someone other than the recipient, for system management and security reasons.
Aircraft Research Association Ltd. Registered in England, Registration No 503668 Registered Office: Manton Lane, Bedford MK41 7PF England VAT No GB 196351245
More information about the ParaView
mailing list