<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,<br>
</p>
<p><br>
</p>
<p>thank you for your answer, the file reader in deed reexecutes at each time step. Note that this way the render and pipeline update calls are not synchronized: render can be called more often, but for many applications you can consider this as "close enough".
The actual problem with this solution is more that you "use up" the animation mechanism, which you might also need for its actual purpose: to play animations. Anyway, it's useful to know how it works.<br>
</p>
<p><br>
</p>
<p>Kind regards:<br>
</p>
<p><br>
</p>
<p>Tamás Szép<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Mathieu Westphal <mathieu.westphal@kitware.com><br>
<b>Gesendet:</b> Freitag, 20. Mai 2016 17:17<br>
<b>An:</b> Szép, Tamás (IVD)<br>
<b>Cc:</b> paraview-developers@paraview.org<br>
<b>Betreff:</b> Re: [Paraview-developers] C++ Plugin</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>Hello<br>
<br>
</div>
Only the pipeline can request an execution of a filter or in your case an input reader.<br>
</div>
What i would do in your situation would be a trick with animation.<br>
<br>
</div>
Your reader could inform the pipeline it has two timesteps, and this way, when the pepile execute the animation in a loop, your reader would be always reexecuted, allowing you to reload any available new data.<br>
<br>
</div>
Regards,<br>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail_signature">
<div dir="ltr">Mathieu Westphal<br>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Fri, May 20, 2016 at 4:53 PM, Szép, Tamás (IVD) <span dir="ltr">
<<a href="mailto:tamas.szep@kit.edu" target="_blank">tamas.szep@kit.edu</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" style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<div>Hi,</div>
<div><br>
</div>
<div>could somebody help me on how to implement a filter with C++ in Paraview, which is capable of reacting on external events by invalidating itself, so that next time when a frame is rendered, the filter (and the dependent pipeline parts if any) get(s) reexecuted.
I mainly need it for view-dependent filtering, but you can also consider an input reader that reexecutes when the file is changed as an example.<br>
</div>
<div><br>
</div>
<div>Thank you for the answers in advance. Kind regards:</div>
<div><br>
</div>
<div>Tamás Szép<br>
</div>
<p><br>
</p>
</div>
<br>
_______________________________________________<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 <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</body>
</html>