[vtkusers] Possible bug in vtkCaptionActor

Rafael de Oliveira Lopes Gonçalves rafaelolg at gmail.com
Thu Nov 14 14:49:15 EST 2013


> import vtk;vtk.vtkVersion().GetVTKVersion()
'5.10.1'


Good to know it is fixed anyway.


2013/11/14 David Lonie <david.lonie at kitware.com>

> Hi Rafael,
>
> Thanks for the report. The text rendering engine in VTK has been rewritten
> recently. Which version of VTK are you using to run this example? I've
> tried your script on the current development version and it looks like this
> issue has been fixed (see http://imgur.com/HIeVwtz).
>
> Dave
>
>
> On Wed, Nov 13, 2013 at 12:55 PM, Rafael de Oliveira Lopes Gonçalves <
> rafaelolg at gmail.com> wrote:
>
>> Trying some tests with vtkCaptionActor and I think a found a possible
>> glitch. The last char of the caption string is always  cut.
>>
>> A simple example with the error in python:
>>
>> ################
>> import vtk
>> captionActor = vtk.vtkCaptionActor2D()
>> captionActor.SetBorder(False)
>> captionActor.SetCaption('3')
>> captionActor.GetCaptionTextProperty().SetFontSize(40)
>> captionActor.SetPosition2(0.5, 0.5)
>>
>> # Create the usual rendering stuff.
>> ren = vtk.vtkRenderer()
>> renWin = vtk.vtkRenderWindow()
>> renWin.AddRenderer(ren)
>> renWin.SetSize(300, 150)
>> iren = vtk.vtkRenderWindowInteractor()
>> iren.SetRenderWindow(renWin)
>> ren.AddActor(captionActor)
>>
>> ren.ResetCamera()
>> # Render the scene and start interaction.
>> iren.Initialize()
>> renWin.Render()
>> iren.Start()
>>
>> #################
>>
>>
>> A screenshot is available at http://i.imgur.com/ufW85og.jpg
>>
>>
>>
>> --
>> Rafael Lopes
>>
>>
>> _______________________________________________
>> 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 VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>


-- 
Rafael Lopes
(55(11)) 96729-1897
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131114/28633e07/attachment.htm>


More information about the vtkusers mailing list