Skip to content

Commit

Permalink
STYLE: Replace itkTypeMacro calls with itkOverrideGetNameOfClassMacro
Browse files Browse the repository at this point in the history
Follows InsightSoftwareConsortium/ITK@2c264ea
Done with command:
sed -i "s/^\( *\)itkTypeMacro(\([:a-zA-Z]*\), \([:a-zA-Z]*\));/#ifdef itkOverrideGetNameOfClassMacro\n\1itkOverrideGetNameOfClassMacro(\2);\n#else\n\1itkTypeMacro(\2, \3);\n#endif/g" *
  • Loading branch information
Simon Rit authored and SimonRit committed Jan 8, 2024
1 parent 6109465 commit eb90fb4
Show file tree
Hide file tree
Showing 199 changed files with 796 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/rtkADMMTotalVariationConeBeamReconstructionFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ class ITK_TEMPLATE_EXPORT ADMMTotalVariationConeBeamReconstructionFilter
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(ADMMTotalVariationConeBeamReconstructionFilter);
#else
itkTypeMacro(ADMMTotalVariationConeBeamReconstructionFilter, IterativeConeBeamReconstructionFilter);
#endif

using ForwardProjectionFilterType = rtk::ForwardProjectionImageFilter<TOutputImage, TOutputImage>;
using ForwardProjectionFilterPointer = typename ForwardProjectionFilterType::Pointer;
Expand Down
4 changes: 4 additions & 0 deletions include/rtkADMMTotalVariationConjugateGradientOperator.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ class ITK_TEMPLATE_EXPORT ADMMTotalVariationConjugateGradientOperator : public C
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(rtkADMMTotalVariationConjugateGradientOperator);
#else
itkTypeMacro(rtkADMMTotalVariationConjugateGradientOperator, ConjugateGradientOperator);
#endif

using BackProjectionFilterType = rtk::BackProjectionImageFilter<TOutputImage, TOutputImage>;
using BackProjectionFilterPointer = typename BackProjectionFilterType::Pointer;
Expand Down
4 changes: 4 additions & 0 deletions include/rtkADMMWaveletsConeBeamReconstructionFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,11 @@ class ITK_TEMPLATE_EXPORT ADMMWaveletsConeBeamReconstructionFilter
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(ADMMWaveletsConeBeamReconstructionFilter);
#else
itkTypeMacro(ADMMWaveletsConeBeamReconstructionFilter, itk::ImageToImageFilter);
#endif

// /** The 3D image to be updated */
// void SetInputVolume(const TOutputImage* Volume);
Expand Down
4 changes: 4 additions & 0 deletions include/rtkADMMWaveletsConjugateGradientOperator.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ class ITK_TEMPLATE_EXPORT ADMMWaveletsConjugateGradientOperator : public Conjuga
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(rtkADMMWaveletsConjugateGradientOperator);
#else
itkTypeMacro(rtkADMMWaveletsConjugateGradientOperator, ConjugateGradientOperator);
#endif

using BackProjectionFilterType = rtk::BackProjectionImageFilter<TOutputImage, TOutputImage>;
using BackProjectionFilterPointer = typename BackProjectionFilterType::Pointer;
Expand Down
4 changes: 4 additions & 0 deletions include/rtkAddMatrixAndDiagonalImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ class ITK_TEMPLATE_EXPORT AddMatrixAndDiagonalImageFilter : public itk::ImageToI
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(AddMatrixAndDiagonalImageFilter);
#else
itkTypeMacro(AddMatrixAndDiagonalImageFilter, itk::ImageToImageFilter);
#endif

/** Convenient parameters extracted from template types */
static constexpr unsigned int nChannels = TDiagonal::PixelType::Dimension;
Expand Down
4 changes: 4 additions & 0 deletions include/rtkAdditiveGaussianNoiseImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,11 @@ class ITK_TEMPLATE_EXPORT AdditiveGaussianNoiseImageFilter : public itk::ImageTo
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(AdditiveGaussianNoiseImageFilter);
#else
itkTypeMacro(AdditiveGaussianNoiseImageFilter, ImageToImageFilter);
#endif

