[vtkusers] Turning off the auto highlighting on picked objects

Steven Chall stevec at renci.org
Tue Aug 23 13:42:46 EDT 2011


Hi fellow VTK enthusiasts,
I have what is in essence a 3D graph of vtkCubeSource objects from which I select one at a time, sometimes using the standard vtkPicker approach, sometimes using other mechanisms I've coded myself.  Whichever mechanism I use to do the picking, I've also coded how I visually highlight/indicate what's been selected; thus, the red wireframe box that the vtkPicker approach leaves around the picked object is at best irrelevant.  However, if I follow a vtkPicker-based pick A with a non-vtkPicker-based pick B, that red wireframe box remains around picked object A, even though by the internal logic of my application it's no longer picked.

That the vtkPicker object  thinks it's still picked doesn't matter to me - I track picking independently of that - but I can't figure out how to remove that red wireframe box that is a consequence of the vtkPicker's "picked" state.   I'd imagine it's just a wireframe vtkCubeSource or the like and that it would have something to do with the vtkPicker's vtkActor's vtkProperty's bounds (as in picker->GetActor()->GetProperty->GetBounds(bounds), where bounds is an array of 6 floats and picker is a vtkPicker *), but snooping around in the source code hasn't gotten me to find where that red bounding box is drawn.   Any suggestions on how I can turn it off and just generally access it?  Thanks.

Steve


-Steve Chall
 Senior Research Software Developer
 Renaissance Computing Institute (RENCI)
 Phone: 919-681-9639
 Email: stevec at renci.org<mailto:stevec at renci.org>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110823/855d0baf/attachment.htm>


More information about the vtkusers mailing list