<div class="gmail_quote">On Wed, Nov 3, 2010 at 3:36 AM, Rockydut <span dir="ltr">&lt;<a href="mailto:Rockydut@gmail.com">Rockydut@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;">
<br>
Assume there are many renders in the m_pRenderWindow (which is a type of<br>
vtkWin32OpenGLRenderWindow). And the order of these renders is uncertainty.<br>
For example, we name these renders render1, render2, render3......, the<br>
order in pRenderWindow  maybe render2, render1, render3, also maybe render1,<br>
render3, render2...<br>
So, How can I get a certain render. I know there is a method named<br>
GetFirstRender and GetNextRenderWindow in vtkRenderWindowCollection,<br>
However, I&#39;m not sure which render getting from GetNextRenderWindow is what<br>
I want.<br>
The same for the vtkActor. I can travel all the actor from<br>
vtkActorCollection::GetNextActor. However, I&#39;m not sure which actor is what<br>
I want.<br></blockquote><div><br></div>You should (must) know the address of the renderer you are looking for. When you are going through the list with GetNextActor (which returns an address), you can simply compare it to the address you are looking for:</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">if(renderer-&gt;GetNextActor() == queryActor)</div><div class="gmail_quote"><br><div>David </div></div>