Go for it. That's a nightmare waiting to happen unless I'm totally missing the boat on something...<br><br>Modified should only be called if something *actually was modified*.<br><br><br>Thanks,<br>David<br><br><br>
<div class="gmail_quote">On Thu, Jul 10, 2008 at 5:40 PM, Moreland, Kenneth <<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have discovered that just about every time you call vtkInformation::Set, the vtkInformation object is Modified even when the actual value of the key stays the same. That should not be the case, should it? All of the vtkSet* macros avoid calling Modified if the value does not really change. The problem is that I see in ParaView there are several instances of observes attached to information objects designed to push updated values from client to server.<br>
<br>
Does anyone object to me changing the vtkInformation*Key::Set methods to suppress calling Modified when the value remains the same?<br>
<br>
-Ken<br>
<br>
**** Kenneth Moreland<br>
*** Sandia National Laboratories<br>
***********<br>
*** *** *** email: <a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a><br>
** *** ** phone: (505) 844-8919<br>
*** fax: (505) 845-0833<br>
<br>
<br>
_______________________________________________<br>
vtk-developers mailing list<br>
<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
</blockquote></div><br>