<font size="2"><font face="verdana,sans-serif">I really cannot answer that because I do not like the filter pipeline approach and I don&#39;t use it extensively - I mostly use it to produce their output which I then keep in memory and use it as needed.<br>

</font></font><br><div class="gmail_quote">2011/8/24 Florian Bruckner <span dir="ltr">&lt;<a href="mailto:e0425375@gmail.com">e0425375@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

ah, ok! a (hopefully) last question: i just implemented the first<br>
prototype of my application and i was facing the following problem: How<br>
can i add/remove a filter in the middle of a pipeline?<br>
<br>
i first create a pipeline which draws my geometry as well as some<br>
glyphs, ... But then there should be a switch which allows to apply a<br>
clipping filter. I know the object that the filter should act on. But i<br>
do not know which other objects have been connected to the original<br>
one.<br>
<br>
is there a method to find in a general way, what parts are connected to<br>
a given vtkAlgorithm? or do i have to do the bookkeeping on my own?<br>
<br>
greetings<br>
<font color="#888888">Florian<br>
</font><div><div></div><div class="h5"><br>
<br>
On Wed, <a href="tel:2011-08-24" value="+4920110824">2011-08-24</a> at 12:17 +0200, Dženan Zukić wrote:<br>
&gt; Hundred independent actors is quite normal, the performance problems<br>
&gt; start occurring with many thousands of actors.<br>
&gt;<br>
&gt;<br>
&gt; You don&#39;t have to remove actors, you can turn off  their visibility<br>
&gt;<br>
&gt; actor-&gt;SetVisibility(0);<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Aug 24, 2011 at 04:04, Florian Bruckner &lt;<a href="mailto:e0425375@gmail.com">e0425375@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;         ok, but can you tell which one of the 2 designs is more<br>
&gt;         efficient for<br>
&gt;         some cases:<br>
&gt;<br>
&gt;         In my case i have multiple files that should be displayed at<br>
&gt;         once (say<br>
&gt;         max. 16. If I have time-series then there will always be<br>
&gt;         max.16 files<br>
&gt;         at a time). These files contain an unstructured grid as well<br>
&gt;         as some<br>
&gt;         vector / scalar data. Mainly I want to be able to display the<br>
&gt;         grid and<br>
&gt;         then toggle the vectordata (glyph) on and off. The scalar data<br>
&gt;         should<br>
&gt;         only change the color. So my intention was to create one<br>
&gt;         mapper/actor<br>
&gt;         for the structure and one mapper/actor for the glyph per file.<br>
&gt;         Switching glyph on and off is then done by simple adding /<br>
&gt;         removing<br>
&gt;         the mapper to the proper renderer (there could be more than<br>
&gt;         one if<br>
&gt;         some files should be displayed next to each other). so this<br>
&gt;         approximately would give 2*16 actors which are active at a<br>
&gt;         time. do<br>
&gt;         you think this could be a performance problem?<br>
&gt;<br>
&gt;         if i would use this combine-filter i cannot control the color<br>
&gt;         settings<br>
&gt;         of structure and glyph seperately, right? because then this<br>
&gt;         method is<br>
&gt;         no option for me. E.g. I would like display the geometry with<br>
&gt;         opacity<br>
&gt;         and gray color if the glyph is switched on.<br>
&gt;<br>
&gt;         thanks Alex for your fast reply<br>
&gt;         FloB<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         On Wed, Aug 24, 2011 at 1:43 AM, Alex Malyushytskyy<br>
&gt;         &lt;<a href="mailto:alexmalvtk@gmail.com">alexmalvtk@gmail.com</a>&gt; wrote:<br>
&gt;         &gt; First, there are a multiple ways you can do things in vtk.<br>
&gt;         &gt;<br>
&gt;         &gt; Using multiple actors make sense only if you need an ability<br>
&gt;         easy<br>
&gt;         &gt; separate object from other objects and might be not<br>
&gt;         efficient<br>
&gt;         &gt; if you have large number of objects ( if your data has more<br>
&gt;         than few<br>
&gt;         &gt; hundred objects (pieces/files,) I will avoid using one actor<br>
&gt;         per<br>
&gt;         &gt; object.<br>
&gt;         &gt;<br>
&gt;         &gt; You also probably don&#39;t need multiple renderers.<br>
&gt;         &gt;<br>
&gt;         &gt; In my practice mostly often I used 2 designs:<br>
&gt;         &gt;<br>
&gt;         &gt; 1.  per file: Reader -&gt; filter -&gt; actor<br>
&gt;         &gt; One window and one renderer per application<br>
&gt;         &gt;<br>
&gt;         &gt; 2  per file: Reader -&gt; filter -&gt;<br>
&gt;         &gt;<br>
&gt;         &gt; every filter(s) output goes to combining filter as an input<br>
&gt;         (for<br>
&gt;         &gt; example vtkAppendPolyData)<br>
&gt;         &gt;<br>
&gt;         &gt; combining filter-&gt; actor -&gt;<br>
&gt;         &gt; still one  window and one renderer per application<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt; On Tue, Aug 23, 2011 at 3:26 AM, Florian Bruckner<br>
&gt;         &lt;<a href="mailto:e0425375@gmail.com">e0425375@gmail.com</a>&gt; wrote:<br>
&gt;         &gt;&gt; hi, i&#39;m new to vtk and i have a few design questions. I<br>
&gt;         want to write a<br>
&gt;         &gt;&gt; simple visualization tool for our data. It should support<br>
&gt;         multiple input<br>
&gt;         &gt;&gt; files and different filters for each input file. Each<br>
&gt;         filter then needs<br>
&gt;         &gt;&gt; a mapper and an actor, if I understand that correctly. All<br>
&gt;         those things<br>
&gt;         &gt;&gt; should be put into an new class asdf_input.<br>
&gt;         &gt;&gt;<br>
&gt;         &gt;&gt; Finally there is an renderer window where the data should<br>
&gt;         be displayed.<br>
&gt;         &gt;&gt; So I would add the proper actors from the asdf_input object<br>
&gt;         and add them<br>
&gt;         &gt;&gt; to multiple renderers. Then these multiple renderers are<br>
&gt;         added to the<br>
&gt;         &gt;&gt; renderer window. All these things are put into another<br>
&gt;         class<br>
&gt;         &gt;&gt; asdf_output.<br>
&gt;         &gt;&gt;<br>
&gt;         &gt;&gt; So this is the first plan. But after looking over the vtk<br>
&gt;         class<br>
&gt;         &gt;&gt; reference i found vtkView, vtkDataRepresentation, ... and i<br>
&gt;         was<br>
&gt;         &gt;&gt; wondering whether there is already something very similar<br>
&gt;         available.<br>
&gt;         &gt;&gt;<br>
&gt;         &gt;&gt; So my question is whether there is already some top-level<br>
&gt;         class<br>
&gt;         &gt;&gt; available, which allows to simplify the handling of<br>
&gt;         multiple<br>
&gt;         &gt;&gt; input/filters/renderers.<br>
&gt;         &gt;&gt;<br>
&gt;         &gt;&gt; greetings<br>
&gt;         &gt;&gt; Florian<br>
&gt;         &gt;&gt;<br>
&gt;         &gt;&gt;<br>
&gt;         &gt;&gt; _______________________________________________<br>
&gt;         &gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;         &gt;&gt;<br>
&gt;         &gt;&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;         &gt;&gt;<br>
&gt;         &gt;&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;         &gt;&gt;<br>
&gt;         &gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;         &gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;         &gt;&gt;<br>
&gt;         &gt; _______________________________________________<br>
&gt;         &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;         &gt;<br>
&gt;         &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;         &gt;<br>
&gt;         &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;         &gt;<br>
&gt;         &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;         &gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;         &gt;<br>
&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>
&gt;<br>
&gt;<br>
<br>
<br>
</div></div></blockquote></div><br>