[Paraview] Plugin for TIFF Writer

Enkelejda Tafaj lejda at gmx.de
Thu Feb 21 07:24:49 EST 2008


Hi Clint,

I patched the code (pqWriterFactory.cxx), recompiled PV 3.2.1, 
recompiled the Plugins, but still when trying "save data" I don't see 
"tif" in the file type in the file dialog.

I also had a look at the Writer Plugin Example in PV3.3 in CVS. There I 
see in the CMakeLists.txt:

ADD_PARAVIEW_PLUGIN(GUIMyTiffWriter "1.0" GUI_RESOURCE_FILES GUITiff.xml)

This isn't working for me. It seems that I still need a qrc file and I 
have to add the Plugin by writing:
ADD_PARAVIEW_PLUGIN(MyTiffWriter "1.0" GUI_RESOURCES pqTiffWriter.qrc)

What is the difference between GUI_RESOURCE_FILES and GUI_RESOURCES?

I'm using Qt 4.2.2 with Paraview 3.2.1. Or should I better try the cvs 
Paraview 3.3 ?

Thank you,
Enkelejda


clinton at elemtech.com wrote:
> 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