[vtkusers] how to pass data to the Execute Method of a subclass of vtkCommand

John Platt jcplatt at lineone.net
Thu Mar 11 15:20:30 EST 2004


Vince,

Have you tried passing data to the derived class using New( myType myVar
) then onto the constructor to initialize member data.

Alternatively, you could add a Set() method to your derived class which
you can call after New().

John.

-----Original Message-----
From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf
Of Vincent Daanen
Sent: 11 March 2004 14:51
To: vtkusers at vtk.org
Subject: [vtkusers] how to pass data to the Execute Method of a subclass
of vtkCommand

Hi,

I subclassed vtkCommand in order to create my own Event Callback. I wish

to pass data to the execute method
(number of the current image displayed in a image viewer) but I can't 
find any examples nor explications on howto
do ?

Can someone help me ?

 Thanks
Vince

-- 
Vincent Daanen, PhD
Research Engineer, Post-Doctoral Position
Laboratoire TIMC/IMAG (Univ. Joseph Fourier - CNRS UMR 5525)
Equipe GMCAO
Institut d'Ingénierie de l'Information de Santé (IN3S)
Faculté de Médecine - 38706 La Tronche cedex - France
Tel: +33 (0)4 56 52 00 54 - Fax: +33 (0)4 56 52 00 55
Vincent.Daanen at imag.fr

"Les problèmes ne peuvent être résolus par
ceux dont l'horizon se limite aux réalités 
quotidiennes, mais par ceux qui rêvent de 
choses qui n'ont jamais existées et qui se 
disent : Pourquoi Pas ?"

J-F Kennedy, 1963.

_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers





More information about the vtkusers mailing list