[vtkusers] CaptionActor2D text chopped off

Wayne Christopher wayne at 4raccoons.com
Tue Aug 23 16:56:14 EDT 2011


I was able to make the text look nicer by calling BoldOff(), 
ItalicOff(), ShadowOff() on the CaptionTextProperty().  For some reason 
these are all on by default in vtkCaptionActor2Ds whereas they are off 
by default for vtkTextActors.

     Wayne

On 8/23/11 11:30 AM, David Doria wrote:
> Hi all,
>
> I was experimenting with CaptionActor2D:
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CaptionActor2D
>
> by using it to sequentially mark pixels in an image that the user
> clicks. It seems to work great except that the right side of each
> character seems to be chopped off?
>
> Even if I add additional text to the number:
>
> ss<<  Numbers.size()<<  " hi";
>
> the number is still chopped.
>
> Can anyone reproduce or explain this behavior?
>
> Thanks,
>
> David
> _______________________________________________
> 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



More information about the vtkusers mailing list