<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey Clint (and Marcus),<div><br></div><div>Thanks a lot for that explanation. I've never tried to make classes that mix Qt and VTK, so that's the possibility I hadn't thought of with the new wrappers. I had a feeling this might work towards a wrapping of QVTKWidget, which should be very nice. I'll definitely take a look at the tests to try out the new possibilities.</div><div><br></div><div>Thanks to all of you who are pushing forward the VTK Python (and Qt) functionality!</div><div>-Eric</div><div><br></div><div><br><div><div>On Aug 5, 2010, at 11:32 AM, Clinton Stimpson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div text="#000000" bgcolor="#ffffff">
On 08/05/2010 08:12 AM, Marcus D. Hanwell wrote:
<blockquote cite="mid:AANLkTim+mj2zHDv_txc3VnemW1bzTQjmX7OULQVXKOD2@mail.gmail.com" type="cite">
<div class="gmail_quote">On Thu, Aug 5, 2010 at 9:34 AM, Eric E.
Monson <span dir="ltr"><<a moz-do-not-send="true" href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
Hey all,<br>
<br>
When someone involved gets a chance, could you give a quick
summary of what we get with the new VTK_WRAP_PYTHON_SIP
option? I don't understand enough about wrapping in general to
follow anything too detailed, but I was wondering if there was
a simple example of what new things this will allow us to do,
or what it is building towards?<br>
<br>
</blockquote>
<div>I think this is Clinton's Qt/VTK wrapping work, allowing
you to use both VTK and PyQt to build rich applications in
Python. It would be great to get an overview of where this is
at, I have been watching some of the threads exchanging
information with David Gobbi with great interest.</div>
<div><br>
</div>
<div>One of the large challenges is getting Qt objects into and
out of VTK objects. I did some previous work where we had to
use sip to bridge the two Python wrapped modules (our library
and PyQt). I will not guess any further, but I think this is
basically what is being done.</div>
<div><br>
</div>
<br>
</div>
</blockquote>
<br>
Yes... its to mix PyQt and VTK for python.<br>
Some degree of mixing was possible before, but what's new is that if
you have a VTK class in C++ that takes Qt types, or a Qt class in
C++ that takes VTK types, those are now usable from python.<br>
And yes, sip is being used in the bridge. There are some
auto-generated .sip files for all VTK classes so they can be
included in user's .sip files when wrapping their own Qt classes.
Also, the VTK wrapper generator understands Qt types, and auto
generates SIP code to do Python/C++ conversions.<br>
<br>
So basically, QVTKWidget can now be used from python along with a
bunch of other C++ classes.<br>
<br>
Its actually quite usable now and if people want to start using it
and give feedback, that would be appreciated.<br>
There are a few tests in VTK/GUISupport/Qt/Testing/Python that can
be used as examples.<br>
But, I still need to write some more .sip files for some Qt classes,
such as the new QGraphicsView code.<br>
<br>
If there are any specific questions, feel free to ask. And if there
are any issues, please let me know.<br>
<br>
Thanks,<br>
Clint<br>
<br>
</div>
_______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br></div></body></html>