[vtkusers] Fwd: Re: How to add a text in the render window ??

Jothybasu K Selvaraj jothybasu at gmail.com
Sat Apr 17 06:14:46 EDT 2010


Why can't you use textInput widget from your GUI designer to get the text
entered by the use and display that text with vtkTextSource?

Jothy

On Sat, Apr 17, 2010 at 5:48 AM, Rakesh Patil <rakeshthp at in.com> wrote:

> Hi,
>
> Thanks for your quick reply.. Let me be more precise.. I want to place the
> text on mouse click..
> Suppose i click at a particular location, a small pop up window will appear
> asking to enter a text..
> And once I enter a text, that text should get displayed at the clicked
> position.. And further, as i zoom in/out,
> the text also should zoom..
>
> The text source and vector text zooms.. but i cant set the position there..
>
> Any suggestions..??
>
> Thanks
>
> Regards
> Rakesh Patil
>
>
> ---------- Original message ----------
> From:"David Doria"< daviddoria+vtk at gmail.com <daviddoria%2Bvtk at gmail.com>>
> Date: 21 Jan 10 12:27:15
> Subject: Re: [vtkusers] How to add a text in the render window ??
> To: Rakesh Patil <rakeshthp at in.com>
>
> Hello users,
>>
>>
>> I want to insert a text in my render window.. But the text should be
>> zoomable and should not be fixed..
>>
>> The example here
>>
>> http://www.vtk.org/Wiki/VTK/Examples/DisplayText
>>
>> displays "Hello World" at the bottom of the window and its position
>> remains same throughout.. I want this actor to zoom along with the sphere..
>>
>> Any ideas or suggestions how to achieve this..??
>>
>> Thanks
>>
>> Regards
>> Rakesh Patil
>>
>>
>> You're looking for these:
> http://www.vtk.org/Wiki/VTK/Examples/TextSource
> http://www.vtk.org/Wiki/VTK/Examples/VectorText
>
> Thanks,
>
> David
>
>
>
> Get Yourself a cool, short *@in.com* Email ID now!<http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing>
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100417/5e16c404/attachment.htm>


More information about the vtkusers mailing list