Thread: [wxVTK] wxVTK in wxNoteBook
Brought to you by:
malat
From: ABE H. <ha...@gm...> - 2009-04-26 08:14:54
|
Hi, I have been working with wxGLCanvas and recently have been tried wxVTK. The wrapper is quite nice and really appreciated. I am planning of my program to have multiple wxVTK 3D pages with wxNotebook/wxauiNotebook. My program is so-called real-time visualization program so the 3D views are redrawn with time marching. There is no problem with one page with time marching. But if you have two pages, you got a 'bare' window in front of the program's main window when the hidden 3D view window is redrawn. I mean 'bare' is that the window has no frame. A strange thing is that the problem is not occurred once you see the hidden page by clicking the wx(aui)Notebook's tab. FYI, glCanvas version of the program is working without any problem so far. Any suggestions are really appreciated. Thank you in advance. My env. is MacOS X 10.4.11 (PowerMac MDD 867) VTK-5.4 wxWidgets-2.8.9 wxVTK (CVS latest as of now) ABE Hiroshi from Tokorozawa, JAPAN |
From: Kerry L. <lo...@gm...> - 2009-04-27 16:22:26
|
Hello ABE, I'm not sure I understand your problem completely, but I thought I'd comment since I'm using wxVTK in what sounds like a similar application. I use a wxAuiNotebook with a wxVTKRenderWindowInteractor on each page, displaying different information. I have no issues whatsoever with updating the hidden pages and the appearance of the top page. I'm running WinXP, so perhaps it is a platform-dependant issue? I'm not updating my images at anything close to "real-time," so perhaps this has something to do with it, too. Can you supress the call to render the hidden pages until they are no longer hidden? -Kerry On Sun, Apr 26, 2009 at 4:14 AM, ABE Hiroshi <ha...@gm...> wrote: > Hi, > I have been working with wxGLCanvas and recently have been tried wxVTK. > The wrapper is quite nice and really appreciated. > > I am planning of my program to have multiple wxVTK 3D pages with > wxNotebook/wxauiNotebook. > My program is so-called real-time visualization program so the 3D > views are redrawn with time marching. > There is no problem with one page with time marching. But if you > have two pages, you got a 'bare' window in front of the program's > main window when the hidden 3D view window is redrawn. I mean 'bare' > is that the window has no frame. > A strange thing is that the problem is not occurred once you see the > hidden page by clicking the wx(aui)Notebook's tab. > > FYI, glCanvas version of the program is working without any problem > so far. > > Any suggestions are really appreciated. > Thank you in advance. > > My env. is > > MacOS X 10.4.11 (PowerMac MDD 867) > VTK-5.4 > wxWidgets-2.8.9 > wxVTK (CVS latest as of now) > > ABE Hiroshi > from Tokorozawa, JAPAN > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Wxvtk-users mailing list > Wxv...@li... > https://lists.sourceforge.net/lists/listinfo/wxvtk-users > |
From: Mathieu M. <mat...@gm...> - 2009-04-27 16:25:22
|
Hi ABE, I think Kerry is making a good point here. Please specify which wxWidgets port you are using (Cocoa or Carbon). Thanks, On Mon, Apr 27, 2009 at 6:22 PM, Kerry Loux <lo...@gm...> wrote: > Hello ABE, > > I'm not sure I understand your problem completely, but I thought I'd comment > since I'm using wxVTK in what sounds like a similar application. I use a > wxAuiNotebook with a wxVTKRenderWindowInteractor on each page, displaying > different information. I have no issues whatsoever with updating the hidden > pages and the appearance of the top page. I'm running WinXP, so perhaps it > is a platform-dependant issue? I'm not updating my images at anything close > to "real-time," so perhaps this has something to do with it, too. Can you > supress the call to render the hidden pages until they are no longer hidden? > > -Kerry > > On Sun, Apr 26, 2009 at 4:14 AM, ABE Hiroshi <ha...@gm...> wrote: >> >> Hi, >> I have been working with wxGLCanvas and recently have been tried wxVTK. >> The wrapper is quite nice and really appreciated. >> >> I am planning of my program to have multiple wxVTK 3D pages with >> wxNotebook/wxauiNotebook. >> My program is so-called real-time visualization program so the 3D >> views are redrawn with time marching. >> There is no problem with one page with time marching. But if you >> have two pages, you got a 'bare' window in front of the program's >> main window when the hidden 3D view window is redrawn. I mean 'bare' >> is that the window has no frame. >> A strange thing is that the problem is not occurred once you see the >> hidden page by clicking the wx(aui)Notebook's tab. >> >> FYI, glCanvas version of the program is working without any problem >> so far. >> >> Any suggestions are really appreciated. >> Thank you in advance. >> >> My env. is >> >> MacOS X 10.4.11 (PowerMac MDD 867) >> VTK-5.4 >> wxWidgets-2.8.9 >> wxVTK (CVS latest as of now) >> >> ABE Hiroshi >> from Tokorozawa, JAPAN >> >> >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensign option that enables unlimited >> royalty-free distribution of the report engine for externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> Wxvtk-users mailing list >> Wxv...@li... >> https://lists.sourceforge.net/lists/listinfo/wxvtk-users > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Wxvtk-users mailing list > Wxv...@li... > https://lists.sourceforge.net/lists/listinfo/wxvtk-users > > -- Mathieu |
From: ABE H. <ha...@gm...> - 2009-04-27 22:21:35
|
Hi, Kerry and Mathieu and all, thank you for your comments. Regarding Mathieu's commented on the port, my VTK port is MacOSX Carbon. Because I thought I should use the same carbon version with my port of wxWidgets/VTK. Had I better to use Cocoa versiion? On 2009/04/28, at 1:22, Kerry Loux wrote: > page. I'm running WinXP, so perhaps it is a platform-dependant > issue? I'm not updating my images at anything close to "real- > time," so perhaps this has something to do with it, too. Can you > supress the call to render the hidden pages until they are no > longer hidden? > My application is planed to 'record' the 3D view images while the simulation time marches so the hidden windows also must be updated. So I cannot stop rendering the hidden pages. If there is an Off- Screen mode, I would like to use it. As I mentioned in my previous mail, once I make the all pages visible before rendering, the problem is never occurred. So I think some necessary methods might be missed to fit the VTK view to the page's wxPanel or so, which is automatically invoked when visible. I am trying to debug and catch an event to pop up the 'bare' window but very difficult for me so far. I hope I could inform you my situation properly. Regards, ABE Hiroshi from Tokorozawa, JAPAN |
From: Kerry L. <lo...@gm...> - 2009-04-28 13:26:37
|
Ahh, so you have hidden renderwindows that are created hidden and have never been visible? This is different from my application - I never have a renderwindow that is created hidden. It does sound like you might be on to something thinking that this is the cause of the problem, although I can't see any obvious calls that are made (in my code) just because a window becomes visible. Maybe it's burried in the wx or VTK code? Offscreen rendering with VTK has been done, but I've never tried it myself and some quick googling suggests that it's not very straight-forward (and may no-longer be supported?). Sorry I can't be of more help. -Kerry On Mon, Apr 27, 2009 at 6:21 PM, ABE Hiroshi <ha...@gm...> wrote: > Hi, Kerry and Mathieu and all, thank you for your comments. > > Regarding Mathieu's commented on the port, my VTK port is MacOSX > Carbon. Because I thought I should use the same carbon version with > my port of wxWidgets/VTK. > > Had I better to use Cocoa versiion? > > On 2009/04/28, at 1:22, Kerry Loux wrote: > > page. I'm running WinXP, so perhaps it is a platform-dependant > > issue? I'm not updating my images at anything close to "real- > > time," so perhaps this has something to do with it, too. Can you > > supress the call to render the hidden pages until they are no > > longer hidden? > > > > My application is planed to 'record' the 3D view images while the > simulation time marches so the hidden windows also must be updated. > So I cannot stop rendering the hidden pages. If there is an Off- > Screen mode, I would like to use it. > > As I mentioned in my previous mail, once I make the all pages visible > before rendering, the problem is never occurred. So I think some > necessary methods might be missed to fit the VTK view to the page's > wxPanel or so, which is automatically invoked when visible. I am > trying to debug and catch an event to pop up the 'bare' window but > very difficult for me so far. > > I hope I could inform you my situation properly. > > Regards, > > ABE Hiroshi > from Tokorozawa, JAPAN > > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Wxvtk-users mailing list > Wxv...@li... > https://lists.sourceforge.net/lists/listinfo/wxvtk-users > |
From: ABE H. <ha...@gm...> - 2009-04-29 10:51:58
|
Thank you Kerry, I will put my code into Windows and see what happens. Of course I would appreciate any suggestions from authorities of wxVTK. Best, On 2009/04/28, at 22:26, Kerry Loux wrote: > Ahh, so you have hidden renderwindows that are created hidden and > have never been visible? This is different from my application - I > never have a renderwindow that is created hidden. It does sound > like you might be on to something thinking that this is the cause > of the problem, although I can't see any obvious calls that are > made (in my code) just because a window becomes visible. Maybe > it's burried in the wx or VTK code? Offscreen rendering with VTK > has been done, but I've never tried it myself and some quick > googling suggests that it's not very straight-forward (and may no- > longer be supported?). > > Sorry I can't be of more help. > > -Kerry [snip] ABE Hiroshi from Tokorozawa, JAPAN |
From: ABE H. <ha...@gm...> - 2009-04-30 04:43:58
|
Hi all, With Windows XP Sp2, Express 2009, wxWidgets 2.8.8, VTK-5.4 and wxVTK-1.3, the same problem is occured. This could be a common problem around wxVTK and my code. Something should be missing. Any suggestion/idea would be appreciated. Best, On 2009/04/29, at 19:51, ABE Hiroshi wrote: > Thank you Kerry, > > I will put my code into Windows and see what happens. > > Of course I would appreciate any suggestions from authorities of > wxVTK. > > Best, > > On 2009/04/28, at 22:26, Kerry Loux wrote: > >> Ahh, so you have hidden renderwindows that are created hidden and >> have never been visible? This is different from my application - >> I never have a renderwindow that is created hidden. It does sound >> like you might be on to something thinking that this is the cause >> of the problem, although I can't see any obvious calls that are >> made (in my code) just because a window becomes visible. Maybe >> it's burried in the wx or VTK code? Offscreen rendering with VTK >> has been done, but I've never tried it myself and some quick >> googling suggests that it's not very straight-forward (and may no- >> longer be supported?). >> >> Sorry I can't be of more help. >> >> -Kerry > [snip] > > ABE Hiroshi > from Tokorozawa, JAPAN > ABE Hiroshi from Tokorozawa, JAPAN |
From: Robbie J. <rj...@gm...> - 2009-04-29 15:51:38
|
Hello, If you switch tabs in the notebook, can you see the different models? I'm using a wxNotebook to do what you describe but I cannot get the wxVTK renderwindows to show on the layers underneath the last page. I'm also on wxMac 2.8.9, wxVTK CVS, Carbon, OS X 10.5.6. Robbie On Wed, Apr 29, 2009 at 3:51 AM, ABE Hiroshi <ha...@gm...> wrote: > Thank you Kerry, > > I will put my code into Windows and see what happens. > > Of course I would appreciate any suggestions from authorities of wxVTK. > > Best, > > On 2009/04/28, at 22:26, Kerry Loux wrote: > > > Ahh, so you have hidden renderwindows that are created hidden and > > have never been visible? This is different from my application - I > > never have a renderwindow that is created hidden. It does sound > > like you might be on to something thinking that this is the cause > > of the problem, although I can't see any obvious calls that are > > made (in my code) just because a window becomes visible. Maybe > > it's burried in the wx or VTK code? Offscreen rendering with VTK > > has been done, but I've never tried it myself and some quick > > googling suggests that it's not very straight-forward (and may no- > > longer be supported?). > > > > Sorry I can't be of more help. > > > > -Kerry > [snip] > > ABE Hiroshi > from Tokorozawa, JAPAN > > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Wxvtk-users mailing list > Wxv...@li... > https://lists.sourceforge.net/lists/listinfo/wxvtk-users > |
From: ABE H. <ha...@gm...> - 2009-04-30 00:06:52
|
Robbie, I can get the renderwindow what is expected in each page if it is before rendering hidden. It might be a good idea to check if there is a call of 'vtkRenderWindow::Render()' or 'something like Modified()' in your method to update the view/data of each page. Best, On 2009/04/30, at 0:50, Robbie Jaeger wrote: > Hello, > > If you switch tabs in the notebook, can you see the different > models? I'm using a wxNotebook to do what you describe but I > cannot get the wxVTK renderwindows to show on the layers underneath > the last page. > > I'm also on wxMac 2.8.9, wxVTK CVS, Carbon, OS X 10.5.6. > > Robbie > > On Wed, Apr 29, 2009 at 3:51 AM, ABE Hiroshi <ha...@gm...> wrote: > Thank you Kerry, > > I will put my code into Windows and see what happens. > > Of course I would appreciate any suggestions from authorities of > wxVTK. > > Best, > > On 2009/04/28, at 22:26, Kerry Loux wrote: > > > Ahh, so you have hidden renderwindows that are created hidden and > > have never been visible? This is different from my application - I > > never have a renderwindow that is created hidden. It does sound > > like you might be on to something thinking that this is the cause > > of the problem, although I can't see any obvious calls that are > > made (in my code) just because a window becomes visible. Maybe > > it's burried in the wx or VTK code? Offscreen rendering with VTK > > has been done, but I've never tried it myself and some quick > > googling suggests that it's not very straight-forward (and may no- > > longer be supported?). > > > > Sorry I can't be of more help. > > > > -Kerry > [snip] > > ABE Hiroshi > from Tokorozawa, JAPAN > > > ---------------------------------------------------------------------- > -------- > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code > vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Wxvtk-users mailing list > Wxv...@li... > https://lists.sourceforge.net/lists/listinfo/wxvtk-users > ABE Hiroshi from Tokorozawa, JAPAN |
From: Kerry L. <lo...@gm...> - 2009-04-29 16:32:10
|
Hello Robbie, If you send a minimal example that exhibits the problems your seeing, I'd be happy to take a look. -Kerry On Wed, Apr 29, 2009 at 11:50 AM, Robbie Jaeger <rj...@gm...> wrote: > Hello, > > If you switch tabs in the notebook, can you see the different models? I'm > using a wxNotebook to do what you describe but I cannot get the wxVTK > renderwindows to show on the layers underneath the last page. > > I'm also on wxMac 2.8.9, wxVTK CVS, Carbon, OS X 10.5.6. > > Robbie > > > On Wed, Apr 29, 2009 at 3:51 AM, ABE Hiroshi <ha...@gm...> wrote: > >> Thank you Kerry, >> >> I will put my code into Windows and see what happens. >> >> Of course I would appreciate any suggestions from authorities of wxVTK. >> >> Best, >> >> On 2009/04/28, at 22:26, Kerry Loux wrote: >> >> > Ahh, so you have hidden renderwindows that are created hidden and >> > have never been visible? This is different from my application - I >> > never have a renderwindow that is created hidden. It does sound >> > like you might be on to something thinking that this is the cause >> > of the problem, although I can't see any obvious calls that are >> > made (in my code) just because a window becomes visible. Maybe >> > it's burried in the wx or VTK code? Offscreen rendering with VTK >> > has been done, but I've never tried it myself and some quick >> > googling suggests that it's not very straight-forward (and may no- >> > longer be supported?). >> > >> > Sorry I can't be of more help. >> > >> > -Kerry >> [snip] >> >> ABE Hiroshi >> from Tokorozawa, JAPAN >> >> >> >> ------------------------------------------------------------------------------ >> Register Now & Save for Velocity, the Web Performance & Operations >> Conference from O'Reilly Media. Velocity features a full day of >> expert-led, hands-on workshops and two days of sessions from industry >> leaders in dedicated Performance & Operations tracks. Use code vel09scf >> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf >> _______________________________________________ >> Wxvtk-users mailing list >> Wxv...@li... >> https://lists.sourceforge.net/lists/listinfo/wxvtk-users >> > > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Wxvtk-users mailing list > Wxv...@li... > https://lists.sourceforge.net/lists/listinfo/wxvtk-users > > |
From: Mathieu M. <mat...@gm...> - 2009-04-29 19:54:37
|
If this can help there is a wxVTKNotebook.cxx in wxVTK/Sample HTH On Wed, Apr 29, 2009 at 6:31 PM, Kerry Loux <lo...@gm...> wrote: > Hello Robbie, > > If you send a minimal example that exhibits the problems your seeing, I'd be > happy to take a look. > > -Kerry > > On Wed, Apr 29, 2009 at 11:50 AM, Robbie Jaeger <rj...@gm...> wrote: >> >> Hello, >> >> If you switch tabs in the notebook, can you see the different models? I'm >> using a wxNotebook to do what you describe but I cannot get the wxVTK >> renderwindows to show on the layers underneath the last page. >> >> I'm also on wxMac 2.8.9, wxVTK CVS, Carbon, OS X 10.5.6. >> >> Robbie >> >> On Wed, Apr 29, 2009 at 3:51 AM, ABE Hiroshi <ha...@gm...> wrote: >>> >>> Thank you Kerry, >>> >>> I will put my code into Windows and see what happens. >>> >>> Of course I would appreciate any suggestions from authorities of wxVTK. >>> >>> Best, >>> >>> On 2009/04/28, at 22:26, Kerry Loux wrote: >>> >>> > Ahh, so you have hidden renderwindows that are created hidden and >>> > have never been visible? This is different from my application - I >>> > never have a renderwindow that is created hidden. It does sound >>> > like you might be on to something thinking that this is the cause >>> > of the problem, although I can't see any obvious calls that are >>> > made (in my code) just because a window becomes visible. Maybe >>> > it's burried in the wx or VTK code? Offscreen rendering with VTK >>> > has been done, but I've never tried it myself and some quick >>> > googling suggests that it's not very straight-forward (and may no- >>> > longer be supported?). >>> > >>> > Sorry I can't be of more help. >>> > >>> > -Kerry >>> [snip] >>> >>> ABE Hiroshi >>> from Tokorozawa, JAPAN >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Register Now & Save for Velocity, the Web Performance & Operations >>> Conference from O'Reilly Media. Velocity features a full day of >>> expert-led, hands-on workshops and two days of sessions from industry >>> leaders in dedicated Performance & Operations tracks. Use code vel09scf >>> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf >>> _______________________________________________ >>> Wxvtk-users mailing list >>> Wxv...@li... >>> https://lists.sourceforge.net/lists/listinfo/wxvtk-users >> >> >> >> ------------------------------------------------------------------------------ >> Register Now & Save for Velocity, the Web Performance & Operations >> Conference from O'Reilly Media. Velocity features a full day of >> expert-led, hands-on workshops and two days of sessions from industry >> leaders in dedicated Performance & Operations tracks. Use code vel09scf >> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf >> _______________________________________________ >> Wxvtk-users mailing list >> Wxv...@li... >> https://lists.sourceforge.net/lists/listinfo/wxvtk-users >> > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Wxvtk-users mailing list > Wxv...@li... > https://lists.sourceforge.net/lists/listinfo/wxvtk-users > > -- Mathieu |