[Paraview] Line thickness vector image
David Lonie
david.lonie at kitware.com
Fri Mar 29 15:45:26 EDT 2013
Hi Nikolay,
The new GL2PS line and point scaling factor branch has been merged into
ParaView's master branch today.
The easiest way to use the feature is to go to File >> Export Scene and
select one of the vector graphics formats (ps, eps, svg, or pdf), and the
configuration dialog that pops up will let you toggle the scaling factors.
The default value is 5/7, like it was before.
If you want to continue using your script, the mechanism is a little
different. Rather than calling the global functions to set the scaling
factors, the factors are now a property of the vtkGL2PSExporter instance
with their own setters/getters. They will need to be set for each
vtkGL2PSExporter used.
Let me know if you have any problems with the feature or notice any
regressions with the new implementation.
Dave
On Fri, Mar 22, 2013 at 10:58 AM, Nikolay Kostov <kostov at rice.edu> wrote:
> Hi Dave,
> Please let me know if you think this is something which can be solved in
> the next few weeks or if I should look at other ways of exporting the
> images (non-vector)?
>
> Thanks a lot,
> Nik
>
>
>
> On 3/19/2013 2:14 PM, David Lonie wrote:
>
> On Tue, Mar 19, 2013 at 2:26 PM, Nikolay Kostov <kostov at rice.edu> wrote:
>
>> The pdf image has very thick lines whereas what I see in paraview
>> before I export looks fine.
>> Before I was using a python script which called vtkGL2PSExporter and I
>> had:
>> gl2ps.SetGlobalPointSizeFactor(size)
>> gl2ps.SetGlobalLineWidthFactor(size)
>>
>> This code doesn't work with paraview 3.98 anymore and I am not able to
>> select line width and point size anywhere.
>> Maybe the problem has to do with the newer version of vtkGL2PSExporter?
>>
>
> These functions were removed for the new vtkGL2PSExporter class. Let me
> see what I can do, something similar can likely be added.
>
> Dave
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130329/936fdfd9/attachment.htm>
More information about the ParaView
mailing list