<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body 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>
</body>
</html>