[vtkusers] How do I do? Please./ If I want to pick cell and point at the same time In VTK

kitti koonsanit sc431137 at gmail.com
Sat Feb 11 23:12:41 EST 2006


Dear All

vtkusers at vtk.org


see picture in Attach File

I create   vtkCylinderSource Actor  in vtkcanvas

I use  vtkCellPicker  For  pick   cylinder   Actor
I use  vtkPointPicker  For pick  both  the end of  cylinder


    this.addWindowSetObserver(new Observer() {
      public void update(Observable o, Object arg) {
        // Create a cell picker.
          picker = new vtkCellPicker();

        // Now at the end of the pick event call the above function.
        picker.AddObserver("EndPickEvent", Annotate.this"annotatePick");

        iren.SetPicker(picker);

      }
    });

In source code on top  , I  use only  vtkCellPicker  in in vtkcanvasA


But , If  I  want  to  pick  cell  and  point   at  the same time  
and  in   only  vtkcanvas view
(I want pick cell and point  (No  get  point ))

How  do I do? Please.

How  do I add   addWindowSetObserver() command ?



thank you



kitti koonsanit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pick.GIF
Type: image/gif
Size: 13389 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060212/e4a994a0/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pick2.GIF
Type: image/gif
Size: 8302 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060212/e4a994a0/attachment-0001.gif>


More information about the vtkusers mailing list