Thank you very much for your response, <div>I will think about it. </div><div><br><div class="gmail_quote">On 23 July 2012 16:24, David E DeMarle <span dir="ltr">&lt;<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You shouldn&#39;t have to. The vtkDemandDrivenPipeline executive makes<br>
sure that RequestData is _only_ called when the input changes or the<br>
parameters of the algorithm itself changes. See<br>
vtkDemandDrivenPipeline::NeedToExecuteData for how the various MTimes<br>
are calculated and used to do that.<br>
<br>
If the &quot;input&quot; is not a standard pipeline input (say a pointer to<br>
something that you manage rather than an upstream data object or<br>
algorithms output that you&#39;ve called SetInputData/SetInputConnection<br>
to assign) then you can override the algorithm&#39;s GetMTime to take that<br>
object&#39;s mtime into account too when the algorithm is check in<br>
NeedToExecuteData. See vtkClipPolyData an example.<br>
<br>
David E DeMarle<br>
Kitware, Inc.<br>
R&amp;D Engineer<br>
21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: <a href="tel:518-881-4909" value="+15188814909">518-881-4909</a><br>
<div><div class="h5"><br>
<br>
On Sat, Jul 21, 2012 at 8:39 PM, Jana Sefcikova &lt;<a href="mailto:neollie@gmail.com">neollie@gmail.com</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt; how can be detected change or update of input vtkPolyData inside<br>
&gt; vtkPolyDataAlgorithm ?<br>
&gt; In RequestData storing the pointer and comparing it with incoming pointer ?<br>
&gt; (but what if pointer stays but input changed its properties or topologies<br>
&gt; or s.t else)<br>
&gt;<br>
&gt; Jana<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
</blockquote></div><br></div>