[Insight-users] FunctionBase wrapper for classes in itk::Function::

Luis Ibanez luis.ibanez at kitware.com
Sun Sep 12 12:54:32 EDT 2010


Hi Matthew,

I'm not sure I understand your question.

So, let me sketch it in code,...

It seems that you want something like:


class MyClass
{
public:

   class MyFunction
     {
     public:
    };

};


where MyFunction should be any of the functions
in the itk::Function namespace....

Could you cite an example ?


---

Any reason for not using the Functor approach ?

where your class MyClass is templated over the
function type.

As in the UnaryFunctorImageFilter ?

template < class TFunctor>
class MyClass
{
public:

    TFunctor MyFunction;
};



Please let us know,


     Thanks


            Luis


------------------------------------
On Fri, Sep 10, 2010 at 7:41 PM, Matthew McCormick (thewtex) <
matt at mmmccormick.com> wrote:

> Hi,
>
> 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?
>
> Thanks,
> Matt
>
> _____________________________________
> 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.html
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100912/f528d266/attachment.htm>


More information about the Insight-users mailing list