It seems to work fine with the attached xml file using the vtkPNGReader.
Clint
On Tuesday 02 September 2008 7:57:21 am Samuel Crow wrote:
> Update: I've written the source and it seems to work on the Macintosh
> except when I select a file in either file selector it doesn't register the
> filename in the set method specified in the command entry in the XML.
>
> --- On Mon, 8/25/08, Samuel Crow <[EMAIL PROTECTED]> wrote:
> > From: Samuel Crow <[EMAIL PROTECTED]>
> > Subject: Re: [Paraview] Can sources use filenames in property panels?
> > To: [email protected], [EMAIL PROTECTED]
> > Date: Monday, August 25, 2008, 8:30 PM
> > Thanks!
> >
> >
> > --- On Mon, 8/25/08, [EMAIL PROTECTED]
> >
> > <[EMAIL PROTECTED]> wrote:
> > > From: [EMAIL PROTECTED]
> >
> > <[EMAIL PROTECTED]>
> >
> > > Subject: Re: [Paraview] Can sources use filenames in
> >
> > property panels?
> >
> > > To: [email protected],
> >
> > [EMAIL PROTECTED]
> >
> > > Date: Monday, August 25, 2008, 8:27 PM
> > > I just committed a change in CVS to help you.
> > > Put back your FileListDomain in your properties.
> > > But add an XML hint to show the properties in the
> >
> > panel.
> >
> > > The fix I put in puts it in the sources menu if the
> >
> > show
> >
> > > hint is there.
> > >
> > > <SourceProxy ....>
> > > .....
> > > <Hints>
> > > <Property name="FileName"
> > > show="1"/>
> > > </Hints>
> > > </SourceProxy>
> > >
> > > Clint
> > >
> > > On Monday 25 August 2008 1:20:47 pm Samuel Crow wrote:
> > > > Hello again,
> > > >
> > > > I'm trying to make a source that can read in
> >
> > two
> >
> > > files and generate output
> > >
> > > > based on those files and a few other selection
> >
> > boxes
> >
> > > on the panel
> > >
> > > > describing the file processing. I cannot use
> >
> > file
> >
> > > readers for the two
> > >
> > > > files because there are already readers
> >
> > registered to
> >
> > > both file types and
> > >
> > > > they produce inappropriate data conversions for
> >
> > the
> >
> > > type of data processing
> > >
> > > > I have to do on the files. As such, I also
> >
> > cannot use
> >
> > > a filter to process
> > >
> > > > the input files due to that fact.
> > > >
> > > > Whenever I try to make a string gadget on the
> > >
> > > source's properties panel it
> > >
> > > > doesn't register on the sources menu. When I
> > >
> > > comment out the
> > >
> > > > FileListDomain from each of the filename gadgets,
> >
> > the
> >
> > > string gadgets don't
> > >
> > > > appear at all but the plugin registers as a
> >
> > source.
> >
> > > Whether I do or don't
> > >
> > > > comment out the FileListDomain, everything
> >
> > compiles
> >
> > > correctly and loads
> > >
> > > > correctly under the CVS version of Paraview for
> > >
> > > Windows from last
> > >
> > > > Wednesday.
> > > >
> > > > How can I make a source that can read a file?
> > > >
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > ParaView mailing list
> > > > [email protected]
> > > > http://www.paraview.org/mailman/listinfo/paraview
>
> _______________________________________________
> ParaView mailing list
> [email protected]
> http://www.paraview.org/mailman/listinfo/paraview
<ServerManagerConfiguration>
<ProxyGroup name="sources">
<SourceProxy name="MyPNGSource" class="vtkPNGReader">
<StringVectorProperty
name="FileName"
command="SetFileName"
number_of_elements="1">
<FileListDomain name="files"/>
</StringVectorProperty>
<Hints>
<Property name="FileName" show="1"/>
</Hints>
</SourceProxy>
</ProxyGroup>
</ServerManagerConfiguration>
_______________________________________________
ParaView mailing list
[email protected]
http://www.paraview.org/mailman/listinfo/paraview