[vtkusers] 3D Text with accents and other caracters.

Kai Ludwig kai.ludwig at uni-tuebingen.de
Thu Oct 9 04:05:41 EDT 2003


Am Donnerstag, 9. Oktober 2003 09:46 schrieb Christophe Franco:
> Hi everybody,
>
> I have to display text annotations in 3D views. I'm using vtkVectorText,
> with a vtkFollower to keep the text always facing the user.
>
> The problem is, vtkVectorText seems very limitated. It does not accept
> accents for example, which is a major problem for me (the software is
> designed to be used mostly in French).
>
> Is there any other way to display text on a 3D view ? I don't really
> need 3D models of the caracters, as I said I want them to be always in
> front of the user, so 2D is enough. But I want to be able to put them at
> any X, Y, Z coordinate.
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to
> subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

Another way is to use vtkTextMapper with a vtkActor2D .The
you can specify the coordinate sytem through

vtkCoordinate* coord = _actor->GetPositionCoordinate();
coord->SetCoordinateSystemToWorld();
coord->SetValue( _x, _y, _z );

This works fine within our project. For a class example look
at the cvs repository of the homepage below. 
The files VtkText.h/VtkText.cc are located in the GUI/Visualization
directory.

Kai
 

-- 
http://echempp.sourceforge.net

Kai Ludwig
Universität Tübingen
Institut für Organische Chemie
Auf der Morgenstelle 18
D-72076 Tübingen
Tel.: 07071/29-73049
Mail: kai.ludwig at uni-tuebingen.de




More information about the vtkusers mailing list