<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi,</div><div><br></div><div>If I understand correctly, you are trying to easily retrieve a vtkActor instance based on some key.</div><div>I usually use a map where the key is a unique ID, and the value the actual vtkActor.&nbsp;</div><div>That way I can retrieve quickly the actor associated with a key. However, this has the inconvenient</div><div>of maintaining that map to make sure you remove actors which are deleted, and add newly created</div><div>actors.&nbsp;</div><div><br></div><div>Hope this helps,</div><div><br></div><div>Mathieu</div><div><br></div><div><div>____________________&nbsp;<br>Mathieu Coursolle, M.Ing.<span class="Apple-tab-span" style="white-space: pre; ">                </span><br>Rogue Research Inc. &nbsp; &nbsp; &nbsp; &nbsp;</div><div><a href="http://www.rogue-research.com/">www.rogue-research.com</a></div></div><br><div><div>On 6-Mar-09, at 11:02 AM, John Eke wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div bgcolor="#ffffff" text="#000000"> <font size="-1"><font face="Verdana">What I am trying to do is add a string Id as a private member to a vtkImageActor. I have a scenario where I am inserting multiple vtkImageActors into a renderer... and I want to selectively enable and disable them. The only way I can forsee doing that is if each image actor had an ID. That way I can iterate through the actors, find the one with the ID I am looking for, then enable it.<br> <br> Is there a better way to do this? If not how can I add the ID field to an image actor?<br> <br> I hope this clears things up<br> <br> - John<br> </font></font><br> Mathieu Malaterre wrote: <blockquote cite="mid:bf0c3b3f0903060747wb1720dfv8e34df7ca4e93d11@mail.gmail.com" type="cite">  <pre wrap="">On Fri, Mar 6, 2009 at 4:39 PM, John Eke <a class="moz-txt-link-rfc2396E" href="mailto:johne@annidis.com">&lt;johne@annidis.com></a> wrote:
  </pre>  <blockquote type="cite">    <pre wrap="">Hi Guys,

Whats the easiest way to get a vtkImageActor with an ID field? I tried
inheritance, didn't work (maybe I didn't do it right). I tried creating a
replica of vtkImageActor, and renaming it to something else. But with this,
the New() method returns NULL
    </pre>  </blockquote>  <pre wrap=""><!---->I did not quite followed what you are trying to do, but you understand
that vtkImageActor::New() returns a vtkOpenGLImageActor ?

2cts
  </pre> </blockquote> <br> <pre class="moz-signature" cols="72">-- 
INFORMAL COMMUNICATION - The statements within this email and attachments if any, may be founded on partial knowledge, incorrect information, or incomplete understanding of the issues and should not be accorded the probity or status of a formal evidentiary deposition.

 

CONFIDENTIALITY STATEMENT - This e-mail and  attachments if any, may contain confidential or privileged information. If you are not the intended recipient, please delete it, notify me immediately by reply e-mail, and be advised that you are not permitted to read, use, disclose, copy, or distribute it or its contents.
</pre> </div>  _______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">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">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">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div><br></div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br></body></html>