[vtkusers] vtkCommand calldata parameter of Execute()

Sebastien Jourdain sebastien.jourdain at kitware.com
Mon Dec 26 17:44:02 EST 2011


Can't you request the informations that you need as you do get a
pointer to the source where the event was generated ?

Otherwise, you just put anything as it's a void pointer. Create your
own struct and that's it. But make sure you know who delete the
pointer...

Seb

On Mon, Dec 26, 2011 at 12:27 PM, Marcelino Rodriguez Cancio
<marcelinorc at uclv.edu.cu> wrote:
> I did something similar some days ago, I get away with it by inheriting from vtkComand and putting my parameters as fields. Don't know if this is the better way thou.
>
>
> -----Mensaje original-----
> De: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] En nombre de Luke
> Enviado el: sábado, 24 de diciembre de 2011 04:47 p.m.
> Para: vtkusers at vtk.org
> Asunto: [vtkusers] vtkCommand calldata parameter of Execute()
>
> Hello,
>  I'm would like to make an animation similar to this one:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/Animation
>
> but I would like to pass the information about the position and
> orientation of the actors in my scene at each render time as the third
> argument to Execute.  In the above example this parameter isn't used,
> and I was unable to determine from the documentation of vtkCommand or
> vtkRenderWindowInteractor how to pass this data when the timer event
> occurs.
>
> Does anybody have a good example of a callback that gets data passed to it?
>
> Thanks,
> ~Luke
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
> - XIII Simposio Internacional sobre Pensamiento Latinoamericano, del 26 al 27 de junio de 2012. Universidad Central “Marta Abreu” de Las Villas, Santa Clara, Cuba. http://www.uclv.edu.cu/13simp-pensamiento-latinoamericano
> -Universidad Central "Marta Abreu" de Las Villas. http://www.uclv.edu.cu
> -Participe en Universidad 2012, del 13 al 17 de febrero de 2012. Habana.Cuba.  http://www.congresouniversidad.cu
> -Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu/
>
>
>
> - XIII Simposio Internacional sobre Pensamiento Latinoamericano, del 26 al 27 de junio de 2012. Universidad Central “Marta Abreu” de Las Villas, Santa Clara, Cuba. http://www.uclv.edu.cu/13simp-pensamiento-latinoamericano
> -Universidad Central "Marta Abreu" de Las Villas. http://www.uclv.edu.cu
> -Participe en Universidad 2012, del 13 al 17 de febrero de 2012. Habana.Cuba.  http://www.congresouniversidad.cu
> -Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu/
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



More information about the vtkusers mailing list