<br>Hi Matthew,<br><br>I'm not sure I understand your question.<br><br>So, let me sketch it in code,...<br><br>It seems that you want something like:<br><br><br>class MyClass <br>{<br>public:<br><br> class MyFunction<br>
{<br> public:<br> };<br><br>};<br><br><br>where MyFunction should be any of the functions<br>in the itk::Function namespace....<br><br>Could you cite an example ?<br><br><br>---<br><br>Any reason for not using the Functor approach ?<br>
<br>where your class MyClass is templated over the<br>function type.<br><br>As in the UnaryFunctorImageFilter ?<br><br>template < class TFunctor><br>class MyClass<br>{<br>public:<br><br> TFunctor MyFunction;<br>};<br>
<br><br><br>Please let us know,<br><br><br> Thanks<br><br><br> Luis<br><br><br>------------------------------------<br><div class="gmail_quote">On Fri, Sep 10, 2010 at 7:41 PM, Matthew McCormick (thewtex) <span dir="ltr"><<a href="mailto:matt@mmmccormick.com">matt@mmmccormick.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<div><br></div><div>I would like to have a class member that is a function that is not a specific class. This suggests I should just use FunctionBase. However, the type of functions I would like to use are the ones in the itk::Function:: namespace. These classes do not seem to inherit from anything. Is there any class that acts a wrapper for these classes as a FunctionBase?</div>
<div><br></div><div>Thanks,</div><div>Matt</div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>