<div dir="ltr"><div>Thank you for the explanations. I'll try and see which solution works for me.<br><br></div>Mario<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-12-05 21:57 GMT+01:00 David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>The immediate_update flag that you can set in XML doesn't quite do what you want and it seems like it may be deprecated soon.<br><br></div>Internally vtkSMProxy::UpdateProperty takes an optional force flag, but I don't see that exposed anywhere public that won't involve writing some paraview SM code to use it.<br><br></div>What you might do is add a pure vtkProperty (not vtk*vector property) that calls some method on your class. Those take no arguments so they always execute on the server when asked for by the client.<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><div class="gmail_extra"><span class="HOEnZb"><font color="#888888"><br clear="all"><div><div class="m_9094087008326586046gmail_signature" data-smartmail="gmail_signature">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:(518)%20881-4909" value="+15188814909" target="_blank">518-881-4909</a></div></div></font></span><div><div class="h5">
<br><div class="gmail_quote">On Mon, Dec 5, 2016 at 3:39 PM, Mario Schreiber <span dir="ltr"><<a href="mailto:schreibermario40@gmail.com" target="_blank">schreibermario40@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"><div><div><div>Thank you, that works.<br></div>However, I have modified the method SetMyProperty, so that it performs some additional logic. Now, the problem is, that I need SetMyProperty to be called even when setting the same value again. ParaView caches the property, so that SetMyProperty is only executed when the argument is different from a previous call. Is it possible to change a flag or something to force the remote procedure call even if the argument is the same?<br><br></div>Thanks<span class="m_9094087008326586046HOEnZb"><font color="#888888"><br></font></span></div><span class="m_9094087008326586046HOEnZb"><font color="#888888">Mario<br><br></font></span></div><div class="m_9094087008326586046HOEnZb"><div class="m_9094087008326586046h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-12-05 15:26 GMT+01:00 David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Try adding a Property element to the xml.<br><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 3, 2016 at 12:09 PM, Mario Schreiber <span dir="ltr"><<a href="mailto:schreibermario40@gmail.com" target="_blank">schreibermario40@gmail.com</a>></span> wrote:<br><div dir="ltr"><br>...</div><span><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div dir="ltr">class vtkMyObject : public vtkObject<br>{<br> public:<br></div></blockquote></span><div>... <br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div dir="ltr"><br> vtkGetMacro(MyProperty,double)<wbr>;<br> vtkSetMacro(MyProperty,double)<wbr>;<br><br></div></blockquote><div><br></div><div dir="ltr">To make that callable by ParaView:<span><br><br>4. MyConfig.xml:<br><ServerManagerConfiguration><br> <ProxyGroup name="my"><br> <Proxy name="MyObject" class="vtkMyObject"<br>label="MyObject"><br></span></div><div><br> <DoubleVectorProperty command="SetMyProperty"<br> default_values="0"<br> name="MyProperty"<br> number_of_elements="1"<br> panel_visibility="default"><br> <Documentation>Set MyProperty</Documentation><br></DoubleVectorProperty><br></div> <br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div dir="ltr"> </Proxy><br> </ProxyGroup><br></ServerManagerConfiguration><br><br></div></blockquote><div><br>... <br></div></div><br></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>