<HTML>
<HEAD>
<TITLE>Re: [Paraview] The flow process for paraview and interaction between QT and VTK parts</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>There are two main layers that deal with moving values from Qt components to the underlying VTK objects. &nbsp;The first layer is the server manager layer, which is controlled through the proxies that Dave mentions below. &nbsp;The server manager layer is documented in Chapter 18 of <I>The ParaView Guide</I>.<BR>
<BR>
There are different mechanisms for going from Qt components to server manager proxies. &nbsp;Most of the GUI components under the Object Inspector/Properties tab are managed by the pqPropertyManager class. &nbsp;This class records changes in Qt GUI components, pushes the changes to the server manager when apply is hit, and creates entries for the undo/redo stack. &nbsp;The pqPropertyManager class is usually set up by methods in the pqNamedWidgets class. &nbsp;These methods will attach QWidgets to server manager properties with the same name. &nbsp;It can also automatically create Qt Widgets based on the properties in a server manager proxy.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 3/11/09 6:45 AM, &quot;David E DeMarle&quot; &lt;<a href="dave.demarle@kitware.com">dave.demarle@kitware.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>vtk objects are all controlled through vtkSMProxies. This indirection<BR>
allows the client application to control vtk objects that exist in<BR>
remote (often parallel) processes as easily as it controls vtk objects<BR>
that exist within the same process.<BR>
<BR>
The QT client application controls vtkSMProxies with the help of<BR>
pqProxy class. This class helps with vtk event to qt signal slot<BR>
translation.<BR>
<BR>
There is more to the story than just the above. Perhaps Utkarsh, Berk<BR>
or some of the developers from ETI will add more detail.<BR>
<BR>
On Wed, Mar 11, 2009 at 12:04 AM, #CHENG ZHIGAO# &lt;<a href="CHEN0136@ntu.edu.sg">CHEN0136@ntu.edu.sg</a>&gt; wrote:<BR>
&gt;<BR>
&gt; Dear developers,<BR>
&gt;<BR>
&gt;       I am sorry to trouble you.     I am currently involved in a project<BR>
&gt; which needs to use paraview or even add some my own stuffs.  As a beginner,<BR>
&gt; i wish i could understand how the paraview works after starting up.  How the<BR>
&gt; QT part initialized and set up, especially the parts involved with VTK and<BR>
&gt; QT.  For example, if i create a sphere and do some subsequent filt<BR>
&gt; operation, how does the QT part interact with the VTK parts?  And how do<BR>
&gt; they keep synchronized with each other?    I do wish i can get the answer<BR>
&gt; from you people since it is really hard to find the answer somewhere else.<BR>
&gt;<BR>
&gt;       Thanks very much and i really appreciate if any help provided.<BR>
&gt;<BR>
&gt; Best Regards,<BR>
&gt; zhigao<BR>
&gt;<BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; Powered by www.kitware.com<BR>
&gt;<BR>
&gt; Visit other Kitware open-source projects at<BR>
&gt; <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
&gt;<BR>
&gt; Please keep messages on-topic and check the ParaView Wiki at:<BR>
&gt; <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
&gt;<BR>
&gt; Follow this link to subscribe/unsubscribe:<BR>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
&gt;<BR>
&gt;<BR>
<BR>
<BR>
<BR>
--<BR>
David E DeMarle<BR>
Kitware, Inc.<BR>
R&amp;D Engineer<BR>
28 Corporate Drive<BR>
Clifton Park, NY 12065-8662<BR>
Phone: 518-371-3971 x109<BR>
_______________________________________________<BR>
Powered by www.kitware.com<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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>