[Paraview] GL2PS for Paraview 3.2.1
Enkelejda Tafaj
lejda at gmx.de
Mon Mar 3 04:19:18 EST 2008
Hi Sven,
thank you for your help.
I ported your patch for Paraview 3.2.1 and changed the files
ParaViewCommon.cmake, pqMainWindowCore.cxx and pqRenderView.cxx. The
last one you will find attached. In the method pqRenderView::saveImage()
I just added a else if in the file suffix branch.
I compiled Paraview 3.2.1 and tried the GL2PSExporter for an example
file. Whatever output file suffix I try, Paraview throws the message
"save image failed". Actually it writes some output in the specified.ps
or .eps, but the output is not complete. When I try .svg the output
looks better, but the message still persists.
I don't know what are the differences between PV 3.3 and 3.2.1, maybe
patching of more files it required... Any idea what would help?
Enkelejda
Sven Buijssen wrote:
> Hi Enkelejda,
>
>> VTK provides the class vtkGL2PSExporter to export a scene as a
>> PostScript file using GL2PS. This is also very nice to have in
>> Paraview, as it writes vector PostScript (PS/EPS), and is thus very
>> nice for publication pics.
>
> In August 2007 I posted a patch for the ParaView 3.1.0 source tree
> adding vector postscript output to Paraview by means of GL2PS. There
> were no follow-ups to this post on the mailing list, I received a few
> reactions via personal e-mail. I assume the point of view of the
> ParaView developers is to not support vector postscript output as many
> things one can visualise with ParaView can simply not be exported to
> Postscript with GL2PS. I perfectly understand this argument, in
> particular as it prevents a lot of bug reports concerning the seemingly
> broken vector postscript support.
>
> Nonetheless, I find vector postscript output very useful to have in
> ParaView (eps format requirements for publications). I ported my patch
> to the current development distribution (3.3.0, cvs version as of today,
> QT 4.3.4). It is less well integrated into the code than previously (as
> the export routines moved from Qt/Core/pqRenderView.cxx to
> Qt/Core/pqImageUtil.cxx since 3.1.0 and the patch still applies mainly
> to Qt/Core/pqRenderView.cxx), but it does the job.
>
> It is not the Plugin approach you pursued, but I hope it helps.
>
> It is probably a bit too perky to ask for, but it would be great if the
> patch would make it into the CVS repository, as then there would be a
> chance that someone with more VTK experience than me would keep it up to
> date, automatically would disable conflicting drawing options (e.g.
> "Interpolate Colors") and possibly even add some kind of error handling.
>
> Sven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pqRenderView.cxx
Type: text/x-c++src
Size: 50806 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/paraview/attachments/20080303/b1f17ede/pqRenderView-0001.cxx
More information about the ParaView
mailing list