[vtkusers] Error in vtkTextActor when creating a vtkScalarBarActor with no title
David Lonie
david.lonie at kitware.com
Wed Mar 11 08:53:09 EDT 2015
Hi David,
None of those things should be happening -- I'll take a look.
Dave
On Tue, Mar 10, 2015 at 7:34 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> This may sound like a silly, but vtkScalarBarActor is giving me trouble.
> I'm using the master branch.
>
> If I don't call SetTitle, the vtkScalarBarActor gives me this error:
>
> vtkTextActor::SetInput was passed an uninitialized string
>
> If I call SetTitle("") with an empty string, I get this error:
>
> vtkOpenGLTexture: No scalar values found for texture input!
>
> Finally, if I call SetTitle(" "), i.e. give it a space character, then
> sometimes
> when I render the program gets stuck for a few seconds in the following
> function:
>
> vtkFreeTypeTools::CalculateBoundingBox<vtkUnicodeString>().
>
> Is there something that makes computing the bounding box of a single
> space character difficult for freetype? And why does vtkScalarBarActor
> require the user to set a title?
>
> - 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150311/b7cc691a/attachment.html>
More information about the vtkusers
mailing list