[vtkusers] edit line nodes
Jonathan Ruiz Peinado
jonathan.ruiz3 at gmail.com
Wed Jul 25 13:03:15 EDT 2012
Thanks, I've followed that links and now I got something but not exactly
what I need.
The problem is that I'm not getting all point Ids in the scene, sure I'm
using something wrongly, this is what I'm doing:
I'm using vtkImagePlaneWidget to show an slice of a dicom image, and in the
same render I'm drawing some lines , poligons, etc...
I'm setting the picker for the vtkImagePlaneWidget like this:
vtkImagePlaneWidget.SetPicker(vtkPointPicker);
also I'm using the same pointPicker for the render iterator and this is how
I'm setting it up:
vtkPanel.getIren().SetPicker(vtkPointPicker);
I'm using the same point picker for both, dont know if it is right or not.
Well the problem is that I'm able to get the Ids of the planeWidget corner
points but I can't get the point Ids of the scene actors.
Do I need to set the picker somewhere else?
Set the picker just for the render iterator didn't make any difference
Thanks!
2012/7/23 David Doria <daviddoria at gmail.com>
> On Mon, Jul 23, 2012 at 7:12 AM, Jonathan Ruiz Peinado <
> jonathan.ruiz3 at gmail.com> wrote:
>
>> Hi, I'm drawing some shapes in a render, so far so good, but I need to
>> edit this shapes aswell, and is at this point where I get lost. I don't
>> know how to get the shape or point from the render using mouseclick event,
>> I know that I can get actors using vtkpicker but not sure if it can help me
>> or how should I go from there.
>>
>> Any advise?
>>
>>
>> Thanks.
>>
>
> These might help:
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/PointPicker
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MoveAVertex
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120725/ce8edc9d/attachment.htm>
More information about the vtkusers
mailing list