Ok ! <div>It still not clear but anyway, if you have specific questions, I&#39;ll try to help ...<div><br></div><div>Nehme<br><br></div><div><br><div class="gmail_quote">2009/12/15 Michael Jackson <span dir="ltr">&lt;<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I am developing both a reader (Server Side only) and a custom GUI to go along with the reader for the client side. I have all sorts of custom Qt Gui widgets in my Reader Gui Plugin and I was hoping to reuse a bunch of code that was already existing.<br>

<br>
  I have created some plugins (Server side reader with Client side custom gui) for ParaView in the past, but all of those plugins used simple QWidgets. Nothing like what I am trying now.<br>
<br>
 My code is in a publicly accessible git repo if you want to take a look at the code.<div class="im"><br>
_________________________________________________________<br>
Mike Jackson                  <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
<br>
<br></div><div><div></div><div class="h5">
On Dec 15, 2009, at 11:59 AM, Nehme Bilal wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I see. I already had the same kind of problems but am not able to help much because there is no enough details in your message. Am not sure if it&#39;s a reader or a filter that you are developing ? are you reading the file on the client side ? server side ? or both ?<br>

<br>
2 potential problems:<br>
- if you are reading the file on both the server and client side, your plugin will not work when the server is running on different computer because the file will not be accessible to one of them.<br>
<br>
- apply your plugin, save the state, delete all objects and reload the state, probably something will go wrong.<br>
<br>
if you give more details, I&#39;ll probably be able to help.<br>
<br>
Nehme<br>
<br>
2009/12/14 Michael Jackson &lt;<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>&gt;<br>
Unfortunately the values that are stored in the QComboBox are read from the data file. The &quot;workaround&quot; that i was able to implement was to create the correct number of QTextEdit widgets and place them in the Gui in QtDesigner. Then in my constructor for my Panel Class, I simply call &quot;setVisible(false)&quot; on each of those QTextEdit widgets so they do not show up in the GUI. I then add in the appropriate logic using Signals/Slots to keep those invisible widgets up to date.<br>

  Seems kinda of klunky but frankly there is not enough documentation in ParaView to stray from what is in the Wiki. There is mention that I need to implement some sort of &quot;adaptor&quot; for things like this (QRGB to RGB) is used as the example, but no actual implementation details so I, as the programmer, am basically left guessing what to try to implement.<br>

<br>
 Thanks for the suggestion though. Keep them coming. Better, yet, would be places in the ParaView source to look for &quot;examples&quot; besides grepping through the sources for key words.<br>
<br>
_________________________________________________________<br>
Mike Jackson                  <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
<br>
<br>
On Dec 12, 2009, at 7:49 PM, Nehme Bilal wrote:<br>
<br>
If the elements you want to display in you combobox are always the same, simply use:<br>
<br>
  &lt;IntVectorProperty<br>
    name=&quot;ActiveDimension&quot;<br>
    command=&quot;SetActiveDimension&quot;<br>
    number_of_elements=&quot;1&quot;<br>
    default_values=&quot;0&quot;&gt;<br>
       &lt;EnumerationDomain name=&quot;enum&quot;&gt;<br>
         &lt;Entry value=&quot;1&quot; text=&quot;X&quot;/&gt;<br>
         &lt;Entry value=&quot;2&quot; text=&quot;Y&quot;/&gt;<br>
         &lt;Entry value=&quot;3&quot; text=&quot;Z&quot;/&gt;<br>
       &lt;/EnumerationDomain&gt;<br>
  &lt;/IntVectorProperty&gt;<br>
<br>
and then rename you combobox to &quot;ActiveDimension&quot; in qt designer.<br>
<br>
That&#39;s should be enough to do what you are looking for.<br>
<br>
If you want to fill dynamically your combobox depending on some inputs, it&#39;s harder than that but can be done.<br>
<br>
for you first question, you can always use immediate_update=1 instead of information_only to make sure that your value is pushed immediately to the server.<br>
<br>
Nehme<br>
<br>
<br>
<br>
<br>
2009/12/11 Michael Jackson &lt;<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>&gt;<br>
Well,<br>
 That helped. At least something is getting set on the server side now. Copy-Paste error. Doh. Alas, the value getting set is not the correct value.<br>
<br>
_________________________________________________________<br>
Mike Jackson                  <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software                    <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer                  Dayton, Ohio<br>
<br>
On Dec 11, 2009, at 5:15 PM, Utkarsh Ayachit wrote:<br>
<br>
Why do you have the &quot;information_only&quot; attribute ? That&#39;s used only<br>
for properties whose value are obtained from the server -side and are<br>
never pushed &quot;to&quot;  the server. Simply remove that attribute, and it<br>
should work -- I think.<br>
<br>
Utkarsh<br>
<br>
On Fri, Dec 11, 2009 at 5:12 PM, Michael Jackson<br>
&lt;<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>&gt; wrote:<br>
Yes, I did not know about that, but adding it still did not help.<br>
<br>
--<br>
Mike Jackson &lt;<a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a>&gt;<br>
<br>
On Dec 11, 2009, at 5:02 PM, Utkarsh Ayachit wrote:<br>
<br>
Are you forgetting a this-&gt;proxy()-&gt;UpdateVTKObjects() call after you<br>
have changed the value?<br>
<br>
Utkarsh<br>
<br>
On Fri, Dec 11, 2009 at 4:23 PM, Michael Jackson<br>
&lt;<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>&gt; wrote:<br>
<br>
In my ServerManager XML file I have the following:<br>
<br>
 &lt;IntVectorProperty<br>
  name=&quot;ActiveDimension&quot;<br>
  command=&quot;SetActiveDimension&quot;<br>
  number_of_elements=&quot;1&quot;<br>
  default_values=&quot;0&quot;<br>
  information_only=&quot;1&quot;&gt;<br>
 &lt;/IntVectorProperty&gt;<br>
<br>
And in my Client GUI code (which extends pqLoadedFormObjectPanel) I have<br>
the<br>
following code:<br>
 vtkSMProperty* smProperty =<br>
this-&gt;proxy()-&gt;GetProperty(&quot;ActiveDimension&quot;);<br>
 if (NULL == smProperty)<br>
 {<br>
 DebugTrace(&lt;&lt; &quot;SMProperty was NULL for &#39;ActiveDimension&#39;&quot; );<br>
 }<br>
 vtkSMIntVectorProperty* activeDimProperty =<br>
vtkSMIntVectorProperty::SafeDownCast(smProperty);<br>
 activeDimProperty-&gt;SetElement(0, index);<br>
<br>
Doing a std::cout on the server side indicates that the Server side<br>
property<br>
(ActiveDimension) is NOT getting set. What exactly am I doing wrong?<br>
<br>
 I would also like to have a QComboBox in the Gui that is hooked up to a<br>
server side property. What is the best way to go about that?<br>
<br>
Thanks<br>
_________________________________________________________<br>
Mike Jackson                  <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
<br>
<br>
</blockquote>
<br></div></div><div><div></div><div class="h5">
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">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" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br></div></div>