[vtkusers] help=( call back command
A J
lost_bits1110 at hotmail.com
Mon May 31 17:40:13 EDT 2004
... am I supposed to include all the parameters in the DoStuff function when
I do:
CallbackCommand->SetCallback(DoStuff);
??
Anywyas I tried this but I must be putting in the wrong parameters because
it still wont accept it..
but from all the examples i've seen so far, what I have should work!! but it
doesnt..!!!
It must be something really basic which I am not seeing, so if someone could
point this out then that woudl be great and then i can finally move on
thank you again!!
>Hi, why do I get the following compile error?? I have the correct
>parameters in the function taken in by SetCallback..? So why doenst it seem
>to recognize it??
>
>no matching function for call to `vtkCallbackCommand::
>SetCallback(<unknown type>)'
>/usr/local/include/vtk/vtkCallbackCommand.h:65: candidates are:
>void vtkCallbackCommand::SetCallback(void (*)(vtkObject*, long unsigned
>int, void*, void*))
>
>I have a class, say MyClass, and I have the following:
>
>void MyClass::function()
>{
> Iren->AddObserver( vtkCommand::EnterEvent , CallbackCommand );
> CallbackCommand->SetCallback(DoStuff);
>}
>
>void MyClass::DoStuff( vtkObject* caller, long unsigned int a, void* arg,
>void* b)
>{
> cout<<"detected event"<<endl;
>}
>
>
>void MyClass::Anotherfunction()
>{
> while(1) Iren->Render();
>}
>
>_________________________________________________________________
>Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage!
>http://join.msn.click-url.com/go/onm00200362ave/direct/01/
>
>_______________________________________________
>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
_________________________________________________________________
Express yourself with the new version of MSN Messenger! Download today -
it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
More information about the vtkusers
mailing list