[vtkusers] Pass values from vtkCommand

David Doria daviddoria at gmail.com
Sun Sep 18 10:30:56 EDT 2011


On Sat, Sep 17, 2011 at 2:09 PM, andon <antoniod987 at gmail.com> wrote:

> Hi guys i'm a starter and i need your help please! I'm doing picking from a
> scene with two actor and i'm using vtkPointPicker with vtkCommand in order
> to link the picker at the EndPickEvent...in particular i've extended the
> class vtkCommand and overloaded the execute method in order to print on the
> standard output the picked point cordinates... In addition, i need to pass
> this values in order to elaborate them...how can i do this? The "execute"
> method is a void method and than at the end of the event i lose these
> values...I hope you can help me...thank you very much..
>

You need to set the ClientData of the vtkCommand subclass, like this:

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/ClientData

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110918/23d5e9e2/attachment.htm>


More information about the vtkusers mailing list