[vtkusers] Adding a text widget into qvtk
Rodrigo Lovera
lobo.theslayer at gmail.com
Mon Nov 26 18:16:27 EST 2012
Hi,
I already know how to setup vtk/qt using the qvtkwidget and got it to work
the text display, well i'm using a pushButton in Qt to activate a text
widget which will appear on my qvtkwidget as well as my volume rendering.
My point now is how can I do to interactively write a commentary or some
annotation on it.
I mean, I'm working with medical images and is kind of required to add some
labels or commentaries in some views. Is there any direct way to add the
textwidget and start typing whatever you want on the qvtkwidget?? or maybe
a way to get the text of an texteditbox from qt??? I'm really stucked at
this point.
Rodrigo
2012/11/25 David Doria <daviddoria at gmail.com>
>
> On Fri, Nov 23, 2012 at 12:41 PM, Rodrigo Lovera <lobo.theslayer at gmail.com
> > wrote:
>
>> s anyone know of a way for calculate the area of a region. I mean I got a
>> vo
>
>
> These are two very separate questions - I'd create a separate thread for
> the area of a contour one.
>
> For the question of writing text on an image - I'd do this with VTK. So
> setup the normal VTK/Qt connection (QVTKWidget):
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUIMultipleInheritance
>
> then write your text using:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DisplayText
> or
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/VectorText
>
> David
>
--
*Rodrigo aka WarHearT*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121126/a2743948/attachment.htm>
More information about the vtkusers
mailing list