[vtkusers] Something about InvokeEvent

chasank chasank at gmail.com
Mon Mar 24 10:47:59 EDT 2014


You should try to write a sub-class from vtkCommand. Then add the instance of
that sub-class as an observer to you interactor. Override the following
method:
virtual void vtkCommand::Execute	(vtkObject * caller, unsigned long eventId,
void* callData)

Make sure that your EVENT_NUM is invoked the execute method with the
following code;

if( eventId == MY_EVENT_NUM)
{
    float *args = static_cast< float* >(callData);
}



--
View this message in context: http://vtk.1045678.n5.nabble.com/Something-about-InvokeEvent-tp5726467p5726475.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list