On Mon, Mar 7, 2011 at 8:32 AM, Steffen Oeltze <span dir="ltr">&lt;<a href="mailto:stoeltze@isg.cs.uni-magdeburg.de">stoeltze@isg.cs.uni-magdeburg.de</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear VTK users,<br>
<br>
I am using a VTKGraphLayoutView to display a graph. The user may select individual vertices and other linked views shall be updated accordingly. Now, I would like to offer different kinds of selections, e.g., &quot;Include this vertex&quot;, &quot;Do not include this vertex&quot;,..., and colorize the vertex according to the selection type. I set up a point lookup table and change its values accordingly. Although this works in principle, the color of a currently selected vertex gets overwritten (on the screen) by the picking/highlighting color. Is there a way to avoid this?<br>
</blockquote><div><br></div><div>Unfortunately, no. You can change the selection color using the view theme, but cannot disable it. Internally vtkGraphLayoutView uses vtkApplyColors, which does not appear to have that capability:</div>
<div><br></div><div><a href="http://www.vtk.org/doc/nightly/html/classvtkApplyColors.html">http://www.vtk.org/doc/nightly/html/classvtkApplyColors.html</a></div><div><br></div><div>An option could be to add a flag to vtkApplyColors to turn off selection coloring, then exposing that parameter to vtkGraphLayoutView.</div>
<div><br></div><div>Jeff</div></div>