[Paraview] export to vectorial image format

Sven Buijssen sven.buijssen at tu-dortmund.de
Thu Mar 31 08:23:18 EDT 2011


Hi,

I happen to have a small patch for the git master branch that adds vector
graphics output (EPS, PS and SVG) to the Save Screenshot dialog and uses
vtkGL2PSExporter as a backend, too. Actually, it's just an updated version of
the patch for this matter I posted on this list back in 2007. But as holds for
the Python approach it has a few drawbacks:

* Only 3D View support
* Builtin mode and client/server mode support (but using merely 1 server
process, empty file when using more)
* No support for Manta/EyeDom/other views
* No multi-view support
* No support for mandelbrot source
* No support for text/annotate time source (a rectangular box is drawn instead),
one can resort to a 3D Text source, though
* No support for Volume rendering
* No support for Slice representation (try Surface representation of a slice
filter output)
* No support for PointSprite representation
* No support for SurfaceLIC representation, even crashes ParaView on export
* In display tab of object inspector, "Interpolate scalars" needs to be ticked
off for every visible object; otherwise object is rendered gray
(see http://www.vtk.org/Bug/view.php?id=1630)
* Requires an old version of the colorbar implementation or colorbar will be
rendered gray

So, don't get your hopes up too much about vtkGL2PSExporter.

Sven


Hom Nath Gharti wrote, On 03/31/11 14:05:
> You might try to run the script below to see if your image quality is good
> enough to use vtkGL2PSExporter
> 
> rw=GetActiveView().GetRenderWindow()
> exp=paraview.vtk.vtkInstantiator.CreateInstance('vtkGL2PSExporter')
> exp.SetRenderWindow(rw)
> exp.SetDrawBackground(0)
> exp.SetSortToSimple()
> exp.SetFileFormatToEPS()
> exp.SetFilePrefix("test")
> #exp.Write3DPropsAsRasterImageOn()
> exp.Write()
> 
> On Wed, Mar 30, 2011 at 6:41 PM, David E DeMarle <dave.demarle at kitware.com
> <mailto:dave.demarle at kitware.com>> wrote:
> 
>     Sorry, ParaView doesn't have true vector graphics output. Please add
>     your vote to the existing user voice request for it.
> 
>     (http://paraview.uservoice.com/forums/11350-general/suggestions/313565-add-vector-graphics-output-i-e-postscript-?ref=title)
> 
>     The pdf writer in ParaView uses Qt to write a raster image. VTK's
>     vtkGL2PSExporter is not exercised by ParaView at all and it is likely
>     not to support many of our rendering techniques if it was added as an
>     new exporter option. 2D views are more likely to be supported, but we
>     haven't yet had the time to do so.
> 
>     David E DeMarle
>     Kitware, Inc.
>     R&D Engineer
>     28 Corporate Drive
>     Clifton Park, NY 12065-8662
>     Phone: 518-371-3971 <tel:518-371-3971> x109
> 
> 
> 
>     On Fri, Mar 25, 2011 at 10:00 AM, Nima Emadi <deeepsky at gmail.com
>     <mailto:deeepsky at gmail.com>> wrote:
>     > Dear all,
>     > I'd like to export a paraview vector field plot into a vectorial image
>     > format (e.g. eps) to generate high quality images which are not huge
>     > in size for publication purposes.
>     > I already compiled paraview 3.10 with gl2ps=on. So according to old
>     > messages in the email list I should be able to save vectorial images.
>     > Could anybody give me instructions how to do that?
>     >
>     > Thanks,
>     > Nima.



More information about the ParaView mailing list