[vtkusers] Possible bug in vtkCaptionActor

Rafael de Oliveira Lopes Gonçalves rafaelolg at gmail.com
Wed Nov 13 12:55:17 EST 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131113/185b5525/attachment.htm>


More information about the vtkusers mailing list