[vtkusers] Display float value in Text Actor
Veerapuram Varadhan
v.varadhan at gmail.com
Wed Jul 7 01:21:52 EDT 2004
Hi Matt,
You can use sprintf for converting float to char array and then use
this char array in vtkTextMapper/vtkTextActor.
HTH,
V. Varadhan.
On Tue, 06 Jul 2004 17:07:15 -0400, Matthew Seier
<mattie_seier at hotmail.com> wrote:
> Hey all,
>
> I have a project where I am rotating the camera around an actor, and
> generating the angles through which the camera rotates. The problem is that
> these are generated as a float value, and apparently the vtkTextMapper and
> vtkTextActor can only map const char values. Does anyone know how to
> display a constantly changing float value in the Render Window(not the
> console) in C++??
>
> Yours,
> Matt
>
> _________________________________________________________________
> MSN Life Events gives you the tips and tools to handle the turning points in
> your life. http://lifeevents.msn.com
>
> _______________________________________________
> 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
>
More information about the vtkusers
mailing list