[vtkusers] Problem with AddObserver
soheilghafurian
soheilghafurian at yahoo.com
Mon Jun 20 23:53:44 EDT 2011
Hi
I'm new to vtk and I have this problem: I want to use vtkCellPicker and I
define it and add a callback to it so:
Picker = vtkCellPicker::New();
Picker->AddObserver(vtkCommand::EndPickEvent,PickCom);
On the other hand, PickCom is an object of a class I have derived from
vtkCommand like this:
class CScapula::CPCom: public vtkCommand
{
void Execute (vtkObject *caller, unsigned long, void*)
{
};
};
what happens is my code is build with no errors, but when I run it, the
program closes. Could anyone help me with this problem? I checked some
examples, and I didn't understand what whas wrong.
Thanks
Soheil
--
View this message in context: http://vtk.1045678.n5.nabble.com/Problem-with-AddObserver-tp4509134p4509134.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list