<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br></div>
Again, this only works for leaf classes. It doesn&#39;t have any machinery for matching an intermediate class. Leaf classes are the most common case, so this will work in most cases.<br>
<br>
But suppose you wanted to find all 2D actors. For that you&#39;d need a dynamic_cast.<div><div></div><div class="h5"></div></div></blockquote></div><br><div>Here are 4 methods that all work in this case:</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/DetermineActorType">http://www.vtk.org/Wiki/VTK/Examples/DetermineActorType</a></div>
<div><br></div><div>Ken - if you want to change it / add a case where nothing but the dynamic_cast works, please feel free.</div><div><br clear="all">Thanks,<br><br>David</div>