[vtkusers] Show a text for a limited period of time

Fernando Nellmeldin f.nellmeldin at open-engineering.com
Wed Mar 9 05:08:29 EST 2016


Hello.
Sorry for the delayed answer.
In fact, I hadn't thought about that. I could use Qt as you suggested and
that's all!
Everything works as expected, thank you!

Fernando.

2016-03-07 15:54 GMT+01:00 Cory Quammen <cory.quammen at kitware.com>:

> While there is some timer support in VTK, since you are using Qt, you
> are likely better of firing off a one-shot timer event in Qt after you
> save your screen shot. See http://doc.qt.io/qt-4.8/qtimer.html for
> details. In the slot you connect the timer to, you'll take care of
> hiding/removing the vtkTextActor.
>
> HTH,
> Cory
>
> On Mon, Mar 7, 2016 at 4:54 AM, Fernando Nellmeldin
> <f.nellmeldin at open-engineering.com> wrote:
> > Hello,
> > does anyone know if this is possible with VTK?
> >
> > Thank you.
> > Fernando.
> >
> > 2016-03-01 10:08 GMT+01:00 Fernando Nellmeldin
> > <f.nellmeldin at open-engineering.com>:
> >>
> >> Hello all.
> >>
> >> I would like to show a text in screen and this text should disappear
> after
> >> a few seconds (3~4). For example, the text should say: "Screenshot
> saved"
> >> and then disappear. For me, doesn't matter if the vtkTextActor gets
> deleted
> >> or its visibility gets turned off.
> >>
> >> How can this be achieved with VTK? Please note that my VTK window is
> >> embedded in a Qt application window.
> >>
> >> I've done this before with pure OpenGL, but in that case I had access to
> >> the "while (true)" loop of the application and I could ask each frame
> how
> >> many seconds have passed. I am completely lost on this subject when
> using
> >> VTK.
> >>
> >> Thank you!
> >>
> >> Fernando.
> >
> >
> > _______________________________________________
> > 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
> >
> > Search the list archives at: http://markmail.org/search/?q=vtkusers
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
> >
>
>
>
> --
> Cory Quammen
> R&D Engineer
> Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160309/58874c0c/attachment.html>


More information about the vtkusers mailing list