Skip to content

Commit c5fd21e

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 fc59b2e commit c5fd21e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/itkPointFeature.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class PointFeature : public itk::MeshToMeshFilter<TInputPointSet, TOutputPointSe
7070
using FeatureTypePointer = typename FeatureType::Pointer;
7171

7272
/** Run-time type information. */
73-
itkTypeMacro(PointFeature, MeshToMeshFilter);
73+
itkOverrideGetNameOfClassMacro(PointFeature);
7474

7575
/** Standard New macro. */
7676
itkNewMacro(Self);

0 commit comments

Comments
 (0)