From: Junaed S. <ju...@ci...> - 2005-05-03 20:01:55
|
Hi there, First, greetings to everyone on and off the VXL users list that Amitha sent couple of days ago. Nice to see people using VXL almost all around the world. Now the actual reason for the mail: I have a question with vgui, and idle event handling in particular. My application is a front-end to a firewire camera, which can grab frames in a single shot mode or a continuous feed mood. I intend to create the application to support both; i.e. when in single shot, the application will grab a frame from the camera and display it in the vgui main window, and in continuous mode, it will act as a movie player, displaying realtime what the camera captures. I'm sure of the camera's capability, and I have written code without vgui that does real time movie display from the camera. My vgui app is modeled after the basic_app example, the initialization in the basic_manager is done as follows: .... itab_ = vgui_image_tableau_new(); vgui_viewer2D_tableau_sptr viewer = vgui_viewer2D_tableau_new(itab_); vgui_shell_tableau_sptr shell = vgui_shell_tableau_new(viewer); this->add_child(shell); ..... My idea (maybe not the brightest I'm afraid) is to grab images and display them using the itab_ tableau above by somehow utilizing the idle() method of the tableau. I tried overriding the idle() handler for the event manager class, but it does not get called. So, after all this talk, what I'm askin is this: if I need to update my itab_ view using its set_image_view method when my application is idle, which object's idle method should I override? Is it the vgui_image_tableau object, the vgui_viewer2D_tableau, the vgui_shell_tableau or none of these and something else? Thanks a lot in advance. -J- |