[vtkusers] vtkRenderWindowInteractor::Start() never returns
Mathieu Malaterre
mathieu.malaterre at kitware.com
Mon Sep 27 17:57:38 EDT 2004
Erin,
Try:
./GraphicsCxxTests Mace -I
Also if you are really courageous, I have developped a cross plateform
toolkit which bridge wxWidget and VTK:
http://wxvtk.sourceforge.net/
If you are using cmake to create your executable you should use a
recent version of cmake that handle MACOX_BUNDLE, then just do:
IF(APPLE)
SET(GUI_EXECUTABLE MACOSX_BUNDLE)
ENDIF(APPLE)
ADD_EXECUTABLE(foo ${GUI_EXECUTABLE} foo.cxx)
HTH,
Mathieu
Erin McKay wrote:
> Hmmn, I think I've got a problem, then. When I Start(), the render
> window appears behind the terminal window from which I launch the
> application (Cylinder.cxx). The only active part of the window is the
> button group (close, minimise, etc). Any keypress is captured by the
> terminal. I can close the render window but the application continues
> running until I hit ^C.
>
> Also, when I run the GraphicsCxxTests, I get a render window that
> displays an image for rather less than a second, then disappears. Is
> this what I should expect? (nb. the TestCxxFeatures tests all report
> a pass).
>
> I'm working on Mac OSX 10.3 using the OpenGL and Carbon frameworks,
> if that makes a difference.
>
> thanks for any assistance, erin
>
>
>
> Hitting the 'Q' key while in the interactor makes the Start() call
> unblock. It does not mean the app has to quit then. Hope this helps
> some.
>
> - Charles Moad
>
> On Sep 25, 2004, at 5:51 PM, Erin McKay wrote:
>
>
>> According to the documentation for vtkRenderWindowInteractor, the
>> Start() method of will start up the event loop and never return.
>> How, then, do I reach the cleanup code in (for example) the
>> cylinder.cxx sample code?
>>
>> Must I write my own event loop if I need to return to the entry
>> point?
>>
>
>
>
> SOUTH EAST HEALTH CONFIDENTIALITY NOTICE
>
> This email, and the files transmitted with it, are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you are not the intended recipient, you are not
> permitted to distribute or use this email or any of its attachments
> in any way. We also request that you advise the sender of the
> incorrect addressing.
>
> This email message has been virus-scanned. Although no computer
> viruses were detected, South East Health accepts no liability for any
> consequential damage resulting from email containing any computer
> viruses.
>
> _______________________________________________ This is the private
> VTK discussion list. Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to
> subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list