<div dir="ltr">Hi Clinton,<br><br>If you send the code to Prashant, and you can send to the list too, I think will be useful. At least to me.<br><br>Thks,<br><br>Wagner Sales<br><br><div class="gmail_quote">2008/8/28 <span dir="ltr"><<a href="mailto:clinton@elemtech.com">clinton@elemtech.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
I would recommend implementing a QPaintEngine for the QVTKWidget, instead of<br>
what you're trying to do. Then it should simply be a matter of setting a<br>
QVTKWidget as the viewport of the QGraphicsView.<br>
<br>
I've done some experimenting with a QPaintEngine for QVTKWidget before, but I<br>
haven't done enough to get something to commit into the repository. Do you<br>
want some of that code to play with too?<br>
<br>
Clint<br>
<div class="Ih2E3d"><br>
> Hi All,<br>
><br>
> This months Qt Quarterly magazine had an interesting article titled<br>
> "Accelerate your Widgets with OpenGL". The article explains a way for<br>
> developers to use OpenGL viewports in QGraphicsView and layer widgets (any<br>
> QWidget) as items (instances of QGraphicsProxyWidget) on top of 3D areas.<br>
><br>
> [1]<br>
> <a href="http://labs.trolltech.com/blogs/2008/06/27/accelerate-your-widgets-with-ope" target="_blank">http://labs.trolltech.com/blogs/2008/06/27/accelerate-your-widgets-with-ope</a><br>
</div>>ngl/ [2]<br>
<div class="Ih2E3d">> <a href="http://labs.trolltech.com/blogs/wp-content/uploads/2008/06/openglwidgets2.p" target="_blank">http://labs.trolltech.com/blogs/wp-content/uploads/2008/06/openglwidgets2.p</a><br>
>ng<br>
><br>
> Anyways, I was playing around with QVTKWidget, vtkQtRenderWindow and<br>
> QGraphicsView. I thought it should be possible for us to create a subclass<br>
> of QGraphicsView that would help render VTK scenes from within the<br>
> drawBackground() method of QGraphicsView. I did give it a shot and I got<br>
> some results, but its not exactly what I want. I am able to get 3D output<br>
> on the viewport, but the items in the scene are not visible.<br>
><br>
> Could anyone please help me with this?<br>
><br>
> [3] Download the code I have so far from here:<br>
> <a href="http://www.vcreatelogic.com/oss/VTKGraphicsView.zip" target="_blank">http://www.vcreatelogic.com/oss/VTKGraphicsView.zip</a><br>
> * Note, I have only tested the code on Windows so far.<br>
><br>
> Thanks and Warm Regards,<br>
> Prashanth N Udupa<br>
<br>
<br>
</div>_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>