/** Superclass type alias. */
using OutputImageRegionType = typename Superclass::OutputImageRegionType;
Expand Down
4 changes: 4 additions & 0 deletions include/rtkAmsterdamShroudImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ class ITK_TEMPLATE_EXPORT AmsterdamShroudImageFilter
itkSetMacro(Corner2, PointType);

/** Runtime information support. */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(AmsterdamShroudImageFilter);
#else
itkTypeMacro(AmsterdamShroudImageFilter, itk::ImageToImageFilter);
#endif

protected:
AmsterdamShroudImageFilter();
Expand Down
4 changes: 4 additions & 0 deletions include/rtkAverageOutOfROIImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ class ITK_TEMPLATE_EXPORT AverageOutOfROIImageFilter : public itk::InPlaceImageF
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(AverageOutOfROIImageFilter);
#else
itkTypeMacro(AverageOutOfROIImageFilter, itk::InPlaceImageFilter);
#endif

/** The image containing the weights applied to the temporal components */
void
Expand Down
4 changes: 4 additions & 0 deletions include/rtkBackProjectionImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ class ITK_TEMPLATE_EXPORT BackProjectionImageFilter : public itk::InPlaceImageFi
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(BackProjectionImageFilter);
#else
itkTypeMacro(BackProjectionImageFilter, itk::ImageToImageFilter);
#endif

/** Get / Set the object pointer to projection geometry */
itkGetConstObjectMacro(Geometry, GeometryType);
Expand Down
4 changes: 4 additions & 0 deletions include/rtkBackwardDifferenceDivergenceImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ class ITK_TEMPLATE_EXPORT BackwardDifferenceDivergenceImageFilter
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(BackwardDifferenceDivergenceImageFilter);
#else
itkTypeMacro(BackwardDifferenceDivergenceImageFilter, ImageToImageFilter);
#endif

/** Use the image spacing information in calculations. Use this option if you
* want derivatives in physical space. Default is UseImageSpacingOn. */
Expand Down
4 changes: 4 additions & 0 deletions include/rtkBioscanGeometryReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ class RTK_EXPORT BioscanGeometryReader : public itk::LightProcessObject
using GeometryPointer = GeometryType::Pointer;

/** Run-time type information (and related methods). */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(BioscanGeometryReader);
#else
itkTypeMacro(BioscanGeometryReader, itk::LightProcessObject);
#endif

/** Method for creation through the object factory. */
itkNewMacro(Self);
Expand Down
4 changes: 4 additions & 0 deletions include/rtkBlockDiagonalMatrixVectorMultiplyImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ class ITK_TEMPLATE_EXPORT BlockDiagonalMatrixVectorMultiplyImageFilter
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(BlockDiagonalMatrixVectorMultiplyImageFilter);
#else
itkTypeMacro(BlockDiagonalMatrixVectorMultiplyImageFilter, itk::ImageToImageFilter);
#endif

/** Convenient parameters extracted from template types */
static constexpr unsigned int nChannels = TVectorImage::PixelType::Dimension;
Expand Down
4 changes: 4 additions & 0 deletions include/rtkBoellaardScatterCorrectionImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ class ITK_TEMPLATE_EXPORT BoellaardScatterCorrectionImageFilter
itkNewMacro(Self);

/** Runtime information support. */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(BoellaardScatterCorrectionImageFilter);
#else
itkTypeMacro(BoellaardScatterCorrectionImageFilter, itk::ImageToImageFilter);
#endif

/** Get / Set the air threshold on projection images. The threshold is used to
** evaluate which part of the x-rays have traversed the patient. */
Expand Down
4 changes: 4 additions & 0 deletions include/rtkBoxShape.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ class RTK_EXPORT BoxShape : public ConvexShape
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(BoxShape);
#else
itkTypeMacro(BoxShape, ConvexShape);
#endif

/** See rtk::ConvexShape::IsInside. */
bool
Expand Down
4 changes: 4 additions & 0 deletions include/rtkConditionalMedianImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ class ITK_TEMPLATE_EXPORT ConditionalMedianImageFilter : public itk::InPlaceImag
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(ConditionalMedianImageFilter);
#else
itkTypeMacro(ConditionalMedianImageFilter, itk::InPlaceImageFilter);
#endif

