[ITK] [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://public.kitware.com/pipermail/community/attachments/20140331/84c08534/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
More information about the Community
mailing list