<font size="2"><font face="verdana,sans-serif">Hundred independent actors is quite normal, the performance problems start occurring with many thousands of actors.<br></font></font><div><font class="Apple-style-span" face="verdana, sans-serif"><br>

</font></div><div><font class="Apple-style-span" face="verdana, sans-serif">You don&#39;t have to remove actors, you can turn off  their visibility<br></font></div><div><div class="gmail_quote">actor-&gt;SetVisibility(0);</div>

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

ok, but can you tell which one of the 2 designs is more efficient for<br>
some cases:<br>
<br>
In my case i have multiple files that should be displayed at once (say<br>
max. 16. If I have time-series then there will always be max.16 files<br>
at a time). These files contain an unstructured grid as well as some<br>
vector / scalar data. Mainly I want to be able to display the grid and<br>
then toggle the vectordata (glyph) on and off. The scalar data should<br>
only change the color. So my intention was to create one mapper/actor<br>
for the structure and one mapper/actor for the glyph per file.<br>
Switching glyph on and off is then done by simple adding / removing<br>
the mapper to the proper renderer (there could be more than one if<br>
some files should be displayed next to each other). so this<br>
approximately would give 2*16 actors which are active at a time. do<br>
you think this could be a performance problem?<br>
<br>
if i would use this combine-filter i cannot control the color settings<br>
of structure and glyph seperately, right? because then this method is<br>
no option for me. E.g. I would like display the geometry with opacity<br>
and gray color if the glyph is switched on.<br>
<br>
thanks Alex for your fast reply<br>
FloB<br>
<div><div></div><div class="h5"><br>
<br>
On Wed, Aug 24, 2011 at 1:43 AM, Alex Malyushytskyy<br>
&lt;<a href="mailto:alexmalvtk@gmail.com">alexmalvtk@gmail.com</a>&gt; wrote:<br>
&gt; First, there are a multiple ways you can do things in vtk.<br>
&gt;<br>
&gt; Using multiple actors make sense only if you need an ability easy<br>
&gt; separate object from other objects and might be not efficient<br>
&gt; if you have large number of objects ( if your data has more than few<br>
&gt; hundred objects (pieces/files,) I will avoid using one actor per<br>
&gt; object.<br>
&gt;<br>
&gt; You also probably don&#39;t need multiple renderers.<br>
&gt;<br>
&gt; In my practice mostly often I used 2 designs:<br>
&gt;<br>
&gt; 1.  per file: Reader -&gt; filter -&gt; actor<br>
&gt; One window and one renderer per application<br>
&gt;<br>
&gt; 2  per file: Reader -&gt; filter -&gt;<br>
&gt;<br>
&gt; every filter(s) output goes to combining filter as an input (for<br>
&gt; example vtkAppendPolyData)<br>
&gt;<br>
&gt; combining filter-&gt; actor -&gt;<br>
&gt; still one  window and one renderer per application<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Aug 23, 2011 at 3:26 AM, Florian Bruckner &lt;<a href="mailto:e0425375@gmail.com">e0425375@gmail.com</a>&gt; wrote:<br>
&gt;&gt; hi, i&#39;m new to vtk and i have a few design questions. I want to write a<br>
&gt;&gt; simple visualization tool for our data. It should support multiple input<br>
&gt;&gt; files and different filters for each input file. Each filter then needs<br>
&gt;&gt; a mapper and an actor, if I understand that correctly. All those things<br>
&gt;&gt; should be put into an new class asdf_input.<br>
&gt;&gt;<br>
&gt;&gt; Finally there is an renderer window where the data should be displayed.<br>
&gt;&gt; So I would add the proper actors from the asdf_input object and add them<br>
&gt;&gt; to multiple renderers. Then these multiple renderers are added to the<br>
&gt;&gt; renderer window. All these things are put into another class<br>
&gt;&gt; asdf_output.<br>
&gt;&gt;<br>
&gt;&gt; So this is the first plan. But after looking over the vtk class<br>
&gt;&gt; reference i found vtkView, vtkDataRepresentation, ... and i was<br>
&gt;&gt; wondering whether there is already something very similar available.<br>
&gt;&gt;<br>
&gt;&gt; So my question is whether there is already some top-level class<br>
&gt;&gt; available, which allows to simplify the handling of multiple<br>
&gt;&gt; input/filters/renderers.<br>
&gt;&gt;<br>
&gt;&gt; greetings<br>
&gt;&gt; Florian<br>
&gt;&gt;<br>
&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 <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: <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 <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: <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>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <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: <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>
</div></div></blockquote></div><br></div>