Skip to content

Commit d1562dd

Browse files
authored
Merge pull request #208 from N-Dekker/Replace-itkTypeMacro-with-itkOverrideGetNameOfClassMacro
DOC: Replace `itkTypeMacro` with `itkOverrideGetNameOfClassMacro`
2 parents 5ca0c63 + 5428594 commit d1562dd

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

SoftwareGuide/Cover/Source/ModelBasedSegmentation.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class IterationCallback : public itk::Command
3939
using Pointer = itk::SmartPointer<Self>;
4040
using ConstPointer = itk::SmartPointer<const Self>;
4141

42-
itkTypeMacro(IterationCallback, Superclass);
42+
itkOverrideGetNameOfClassMacro(IterationCallback);
4343
itkNewMacro(Self);
4444

4545
/** Type defining the optimizer */
@@ -118,7 +118,7 @@ class SimpleImageToSpatialObjectMetric : public itk::ImageToSpatialObjectMetric<
118118
itkNewMacro(Self);
119119

120120
/** Run-time type information (and related methods). */
121-
itkTypeMacro(SimpleImageToSpatialObjectMetric, ImageToSpatialObjectMetric);
121+
itkOverrideGetNameOfClassMacro(SimpleImageToSpatialObjectMetric);
122122

123123
enum
124124
{

SoftwareGuide/Latex/Appendices/CodingStyleGuide.tex

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,7 +2109,7 @@ \subsection{Indentation and Tabs}
21092109
itkNewMacro(Self);
21102110
21112111
/** Run-time type information (and related methods) */
2112-
itkTypeMacro(SpecializedFilter, ImageToImageFilter);
2112+
itkOverrideGetNameOfClassMacro(SpecializedFilter);
21132113
21142114
...
21152115
};
@@ -2228,7 +2228,7 @@ \subsection{White Spaces}
22282228
itkNewMacro(Self);
22292229
22302230
/** Run-time type information (and related methods) */
2231-
itkTypeMacro(SpecializedFilter, ImageToImageFilter);
2231+
itkOverrideGetNameOfClassMacro(SpecializedFilter);
22322232
22332233
// ...
22342234
};
@@ -3228,9 +3228,8 @@ \section{Using Standard Macros}
32283228
\item \code{itkNewMacro(T)}: Creates the static class method \code{New()}
32293229
that interacts with the object factory to instantiate objects. The method
32303230
returns a \code{SmartPointer<T>} properly reference counted.
3231-
\item \code{itkTypeMacro(thisClass, superclass)}: Adds standard methods a
3232-
class, mainly type information. Adds the \code{GetNameOfClass()} method to the
3233-
class.
3231+
\item \code{itkOverrideGetNameOfClassMacro(thisClass)}: Adds an override of
3232+
the \code{GetNameOfClass()} method to the class.
32343233
\item \code{ITK\_DISALLOW\_COPY\_AND\_ASSIGN(TypeName)}: Disallow copying by
32353234
declaring copy constructor and assignment operator deleted. This must be
32363235
declared in the \textbf{public} section.
@@ -3297,7 +3296,7 @@ \section{Using Standard Macros}
32973296
itkNewMacro(Self);
32983297
32993298
/** Run-time type information (and related methods). */
3300-
itkTypeMacro(Image, ImageBase);
3299+
itkOverrideGetNameOfClassMacro(Image);
33013300
\end{minted}
33023301
\normalsize
33033302

SoftwareGuide/Latex/DevelopmentGuidelines/WriteAFilter.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ \section{Filter Conventions}
532532
itkNewMacro(Self);
533533

534534
/** Run-time type information (and related methods). */
535-
itkTypeMacro(ExampleImageFilter, ImageToImageFilter);
535+
itkOverrideGetNameOfClassMacro(ExampleImageFilter);
536536
\end{minted}
537537

538538
The default constructor should be \code{protected}, and provide sensible

0 commit comments

Comments
 (0)