[Paraview] Adding Reader Plugin to "Files of Type" dialogue
Peter Schmitt
pschmittml at gmail.com
Fri Nov 5 13:43:33 EDT 2010
Thanks Burlen, that seemed to do the trick. I couldn't get it to work
without the GUI xml file. In any case, I'm happy it's working now.
Thanks again,
Pete
On Wed, Nov 3, 2010 at 3:46 PM, burlen <burlen.loring at gmail.com> wrote:
> Hi Peter,
>
> The way PV learns about plugin reader extensions changed some time ago. The
> place we specify the file extension association moved from the gui xml to
> the server manager xml in the SourceProxy's hints.
>
> Here are the modified XML files.
>
> <!-- CSVImage.xml -->
> <ServerManagerConfiguration>
> <ProxyGroup name=”sources”>
> <SourceProxy
> name=”CSVImageReader”
> class=”vtkCSVImageReader”>
>
> <StringVectorProperty
> name=”FileName”
> command=”SetFileName”
> number_of_elements=”1”>
> <FileListDomain name=”files”/>
> </StringVectorProperty>
>
> <StringVectorProperty
> name=”FieldDelimiterCharacters”
> command=”SetFieldDelimiterCharacters”
> number_of_elements=”1”
> default_values=”,”/>
>
> <!-- This is how PV now makes the association -->
> <Hints>
> <ReaderFactory
> extensions="csvimg"
> file_description="blah blah blah."/>
> </Hints>
>
> </SourceProxy>
> </ProxyGroup>
> </ServerManagerConfiguration>
> <!-- EOF -->
>
> <!-- CSVImageGUI.xml -->
> <ParaViewReaders>
>
> <!-- No information about file extension association -->
> <Proxy group="sources" name="CSVImageReader" />
>
> </ParaViewReaders>
> <!-- EOF -->
>
> Hope this helps
> Burlen
>
> Ps. I think the gui xml is now optional.
>
>
>
>
>
>
> On 11/03/2010 02:14 PM, Peter Schmitt wrote:
>
>> Hello,
>>
>> I cannot get my reader into ParaView's "File -> Open" dialog. I am
>> following the "CSVImageReader" tutorial here:
>> http://www.kitware.com/products/html/WritingAParaViewReaderPlug-in.html
>>
>> I built ParaView-3.8.1 from source using qt-4.5.3 on my 64-bit Linux
>> workstation (FWIW, I've also tried this on my Mac OSX 10.5.8 box using
>> Nokia's qt-4.6.2 dmg release for 10.5+). I built the libCSVImage.so after
>> adding the following to the top of vtkCSVImageReader.cxx:
>>
>> #include "vtkCSVImageReader.h"
>> #include "vtkDataArray.h"
>> #include "vtkImageData.h"
>> #include "vtkInformation.h"
>> #include "vtkInformationVector.h"
>> #include "vtkObjectFactory.h"
>> #include "vtkPointData.h"
>> #include "vtkStreamingDemandDrivenPipeline.h"
>> #include "vtkTable.h"
>> #include "vtkVariant.h"
>> vtkStandardNewMacro(vtkCSVImageReader);
>>
>>
>> I start up ParaView, goto "Tools -> Manage Plugins -> Load New ..." and I
>> now see "CSVImage" as "Loaded" in the "Local Plugins" pane. However, the
>> "File -> Open" menu doesn't show the CSVImage type.
>>
>> When I attempt to open a *.csvimg file, I am prompted with a dialog titled
>> "Open Data WIth ..." saying "A reader for
>> /home/schmitt/paraview/testData/test.csvimg" could not be found. Please
>> choose one:" and a list of 22 readers ("POP Ocean" through "TecPlot", but no
>> CSVImage type.
>>
>> What am I doing wrong?
>>
>> Thank you,
>> Pete Schmitt
>>
>>
>> _______________________________________________
>> 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20101105/b2e314b2/attachment.htm>
More information about the ParaView
mailing list