<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jun 2, 2014 at 7:36 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="">On Mon, Jun 2, 2014 at 5:24 AM, Mark Hervagault <span dir="ltr"><<a href="mailto:mark.hervagault@gmail.com" target="_blank">mark.hervagault@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
<br>
I'm stuck for some time. I try to select my vtkActor (or my<br>
vtkPolyDataMapper). I want to see my object in a different color or the<br>
color of the wallpaper changes when I select my object.<br>
<br>
Help me please! Thank you.<br></blockquote></div></div></div></div><blockquote>
</blockquote></blockquote></div>Mark,<br><br>Questions like this are more appropriate for the vtkusers mailing list (I have changed the list in CC).<br><br>In VTK you would do something like this in an InteractorStyle. In this example:<br>

<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/SelectAnActor">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/SelectAnActor</a> <br><br>you can see that in the OnLeftButtonDown() function of the InteractorStyle, we check the InteractionProp object against some objects that we have told the InteractorStyle about, and if it matches, we know we have selected the object of interest. At that point, you can do whatever you want (change it's color, change the background color, etc.).<br>

<br>Good luck,<br><br>David<br></div></div>