[Insight-users] What is the usage and function of itkTypeMacro?

Guang Yang samggyy at gmail.com
Thu Aug 26 11:07:01 EDT 2010


Hi guys,

I am not sure how to use itkTypeMacro.

Should I always use it like:

itkTypeMacro(thisClass,superclass)

If my class is derived from itkSingleValuedCostFunction,

class ITK_EXPORT MyClass : public SingleValuedCostFunction
{...}

can I define something like

itkTypeMacro(MyClass, ImageToImageFilter); ?

Also what does ‘*itkTypeMacro* allows you to *use* run time type information’
mean?



Thanks,
Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100826/b208ab4a/attachment.htm>


More information about the Insight-users mailing list