Skip to content

Commit

Permalink
COMP: Use newer itkOverrideGetNameOfClassMacro instead of itkTypeMacro
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz committed Oct 16, 2024
1 parent 965308f commit cfe5f9e
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion include/itkGridTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class GridTransform : public Transform<SpacePrecisionType, 2, 2>
typedef SmartPointer<InverseTransformType> InverseTransformPointer;

// RTTI:
itkTypeMacro(GridTransform, Transform);
itkOverrideGetNameOfClassMacro(GridTransform);

// macro for instantiation through the object factory:
itkNewMacro(Self);
Expand Down
2 changes: 1 addition & 1 deletion include/itkIRRefineGrid.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class IRRefineGrid : public ImageToImageFilter<TInputImage, TOutputImage>
using ConstPointer = SmartPointer<const Self>;

/** Run-time type information. */
itkTypeMacro(IRRefineGrid, ImageToImageFilter);
itkOverrideGetNameOfClassMacro(IRRefineGrid);

/** Standard New macro. */
itkNewMacro(Self);
Expand Down
2 changes: 1 addition & 1 deletion include/itkImageMosaicVarianceMetric.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class ITK_EXPORT ImageMosaicVarianceMetric : public SingleValuedCostFunction
itkNewMacro(Self);

/** Run-time type information (and related methods). */
itkTypeMacro(ImageMosaicVarianceMetric, SingleValuedCostFunction);
itkOverrideGetNameOfClassMacro(ImageMosaicVarianceMetric);

/** Type of the moving Image. */
typedef TInterpolator interpolator_t;
Expand Down
2 changes: 1 addition & 1 deletion include/itkInverseTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ namespace itk
itkNewMacro(Self);

/** Run-time type information (and related methods). */
itkTypeMacro( InverseTransform, Transform );
itkOverrideGetNameOfClassMacro(InverseTransform);

/** Standard scalar type for this class. */
typedef typename Superclass::ScalarType ScalarType;
Expand Down
2 changes: 1 addition & 1 deletion include/itkLegendrePolynomialTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class LegendrePolynomialTransform : public Transform<TScalar, 2, 2>
itkStaticConstMacro(ParameterVectorLength, unsigned int, (N + 1) * (N + 2));

// RTTI:
itkTypeMacro(LegendrePolynomialTransform, Transform);
itkOverrideGetNameOfClassMacro(LegendrePolynomialTransform);

// macro for instantiation through the object factory:
itkNewMacro(Self);
Expand Down
2 changes: 1 addition & 1 deletion include/itkMeshTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class MeshTransform : public Transform<itk::SpacePrecisionType, 2, 2>
typedef SmartPointer<InverseTransformType> InverseTransformPointer;

// RTTI:
itkTypeMacro(MeshTransform, Transform);
itkOverrideGetNameOfClassMacro(MeshTransform);

// macro for instantiation through the object factory:
itkNewMacro(Self);
Expand Down
2 changes: 1 addition & 1 deletion include/itkNormalizeImageFilterWithMask.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class ITK_EXPORT NormalizeImageFilterWithMask :
itkNewMacro(Self);

/** Runtime information support. */
itkTypeMacro(NormalizeImageFilterWithMask, ImageToImageFilter);
itkOverrideGetNameOfClassMacro(NormalizeImageFilterWithMask);

/** Image related typedefs. */
typedef typename TInputImage::Pointer InputImagePointer;
Expand Down
2 changes: 1 addition & 1 deletion include/itkRBFTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class RBFTransform : public Transform<double, 2, 2>
typedef SmartPointer<InverseTransformType> InverseTransformPointer;

// RTTI:
itkTypeMacro(RBFTransform, Transform);
itkOverrideGetNameOfClassMacro(RBFTransform);

// macro for instantiation through the object factory:
itkNewMacro(Self);
Expand Down
2 changes: 1 addition & 1 deletion include/itkRadialDistortionTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class RadialDistortionTransform : public Transform<TScalar, 2, 2>
itkStaticConstMacro(Nk, unsigned int, N);

// RTTI:
itkTypeMacro(RadialDistortionTransform, Transform);
itkOverrideGetNameOfClassMacro(RadialDistortionTransform);

// macro for instantiation through the object factory:
itkNewMacro(Self);
Expand Down
3 changes: 1 addition & 2 deletions include/itkRegularStepGradientDescentOptimizer2.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ class ITK_EXPORT RegularStepGradientDescentOptimizer2 :
itkNewMacro(Self);

/** Run-time type information (and related methods). */
itkTypeMacro(RegularStepGradientDescentOptimizer2,
SingleValuedNonLinearOptimizer);
itkOverrideGetNameOfClassMacro(RegularStepGradientDescentOptimizer2);

//----------------------------------------------------------------
// StopConditionType
Expand Down
2 changes: 1 addition & 1 deletion include/itkStatisticsImageFilterWithMask.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class ITK_EXPORT StatisticsImageFilterWithMask :
itkNewMacro(Self);

/** Runtime information support. */
itkTypeMacro(StatisticsImageFilterWithMask, ImageToImageFilter);
itkOverrideGetNameOfClassMacro(StatisticsImageFilterWithMask);

/** Image related typedefs. */
typedef typename TInputImage::Pointer InputImagePointer;
Expand Down

0 comments on commit cfe5f9e

Please sign in to comment.