[Insight-developers] GetClassName() -> itkTypeMacro()

Luis Ibanez ibanez at cs.unc.edu
Mon Sep 18 09:58:05 EDT 2000


Ok,
Just to double check :

The GetClassName() method is generated
by  itkTypeMacro(), we must add in all our
classes the macro  itkTypeMacro()   with
the name of the class and the name of the
superclass.  Something like:


class myClass : public baseClass {
public:
    itkTypeMacro( myClass, baseClass );

}


Is this the right way of doing this ?


Thanks,



Luis




More information about the Insight-developers mailing list