<div dir="ltr">If you haven't already try adding a <div><br></div><div><div>  this->SMView->StillRender();</div></div><div><br></div><div>after you make your change.  If that doesn't work let me know. I think I have a newer way of doing it on a local build.</div><div><br></div><div>Thanks!</div><div>Ken</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 20, 2018 at 10:08 AM, Jan Schutte <span dir="ltr"><<a href="mailto:jan.o.schutte@gmail.com" target="_blank">jan.o.schutte@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I've been working on an extensions to the OpenVR plugin that allows users to edit pipeline properties from inside VR.</div><div>I'm able to read what properties filters and sources have, and I'm able to set these propterties but I haven't been able to</div><div>update the pipeline and show the changes in the VR renderer.</div><div><br></div><div>Here is an example from my code for setting a boolean value:</div><div><br></div><div><div><span style="white-space:pre-wrap">     </span>vtkSMIntVectorProperty* ivp = vtkSMIntVectorProperty::<wbr>SafeDownCast(this->property);</div><div><span style="white-space:pre-wrap">        </span>int value = ivp->GetElement(0);</div><div><span style="white-space:pre-wrap">       </span>if (value) {</div><div><span style="white-space:pre-wrap">             </span>ivp->SetElement(0, 0);</div><div><span style="white-space:pre-wrap">        </span>}</div><div><span style="white-space:pre-wrap">        </span>else {</div><div><span style="white-space:pre-wrap">           </span>ivp->SetElement(0, 1);</div><div><span style="white-space:pre-wrap">        </span>}</div><div><div><span style="white-space:pre-wrap"><br class="m_7963216780016048388inbox-inbox-Apple-interchange-newline">      </span>this->property->Modified(); // Does not work</div><div><span style="white-space:pre-wrap">       </span>this->proxy->UpdateVTKObjects(<wbr>); // Does not work</div></div><div><br></div><div>As a test I try to set the <i>flip</i> property of a <i>clip</i> filter, I can see the checkmark changing in the GUI, but the change is</div><div>not applied to the renderer and the apply button stay's inactive.</div><div><br></div><div>What steps do I need to take in order to update the whole pipeline (similar to clicking apply in the desktop gui) apart from</div><div>what I'm doing now?</div><div><br></div><div>Regards,</div><div><br></div><div>Jan Schutte</div><div><br></div></div></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">https://public.kitware.com/<wbr>mailman/listinfo/paraview-<wbr>developers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Ken Martin PhD<div>Distinguished Engineer<br><span style="font-size:12.8px">Kitware Inc.</span><br></div><div>101 East Weaver Street<br>Carrboro, North Carolina<br>
27510 USA<br><br><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee.  Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message. 
Thank you.</span></div></div></div></div></div></div></div>
</div>