/** Set/Get neighborhood radius */
itkSetMacro(Radius, MedianRadiusType);
Expand Down
4 changes: 4 additions & 0 deletions include/rtkConjugateGradientConeBeamReconstructionFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ class ITK_TEMPLATE_EXPORT ConjugateGradientConeBeamReconstructionFilter
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(ConjugateGradientConeBeamReconstructionFilter);
#else
itkTypeMacro(ConjugateGradientConeBeamReconstructionFilter, itk::ImageToImageFilter);
#endif

/** Setters for the inputs */
void
Expand Down
4 changes: 4 additions & 0 deletions include/rtkConjugateGradientImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ class ITK_TEMPLATE_EXPORT ConjugateGradientImageFilter
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(ConjugateGradientImageFilter);
#else
itkTypeMacro(ConjugateGradientImageFilter, itk::InPlaceImageFilter);
#endif

/** Get and Set macro*/
itkGetMacro(NumberOfIterations, int);
Expand Down
4 changes: 4 additions & 0 deletions include/rtkConjugateGradientOperator.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ class ITK_TEMPLATE_EXPORT ConjugateGradientOperator : public itk::ImageToImageFi
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(ConjugateGradientOperator);
#else
itkTypeMacro(ConjugateGradientOperator, itk::ImageToImageFilter);
#endif

/** The image to be updated.*/
virtual void
Expand Down
4 changes: 4 additions & 0 deletions include/rtkConstantImageSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ class ITK_TEMPLATE_EXPORT ConstantImageSource : public itk::ImageSource<TOutputI
using OutputImageRegionType = typename TOutputImage::RegionType;

/** Run-time type information (and related methods). */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(ConstantImageSource);
#else
itkTypeMacro(ConstantImageSource, itk::ImageSource);
#endif

/** Method for creation through the object factory. */
itkNewMacro(Self);
Expand Down
4 changes: 4 additions & 0 deletions include/rtkConvexShape.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ class RTK_EXPORT ConvexShape : public itk::DataObject
itkNewMacro(Self);

/** Run-time type information (and related methods). */
#ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(ConvexShape);
#else
itkTypeMacro(ConvexShape, itk::DataObject);
#endif

/** Returns true if a point is inside the object. */
virtual bool
Expand Down
4 changes: 4 additions & 0 deletions include/rtkCudaAverageOutOfROIImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ class RTK_EXPORT CudaAverageOutOfROIImageFilter
itkNewMacro(Self);

/** Runtime information support. */
# ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(CudaAverageOutOfROIImageFilter);
# else
itkTypeMacro(CudaAverageOutOfROIImageFilter, AverageOutOfROIImageFilter);
# endif

protected:
CudaAverageOutOfROIImageFilter();
Expand Down
4 changes: 4 additions & 0 deletions include/rtkCudaBackProjectionImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ class ITK_TEMPLATE_EXPORT CudaBackProjectionImageFilter
itkNewMacro(Self);

/** Run-time type information (and related methods). */
# ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(CudaBackProjectionImageFilter);
# else
itkTypeMacro(CudaBackProjectionImageFilter, Superclass);
# endif

protected:
CudaBackProjectionImageFilter();
Expand Down
4 changes: 4 additions & 0 deletions include/rtkCudaConjugateGradientImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ class ITK_TEMPLATE_EXPORT CudaConjugateGradientImageFilter
itkNewMacro(Self);

/** Runtime information support. */
# ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(CudaConjugateGradientImageFilter);
# else
itkTypeMacro(CudaConjugateGradientImageFilter, ConjugateGradientImageFilter);
# endif

protected:
CudaConjugateGradientImageFilter();
Expand Down
4 changes: 4 additions & 0 deletions include/rtkCudaConstantVolumeSeriesSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ class RTK_EXPORT CudaConstantVolumeSeriesSource
itkNewMacro(Self);

/** Runtime information support. */
# ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(CudaConstantVolumeSeriesSource);
# else
itkTypeMacro(CudaConstantVolumeSeriesSource, ImageToImageFilter);
# endif

protected:
CudaConstantVolumeSeriesSource();
Expand Down
4 changes: 4 additions & 0 deletions include/rtkCudaConstantVolumeSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ class RTK_EXPORT CudaConstantVolumeSource
itkNewMacro(Self);

