Skip to content

Commit 01942ba

Browse files
authored
Merge pull request #1832 from ANTsX/update-to-new-macros
STYLE: Add itkVirtualGetNameOfClassMacro + itkOverrideGetNameOfClassMacro
2 parents 0cff6f2 + 3bd685c commit 01942ba

File tree

86 files changed

+95
-95
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+95
-95
lines changed

Examples/antsCommandIterationUpdate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class antsCommandIterationUpdate : public itk::Command
125125
/**
126126
* Run-time type information (and related methods).
127127
*/
128-
itkTypeMacro(antsCommandIterationUpdate, itk::Command);
128+
itkOverrideGetNameOfClassMacro(antsCommandIterationUpdate);
129129

130130

131131
/**

Examples/itkantsRegistrationHelper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ class RegistrationHelper final : public itk::Object
461461
itkNewMacro(Self);
462462

463463
/** Run-time type information (and related methods). */
464-
itkTypeMacro(RegistrationHelper, Object);
464+
itkOverrideGetNameOfClassMacro(RegistrationHelper);
465465

466466
/** Dimension of the image. This constant is used by functions that are
467467
* templated over image type (as opposed to being templated over pixel type

ImageRegistration/itkANTSAffine3DTransform.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class ANTSAffine3DTransform final : public MatrixOffsetTransformBase<TScalarType
3030
itkNewMacro(Self);
3131

3232
/** Run-time type information (and related methods). */
33-
// itkTypeMacro( ANTSAffine3DTransform, Rigid3DTransform );
34-
itkTypeMacro(ANTSAffine3DTransform, MatrixOffsetTransformBase);
33+
// itkOverrideGetNameOfClassMacro( ANTSAffine3DTransform);
34+
itkOverrideGetNameOfClassMacro(ANTSAffine3DTransform);
3535

3636
/** Dimension of parameters */
3737
static constexpr unsigned int InputSpaceDimension = 3;

ImageRegistration/itkANTSCenteredAffine2DTransform.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ class ANTSCenteredAffine2DTransform final
2222
typedef SmartPointer<const Self> ConstPointer;
2323

2424
/** Run-time type information (and related methods). */
25-
// itkTypeMacro( Rigid2DTransform, MatrixOffsetTransformBase );
26-
itkTypeMacro(ANTSCenteredAffine2DTransform, MatrixOffsetTransformBase);
25+
// itkOverrideGetNameOfClassMacro( Rigid2DTransform);
26+
itkOverrideGetNameOfClassMacro(ANTSCenteredAffine2DTransform);
2727

2828
/** New macro for creation of through a Smart Pointer */
2929
itkNewMacro(Self);

ImageRegistration/itkANTSImageRegistrationOptimizer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class ANTSImageRegistrationOptimizer final : public Object
6666
itkNewMacro(Self);
6767

6868
/** Run-time type information (and related methods). */
69-
itkTypeMacro(ANTSImageRegistrationOptimizer, Object);
69+
itkOverrideGetNameOfClassMacro(ANTSImageRegistrationOptimizer);
7070
static constexpr unsigned int Dimension = TDimension;
7171
static constexpr unsigned int ImageDimension = TDimension;
7272

ImageRegistration/itkANTSImageTransformation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ANTSImageTransformation final : public Object
4646

4747
typedef double TComp;
4848
/** Run-time type information (and related methods). */
49-
itkTypeMacro(ANTSImageTransformation, Object);
49+
itkOverrideGetNameOfClassMacro(ANTSImageTransformation);
5050
static constexpr unsigned int Dimension = TDimension;
5151
static constexpr unsigned int ImageDimension = TDimension;
5252

ImageRegistration/itkANTSLabeledPointSet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ANTSLabeledPointSet : public Object
3737
itkNewMacro(Self);
3838

3939
/** Run-time type information (and related methods). */
40-
itkTypeMacro(ANTSLabeledPointSet, Object);
40+
itkOverrideGetNameOfClassMacro(ANTSLabeledPointSet);
4141
static constexpr unsigned int Dimension = TDimension;
4242

4343
typedef float RealType;

ImageRegistration/itkANTSSimilarityMetric.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ANTSSimilarityMetric final : public Object
3838
itkNewMacro(Self);
3939

4040
/** Run-time type information (and related methods). */
41-
itkTypeMacro(ANTSSimilarityMetric, Object);
41+
itkOverrideGetNameOfClassMacro(ANTSSimilarityMetric);
4242
static constexpr unsigned int Dimension = TDimension;
4343

4444
typedef TReal RealType;

ImageRegistration/itkAvantsMutualInformationRegistrationFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class AvantsMutualInformationRegistrationFunction final
132132
itkNewMacro(Self);
133133

134134
/** Run-time type information (and related methods). */
135-
itkTypeMacro(AvantsMutualInformationRegistrationFunction, AvantsPDEDeformableRegistrationFunction);
135+
itkOverrideGetNameOfClassMacro(AvantsMutualInformationRegistrationFunction);
136136

137137
/** MovingImage image type. */
138138
typedef typename Superclass::MovingImageType MovingImageType;

ImageRegistration/itkAvantsPDEDeformableRegistrationFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class AvantsPDEDeformableRegistrationFunction
4545
typedef SmartPointer<const Self> ConstPointer;
4646

4747
/** Run-time type information (and related methods) */
48-
itkTypeMacro(AvantsPDEDeformableRegistrationFunction, PDEDeformableRegistrationFunction);
48+
itkOverrideGetNameOfClassMacro(AvantsPDEDeformableRegistrationFunction);
4949

5050
/** MovingImage image type. */
5151
typedef TMovingImage MovingImageType;

0 commit comments

Comments
 (0)