[vtk-developers] Missing ConfigureEvent in VTK Cocoa

David Gobbi david.gobbi at gmail.com
Mon Dec 23 12:21:04 EST 2013


On Mon, Dec 23, 2013 at 10:07 AM, Sean McBride <sean at rogue-research.com> wrote:
> On Mon, 23 Dec 2013 09:57:43 -0700, David Gobbi said:
>
>>I've been working on some code that needs to use the ConfigureEvent to
>>detect window resize events, but the ConfigureEvent is never emitted
>>by either the RenderWindow or the RenderWindowInteractor.  This
>>problem only occurs when I compile VTK with Cocoa.  When I compile
>>with Carbon, the ConfigureEvents come as expected. Has anyone else
>>seen this?
>
> I've never even heard of it. :)

Well, it's most useful in "naked" VTK apps, where it's the only way (except
for polling) to tell when the window has been resized.

>>I searched through the vtkCocoaRenderWindow and the vtkCocoaGLView,
>>and neither of these invoke the ConfigureEvent.  It looks like this
>>event was never implemented for VTK/Cocoa.
>
> Looks like it.  A quick search of the code base leaves me unsure about
> what it would do exactly... notification of a change in size of the OpenGL
> drawing context?

Pretty much.  I think it should be linked to NSWindowDidResizeNotification.

  David



More information about the vtk-developers mailing list