<div dir="ltr"><div><div>I tried to use <br>AddObserver(vtkCommand::<wbr>ModifiedEvent, ...) <br><br></div>but when I add a value into the vtkDataArray the observer doesn't work, I have to explicit call the method Modified(), there is another way to do data? I just want to call a function after the vtkDataArray is modified like when I insert a value or remove it.<br><br></div>Thanks in advance.<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 24, 2017 at 5:14 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Use<br>
<br>
AddObserver(vtkCommand::<wbr>ModifiedEvent<br>
<div><div class="h5"><br>
On Tue, Oct 24, 2017 at 11:54 AM, Marcelo Duarte Trevisani<br>
<<a href="mailto:marceloduartetrevisani@gmail.com">marceloduartetrevisani@gmail.<wbr>com</a>> wrote:<br>
> Hello folks,<br>
><br>
> I was just wondering if there is a way to set an observer for a<br>
> vtkDataArray. I want to set a observer for a vtkDoubleArray (for example)<br>
> and when the object change it will call a function in python. Does anyone<br>
> know a way to do this?<br>
><br>
> --<br>
> Marcelo Duarte Trevisani<br>
><br>
> "Success is walking from failure to failure with no loss of enthusiasm."<br>
> Winston Churchill<br>
><br>
</div></div>> ______________________________<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<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Marcelo Duarte Trevisani</div><div dir="ltr"><br></div><div>"Success is walking from failure to failure with no loss of enthusiasm."</div><div>Winston Churchill</div></div></div></div></div></div></div></div>
</div></div>