[vtk-developers] VTK/Examples/Infovis/Python/labels.py issues (Was Re: unicode stuff in VTK)

Mathieu Malaterre mathieu.malaterre at gmail.com
Tue Nov 17 09:57:50 EST 2009


Hi Jeff,

On Tue, Nov 17, 2009 at 3:13 PM, Jeff Baumes <jeff.baumes at kitware.com> wrote:
> On Mon, Nov 16, 2009 at 11:25 AM, Mathieu Malaterre
> <mathieu.malaterre at gmail.com> wrote:
>> Hi there,
>>
>>  Just wondering, what is the status of rendering of unicode text in
>> VTK CVS now ?
>
> You can do it at the low level (i.e. within a custom mapper) using
> vtkQtLabelRenderStrategy. The only mapper that currently uses it is
> vtkLabelPlacementMapper, which draws a set of labels from a dataset
> preprocessed with vtkPointSetToLabelHierarchy. The example:
>
> VTK/Examples/Infovis/Python/labels.py
>
> is the best place to look for how to use it.

This script looks great ! I played with it (see attached script). But
it does not seems to be working for me.

1. When you set strategy to vtkFreeTypeLabelRenderStrategy, unicode
stops working (french character are not displayed as expected on my
linux/ LANG=en_US.UTF-8 box).
2. When you revert to vtkQtLabelRenderStrategy (rendering works as
expected), I get a :

$ python labels.py
ERROR: In /home/mathieu/Kitware/VTK/Rendering/vtkOpenGLTexture.cxx, line 59
vtkOpenGLTexture (0x24eb840): PBO should have been deleted in
ReleaseGraphicsResources()


Thanks,

-- 
Mathieu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: labels.py
Type: text/x-python
Size: 1552 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20091117/b9dec1d7/attachment-0001.py>


More information about the vtk-developers mailing list