Skip to content

Commit e47ba71

Browse files
committed
STYLE: Add itkVirtualGetNameOfClassMacro + itkOverrideGetNameOfClassMacro
Added two new macro's, intended to replace the old 'itkTypeMacro' and 'itkTypeMacroNoParent'. The main aim is to be clearer about what those macro's do: add a virtual 'GetNameOfClass()' member function and override it. Unlike 'itkTypeMacro', 'itkOverrideGetNameOfClassMacro' does not have a 'superclass' parameter, as it was not used anyway. Note that originally 'itkTypeMacro' did not use its 'superclass' parameter either, looking at commit 699b66cb04d410e555656828e8892107add38ccb, Will Schroeder, June 27, 2001: https://github.com/InsightSoftwareConsortium/ITK/blob/699b66cb04d410e555656828e8892107add38ccb/Code/Common/itkMacro.h#L331-L337
1 parent 47b8f35 commit e47ba71

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/itkBoneMorphometryFeaturesFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class ITK_TEMPLATE_EXPORT BoneMorphometryFeaturesFilter : public ImageToImageFil
6969
itkNewMacro(Self);
7070

7171
/** Runtime information support. */
72-
itkTypeMacro(BoneMorphometryFeaturesFilter, ImageToImageFilter);
72+
itkOverrideGetNameOfClassMacro(BoneMorphometryFeaturesFilter);
7373

7474
/** Image related type alias. */
7575
using InputImagePointer = typename TInputImage::Pointer;

include/itkBoneMorphometryFeaturesImageFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class ITK_TEMPLATE_EXPORT BoneMorphometryFeaturesImageFilter : public ImageToIma
7878
itkNewMacro(Self);
7979

8080
/** Runtime information support. */
81-
itkTypeMacro(BoneMorphometryFeaturesImageFilter, ImageToImageFilter);
81+
itkOverrideGetNameOfClassMacro(BoneMorphometryFeaturesImageFilter);
8282

8383
/** Image related type alias. */
8484
using InputImagePointer = typename TInputImage::Pointer;

include/itkReplaceFeatureMapNanInfImageFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class ITK_TEMPLATE_EXPORT ReplaceFeatureMapNanInfImageFilter : public ImageToIma
6363
itkNewMacro(Self);
6464

6565
/** Runtime information support. */
66-
itkTypeMacro(ReplaceFeatureMapNanInfImageFilter, ImageToImageFilter);
66+
itkOverrideGetNameOfClassMacro(ReplaceFeatureMapNanInfImageFilter);
6767

6868
protected:
6969
/** Input Image related type alias. */

0 commit comments

Comments
 (0)