/** Runtime information support. */
# ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(CudaConstantVolumeSource);
# else
itkTypeMacro(CudaConstantVolumeSource, ImageToImageFilter);
# endif

protected:
CudaConstantVolumeSource();
Expand Down
4 changes: 4 additions & 0 deletions include/rtkCudaCropImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ class RTK_EXPORT CudaCropImageFilter
itkNewMacro(Self);

/** Run-time type information (and related methods). */
# ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(CudaCropImageFilter);
# else
itkTypeMacro(CudaCropImageFilter, ImageToImageFilter);
# endif

protected:
CudaCropImageFilter();
Expand Down
4 changes: 4 additions & 0 deletions include/rtkCudaCyclicDeformationImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ class RTK_EXPORT CudaCyclicDeformationImageFilter
itkNewMacro(Self);

/** Runtime information support. */
# ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(CudaCyclicDeformationImageFilter);
# else
itkTypeMacro(CudaCyclicDeformationImageFilter, CyclicDeformationImageFilter);
# endif

protected:
CudaCyclicDeformationImageFilter();
Expand Down
4 changes: 4 additions & 0 deletions include/rtkCudaDisplacedDetectorImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ class RTK_EXPORT CudaDisplacedDetectorImageFilter
itkNewMacro(Self);

/** Run-time type information (and related methods). */
# ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(CudaDisplacedDetectorImageFilter);
# else
itkTypeMacro(CudaDisplacedDetectorImageFilter, itk::CudaInPlaceImageFilter);
# endif

protected:
/** Standard constructor **/
Expand Down
4 changes: 4 additions & 0 deletions include/rtkCudaFDKBackProjectionImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ class RTK_EXPORT CudaFDKBackProjectionImageFilter
itkNewMacro(Self);

/** Run-time type information (and related methods). */
# ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(CudaFDKBackProjectionImageFilter);
# else
itkTypeMacro(CudaFDKBackProjectionImageFilter, Superclass);
# endif

protected:
CudaFDKBackProjectionImageFilter();
Expand Down
4 changes: 4 additions & 0 deletions include/rtkCudaFDKConeBeamReconstructionFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ class RTK_EXPORT CudaFDKConeBeamReconstructionFilter
itkNewMacro(Self);

/** Runtime information support. */
# ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(CudaFDKConeBeamReconstructionFilter);
# else
itkTypeMacro(CudaFDKConeBeamReconstructionFilter, FDKConeBeamReconstructionFilter);
# endif

protected:
CudaFDKConeBeamReconstructionFilter();
Expand Down
4 changes: 4 additions & 0 deletions include/rtkCudaFDKWeightProjectionFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ class RTK_EXPORT CudaFDKWeightProjectionFilter
itkNewMacro(Self);

/** Run-time type information (and related methods). */
# ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(CudaFDKWeightProjectionFilter);
# else
itkTypeMacro(CudaFDKWeightProjectionFilter, itk::CudaInPlaceImageFilter);
# endif

protected:
/** Standard constructor **/
Expand Down
4 changes: 4 additions & 0 deletions include/rtkCudaFFTProjectionsConvolutionImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ class ITK_TEMPLATE_EXPORT CudaFFTProjectionsConvolutionImageFilter
using CudaFFTOutputImagePointer = CudaFFTOutputImageType::Pointer;

/** Runtime information support. */
# ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(CudaFFTProjectionsConvolutionImageFilter);
# else
itkTypeMacro(CudaFFTProjectionsConvolutionImageFilter, TParentImageFilter);
# endif

protected:
CudaFFTProjectionsConvolutionImageFilter();
Expand Down
4 changes: 4 additions & 0 deletions include/rtkCudaFFTRampImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ class RTK_EXPORT CudaFFTRampImageFilter
itkNewMacro(Self);

/** Runtime information support. */
# ifdef itkOverrideGetNameOfClassMacro
itkOverrideGetNameOfClassMacro(CudaFFTRampImageFilter);
# else
itkTypeMacro(CudaFFTRampImageFilter, FFTRampImageFilter);
# endif

protected:
CudaFFTRampImageFilter() {}
Expand Down
Loading

0 comments on commit eb90fb4

Please sign in to comment.