[vtkusers] scalar value ??????

Jeremy Winston winston at cat.rpi.edu
Fri Sep 20 08:34:44 EDT 2002


Waltraud Henrich wrote:
> 
> I would like get the scalar value at the mouse cursor when I click
> the mouse button.  I can get the pixel coordinates .

The scalar value of what?

If you want the scalar value of the closest pickable thing,
use vtkCellPicker to pick a cell, and query the scalar value
of the points of that cell.

See 
http://public.kitware.com/cgi-bin/cvsweb.cgi/~checkout~/VTK/Examples/Annotation/Tcl/annotatePick.tcl

for an example of vtkCellpicker's use.

HTH,
-Jeremy



More information about the vtkusers mailing list