[Paraview] Plugin for TIFF Writer

clinton at elemtech.com clinton at elemtech.com
Wed Feb 20 11:06:11 EST 2008


There's a bug in Paraview 3.2.* that prevent is from getting writers from 
plugins.  Its been fixed in CVS.

In the mean time, you can patch your code with this
--- pqWriterFactory.cxx 26 Sep 2007 18:15:52 -0000      1.7
+++ pqWriterFactory.cxx 15 Jan 2008 20:41:32 -0000      1.8
@@ -187,7 +187,8 @@
   vtkSmartPointer<vtkSMProxy> writer;

   writer = this->Internal->getPrototype(xmlgroup, xmlname);
-  if (!writer)
+  if (!writer && pxm->ProxyElementExists(xmlgroup.toAscii().data(),
+      xmlname.toAscii().data()))
     {
     writer.TakeReference(pxm->NewProxy(xmlgroup.toAscii().data(),
       xmlname.toAscii().data()));


Clint


On Wednesday 20 February 2008 12:46:46 am Enkelejda Tafaj wrote:
> Hi,
>
> yes, I see the plugins in the plugin manager. I am using Paraview 3.2.1.
> Maybe I'm doing something wrong in the Server Manager xml (wrong proxy
> group, or something like that). I wrote the xml files based on the
> writers.xml and ParaViewWriters.xml provided by Paraview.
>
> Does anyone have a working writer plugin for Paraview 3.2.*?
>
> Enkelejda
>
> > Do you see your plugins when you open the plugin manager (Tools -> Manage
> > Plugins)?
> > What version of ParaView are you using?
> >
> > Clint
> >
> > On Tuesday 19 February 2008 12:56:49 pm Enkelejda Tafaj wrote:
> >> I loaded the plugins by setting the PV_PLUGIN_PATH.. Yes and when I do
> >> "save data" I don't see "tif" in the file types in the file dialog..
> >>
> >> Enkelejda
> >>
> >>>> Hi,
> >>>>
> >>>> adding Plugins to Paraview works fine for new Filters and Readers, but
> >>>> I have problems when trying to add a Writer (vtkTIFFWriter.*).
> >>>>
> >>>> The SERVER_MANAGER_XML - TiffWriter.xml- "activates" the existing vtk
> >>>> class (vtkTIFFWriter). I also wrote the files pqTiffWriter.xml and
> >>>> pqTiffWriter.qrc for the GUI.
> >>>>
> >>>> The Plugin compiles, but when I load image data in Paraview and want
> >>>> to save it as .tif file, no plugin appears when calling "Save data".
> >>>> The TiffWriter.xml file is defined very similiar to the paraview png
> >>>> writer so I don't understand why this is not working.
> >>>
> >>> You loaded both plugins through Tools -> Manage Plugins?
> >>> And when you do "save data" you still don't see "tif" in the file types
> >>> in the
> >>> file dialog?
> >>>
> >>> Clint




More information about the ParaView mailing list