<div dir="ltr"><div><div><div>Hello,<br><br></div>it is possible to set CStyleCommand callback function to member function of some object?<br></div><br>class A<br>{<br>public:<br><br>A::A()<br>{<br>    typedef itk::CStyleCommand         commandType;<br>

    typedef commandType::Pointer       commandPointer;<br><br>    itk::CStyleCommand::FunctionPointer p;<br>    p = ITKEventCallback; // this gives me error...<br><br>    commandPointer itkCallback= commandType::New();<br>

    itkCallback->SetCallback(p);<br>}<br><br>private:<br>    void ITKEventCallback(itk::Object *caller,const itk::EventObject& event,void *clientData); // callback function<br>};<br><br></div>Thanks!</div>