[ITK-users] CStyleCommand callback function as object member
wydesenej
wydesenej at gmail.com
Mon Mar 31 11:36:53 EDT 2014
Hello,
it is possible to set CStyleCommand callback function to member function of
some object?
class A
{
public:
A::A()
{
typedef itk::CStyleCommand commandType;
typedef commandType::Pointer commandPointer;
itk::CStyleCommand::FunctionPointer p;
p = ITKEventCallback; // this gives me error...
commandPointer itkCallback= commandType::New();
itkCallback->SetCallback(p);
}
private:
void ITKEventCallback(itk::Object *caller,const itk::EventObject&
event,void *clientData); // callback function
};
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140331/84c08534/attachment.html>
More information about the Insight-users
mailing list