[Paraview] exporting selection labels to an SVG as editable/movable text-objects
Dr. Roman Grothausmann
grothausmann.roman at mh-hannover.de
Thu May 22 06:22:22 EDT 2014
Dear Dave,
Many thanks for fixing the Label exporter issue. It does work with 4.1 to get
the text exported into e.g. an SVG. However, the text is always rendered as
paths (always consists of triangles). Is it also possible to have the text being
exported as actual text-fields (like e.g. gnuplot does) that can be edited with
the text-tool in e.g. inkscape?
This would be especially helpful when rendering axes of objects, exporting these
as SVGs and then letting latex render the text when the SVGs are included in an
article (as described here: http://www.ctan.org/tex-archive/info/svg-inkscape).
Many thanks again for looking into this
Roman
On 15/08/13 14:16, Dr. Roman Grothausmann wrote:
> Dear Dave,
>
>
> Many thanks for Your reply and for opening a bug report. I wonder if it would be
> possible to extend the glyph filter to allow rendering text labels as "glyphs"
> because the Selection Inspector labelling cannot be save in a state file. If I
> do so and want to reload it I get the message:
>
> ERROR: In
> /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/XMLParser/vtkXMLParser.cxx,
> line 483
> vtkPVXMLParser (0x40172f0): Error parsing XML in stream at line 4409, column 38,
> byte index 217112: not well-formed (invalid token)
>
> Root does not exist. Either state file could not be opened or it does not
> contain valid xml
> Case not handled.
>
>
> I guess though that the problem with the export to vector-graphics would remain
> the same.
>
> Many thanks for Your help
> Roman
>
> On 14/08/13 19:16, David Lonie wrote:
>> Hi Dr. Grothausmann,
>>
>> This is currently not possible. Some portions of VTK/ParaView still
>> use methods of drawing text that are not fully compatible with the
>> GL2PS export mechanism, and unfortunately the selection label renderer
>> is one of them.
>>
>> I'll take a look at this case and fix it for the next release. I've
>> opened a bug report for the issue:
>>
>> http://paraview.org/Bug/view.php?id=14231
>>
>> In the meantime, the best solution I can come up with is to manually
>> add a text source with appropriate text for the labels you care about.
>> This will be tedious for a large number of labels, but will allow
>> finer control over label positioning.
>>
>> Thanks for the report,
>> Dave
>>
>> On Wed, Aug 14, 2013 at 10:36 AM, Dr. Roman Grothausmann
>> <grothausmann.roman at mh-hannover.de> wrote:
>>> Dear mailing list members,
>>>
>>>
>>> Is it somehow possible to export selection labels (created with the
>>> Selection Inspector) to an SVG as editable/movable text-objects? When I use
>>> Export Scene from the File-menu the labels are not exported. When I save a
>>> screenshot, they are exported but of course cannot be edited/repositioned.
>>> Or is there any other way to display labels to polydata points (from point
>>> data) such that overlapping labels can be avoided or manually repositioned?
>>> I found many vtk*label* or vtk*text* filter but none seems to do this from
>>> what the description says.
>>>
>>> Any help or hints are very much appreciated
>>> Roman
>>>
>>> --
>>> Dr. Roman Grothausmann
>>>
>>> Tomographie und Digitale Bildverarbeitung
>>> Tomography and Digital Image Analysis
>>>
>>> Institut für Funktionelle und Angewandte Anatomie, OE 4120
>>> Medizinische Hochschule Hannover
>>> Carl-Neuberg-Str. 1
>>> D-30625 Hannover
>>>
>>> Tel. +49 511 532-9574
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.paraview.org/mailman/listinfo/paraview
>
--
Dr. Roman Grothausmann
Tomographie und Digitale Bildverarbeitung
Tomography and Digital Image Analysis
Institut für Funktionelle und Angewandte Anatomie, OE 4120
Medizinische Hochschule Hannover
Carl-Neuberg-Str. 1
D-30625 Hannover
Tel. +49 511 532-9574
More information about the ParaView
mailing list