[vtkusers] textMapper

Veerapuram Varadhan v.varadhan at gmail.com
Tue Jul 13 01:03:06 EDT 2004


Hi Michele,

A typical sprintf will do the job for you.

char buf[80];
sprintf (buf, "(%f,%f)", X, Y);
.....
.....
textmapper->SetInput (buf);
....
....

HTH,

V. Varadhan.

On Mon, 12 Jul 2004 14:22:05 +0200, alletto at dei.unipd.it
<alletto at dei.unipd.it> wrote:
> Hi vtk users,
> 
> I'd like to print the coordinates of a picked point as textmapper.
> I've tried with snprintf to convert float to string but, besides the
> coordinates, many other strange symbols appear on the screen.
> 
> Any solutions?
> 
> Thanks in advance.
> 
> Michele Alletto
> 
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
> _______________________________________________
> 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