Hi guys,<div><br></div><div>I'm back from vacation, and by reading your comments it seems to be related on how the widgets are managed across several view and when active view change...</div><div><br></div><div>I'll check with Utkarsh what can be done about it.</div>
<div><br></div><div>Seb<br><br><div class="gmail_quote">On Thu, Aug 30, 2012 at 7:39 AM, Nenad Vujicic <span dir="ltr"><<a href="mailto:nenadus@gmail.com" target="_blank">nenadus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Utkarsh,<br>
<br>
Thank You very much for Your help. I hope Sebastien will have some idea.<br>
<br>
Btw, in a meantime, I discovered one interesting detail. If I set<br>
pipeline source (with widget) as currently active source<br>
(SetActiveSource(...) in pvpython) before I execute code I mentioned<br>
in first message (btw, it should be my_source.SMProxy.InvokeEvent() x<br>
2, instead of active_objects.source.SMProxy.InvokeEvent() x 2 in first<br>
message), everything will work OK. Of course, all this happens after I<br>
switch between different views. Looks like there are some resetting in<br>
pipeline when user switches between views.<br>
<br>
Best regards,<br>
Nenad.<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Aug 29, 2012 at 3:40 PM, Utkarsh Ayachit<br>
<<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>> wrote:<br>
> Sebastien may have some insight here since they do something similar<br>
> for the WebGL exporter. He's on vacation this week, but I can ping him<br>
> once he gets back.<br>
><br>
> Utkarsh<br>
><br>
> On Tue, Aug 28, 2012 at 6:33 PM, Nenad Vujicic <<a href="mailto:nenadus@gmail.com">nenadus@gmail.com</a>> wrote:<br>
>> Dear Utkarsh,<br>
>><br>
>> Thank You very much for Your response.<br>
>><br>
>> It checks actor's visibility at vtkVRMLExporter.cxx Ln 262, but actors<br>
>> are visible because of some reasons. I'm sorry, looks like the problem<br>
>> is much deeper. I tried even by playing from pvpython by executing:<br>
>><br>
>> active_objects.source.SMProxy.InvokeEvent('UserEvent', 'ShowWidget')<br>
>> active_objects.source.SMProxy.InvokeEvent('UserEvent', 'HideWidget')<br>
>><br>
>> but it didn't work. I also experimented by counting number of actors<br>
>> in interactive renderer object. After switching between views, it<br>
>> contains ~13 actors, while after manually turning on and off widget's<br>
>> visibility in Display panel it has ~9 (in this state exporter exports<br>
>> correct scene - without 3d widgets). So, only way to "refresh" data in<br>
>> current view is to manually turn ON and after it to turn OFF check box<br>
>> on Display panel, which controls widget's visibility.<br>
>><br>
>> Btw, I have much more sophisticated exporter plugin and in which I<br>
>> have the same problem. It works in similar way as VRMLExporter, so I<br>
>> reported this with VRMLExporter test-case.<br>
>><br>
>> Thanks,<br>
>> Nenad.<br>
>><br>
>><br>
>> On Wed, Aug 29, 2012 at 12:08 AM, Utkarsh Ayachit<br>
>> <<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>> wrote:<br>
>>> Nenad,<br>
>>><br>
>>> vtkVRMLExporter will be the starting point where I'd start digging in.<br>
>>> I am guessing somewhere where it iterates over all actors it's not<br>
>>> checking for visibility of 3D widgets or something.<br>
>>><br>
>>> On Tue, Aug 28, 2012 at 5:45 PM, Nenad Vujicic <<a href="mailto:nenadus@gmail.com">nenadus@gmail.com</a>> wrote:<br>
>>>> Hello everyone!<br>
>>>><br>
>>>> I have problems with visibility of 3D widgets when I have several<br>
>>>> views opened in one ParaView Qt client and I switch between them. I<br>
>>>> experience this behavior on both Windows and Linux. Here is how to<br>
>>>> reproduce it:<br>
>>>><br>
>>>> 0) Start ParaView Qt client,<br>
>>>> 1) Create Sphere source and press Apply button,<br>
>>>> 2) Create Slice filter, turn off Show Plane option and press Apply button,<br>
>>>> 3) Create new layout item by pushing '+' and select Spreadsheet View,<br>
>>>> 4) Go on Render View by pressing Layout 1 item,<br>
>>>> 5) Export 3D scene from currently active render view to VRML file<br>
>>>> (File->Export),<br>
>>>> 6) Reopen ParaView Qt client and load previously exported VRML file.<br>
>>>><br>
>>>> Looks like VRML exporter exports 3D widget's geometry and topology<br>
>>>> too, although its turned off. This also occurs with other sources /<br>
>>>> filters with 3D widgets (PointSource, Clip, etc.).<br>
>>>><br>
>>>> Can someone suggest how I could fix this bug, by changing exporter's<br>
>>>> or ParaView's sources, or at least approximate place in sources where<br>
>>>> I could take a look for a bug?<br>
>>>><br>
>>>> Thanks,<br>
>>>> Nenad.<br>
>>>> _______________________________________________<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>
>> _______________________________________________<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>
_______________________________________________<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>