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"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You shouldn'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 "input" 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've called SetInputData/SetInputConnection<br>
to assign) then you can override the algorithm's GetMTime to take that<br>
object'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&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 <<a href="mailto:neollie@gmail.com">neollie@gmail.com</a>> wrote:<br>
> Hi all,<br>
> how can be detected change or update of input vtkPolyData inside<br>
> vtkPolyDataAlgorithm ?<br>
> In RequestData storing the pointer and comparing it with incoming pointer ?<br>
> (but what if pointer stays but input changed its properties or topologies<br>
> or s.t else)<br>
><br>
> Jana<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" 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" target="_blank">http://www.kitware.com/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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
</blockquote></div><br></div>