[vtkusers] How to intercept Window Size Change Event

Sebastian Gatzka sebastian.gatzka at stud.tu-darmstadt.de
Sat Apr 10 03:07:30 EDT 2010


Yes you can drag it past 400.
And if it reaches 0 the window will crash.
It's due to implicit plane widgets representation of the plane origin (a
sphere) in my case.
I think it will get a 0-radius with 0-sized window and will send the code
flying ...

-----Ursprüngliche Nachricht-----
Von: daviddoria at gmail.com [mailto:daviddoria at gmail.com] Im Auftrag von David
Doria
Gesendet: Freitag, 9. April 2010 23:50
An: Sebastian Gatzka
Cc: vtkusers at vtk.org
Betreff: Re: [vtkusers] How to intercept Window Size Change Event

On Thu, Apr 8, 2010 at 3:47 AM, Sebastian Gatzka
<sebastian.gatzka at stud.tu-darmstadt.de> wrote:
> This is interesting for me too.
> When adding an observer on the render window, how can I limit the window
> size to a minimim value inside the callback function?

Here is an example:
http://www.vtk.org/Wiki/VTK/Examples/WindowModifiedEvent

The window horizontal size is limited to 400. However, it will let you
drag it past that, it just snaps back when you release the mouse.

Anyone know if it can be limited before it goes past 400?

Thanks,

David




More information about the vtkusers mailing list