[vtkusers] The vtkVectorText's Problem

David Lonie david.lonie at kitware.com
Thu Dec 6 10:57:15 EST 2012


On Wed, Dec 5, 2012 at 8:29 PM, huangz2350 <huangz2350 at 163.com> wrote:
> Thanks for you Help.
> but I want append text to a 3d-object
> (append textcan respond to ZoomIn,ZoomOut and move(vtkInteractorStyle's
> Action))
> but i test the vtkTextActor,it can't do this.
> also the another one vtkVectorText can't be set Font-Context(Font-Style,
> Font-type and Font-Size).

Have you tried vtkTextActor3D?

http://www.vtk.org/doc/nightly/html/classvtkTextActor3D.html

It provides similar functionality as vtkVectorText (it is rendered as
a 3D prop in the scene, rather than an overlay like vtkTextActor), and
allows font formatting through vtkTextProperty. The drawback of using
vtkTextActor3D in place of vtkVectorText is that vtkVectorText
generates polydata, while vtkTextActor3D renders to a textured quad,
but this is only an issue if you really need polydata for the
pipeline.

HTH,
Dave



More information about the vtkusers mailing list