From 9ee631ef0ee8e8bf7a950043160e0600795cea87 Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Sun, 26 Jan 2025 09:01:29 -0600 Subject: [PATCH] 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 --- include/itkMeshProcrustesAlignFilter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/itkMeshProcrustesAlignFilter.h b/include/itkMeshProcrustesAlignFilter.h index 56cc025..d9887eb 100644 --- a/include/itkMeshProcrustesAlignFilter.h +++ b/include/itkMeshProcrustesAlignFilter.h @@ -91,7 +91,7 @@ class ITK_TEMPLATE_EXPORT MeshProcrustesAlignFilter : public ProcessObject itkNewMacro(Self); /** Run-time type information (and related methods). */ - itkTypeMacro(MeshProcrustesAlignFilter, ProcessObject); + itkOverrideGetNameOfClassMacro(MeshProcrustesAlignFilter); /** Sets the number of input meshes that have to be aligned. * Call this before any other methods.