Is that a bug?<br>Yes.<br><br>Would you recommend a particular fix...?<br><br><br><div><span class="gmail_quote">On 10/30/07, <b class="gmail_sendername">Mathieu Coursolle</b> <<a href="mailto:mcoursolle@rogue-research.com">
mcoursolle@rogue-research.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi VTK developpers,<br><br>I have been investigating a bit, and here is what I noticed.
<br><br>The way SimpleCocoaVTK is done right now calls<br>vtkRenderWindowInteractor::Initialize() before it is rendered<br>the first time.<br><br>At that point, CreateAWindow in vtkCocoaRenderWindow is called.<br>It doesn't matter if the window is created of not. However, OpenGLInit()
<br>is called, which calls ReadOpenGLExtensions. That seems to required that<br>the renderWindow been rendered once at that point (which is not the case).<br>If not, it calls render. However, render looks if OnScreenInitialized has
<br>been set to 1. It has not since we are still in CreateAWindow (it is set<br>at the next line).<br>Since it has not, it calls CreateAWindow again (which overwrites the one<br>we are using)!<br><br>Is that a bug?<br><br>
Thanks!<br><br>MAthieu<br><br><br>===========================================================<br>Original mail<br>===========================================================<br><br>Hi VTK developpers,<br><br>We developped a Cocoa application using VTK in an custom NSView.
<br>However, it stopped working since last Friday (october 26th).<br><br>If we use october 25th build, it works all right, but our render<br>window will not appear if we use a newer version. The code is based<br>on SimpleCocoaVTK  (<
<a href="http://www.rogue-research.com/VTK/simpleCocoaVTK.html">http://www.rogue-research.com/VTK/simpleCocoaVTK.html</a>>),<br>which has the same problem as we do if using the latest VTK (October<br>30th - 15h30).<br>
<br>The vtkRenderWindow disappear at launch. In fact, you can see the render<br>window for<br>a really short period of time before it disappear.<br><br>There is no VTK test which covers that issue (create the view for<br>
vtkRenderWindow), so the dashboard<br>probably did not react to the changes. However, we have been using that<br>code for<br>the last months without any problem.<br><br>Does anyone knows what is the cause of that problem. If so, is there a
<br>way to solve it?<br><br>We are testing on Mac OSX 10.5.<br><br>Thanks!<br><br>--<br>____________________________________________________________<br>Mathieu Coursolle                   <a href="mailto:mcoursolle@rogue-research.com">
mcoursolle@rogue-research.com</a><br>Rogue Research                      <a href="http://www.rogue-research.com">www.rogue-research.com</a><br>Montréal, Québec, Canada<br><br><br>_______________________________________________
<br>vtk-developers mailing list<br><a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br><a href="http://www.vtk.org/mailman/listinfo/vtk-developers">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
</blockquote></div><br>