Skip to content

Commit

Permalink
COMP: Remove CMake warning related to ITK_USE_CONCEPT_CHECKING
Browse files Browse the repository at this point in the history
The warning has been introduced by
InsightSoftwareConsortium/ITK@9e582fd
Simon Rit authored and SimonRit committed Jan 28, 2025
1 parent c5e020c commit 552dba8
Showing 9 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion documentation/Doxygen/doxygen.config.in
Original file line number Diff line number Diff line change
@@ -2167,7 +2167,6 @@ PREDEFINED = "itkNotUsed(x)=" \
"size_t=vcl_size_t" \
"ITK_USE_FFTWD" \
"ITK_USE_FFTWF" \
"ITK_USE_CONCEPT_CHECKING" \
"itkMacro_h" \
"ITK_LEGACY_REMOVE" \
"ITK_FUTURE_LEGACY_REMOVE" \
2 changes: 0 additions & 2 deletions include/rtkElektaSynergyRawLookupTableImageFilter.h
Original file line number Diff line number Diff line change
@@ -62,10 +62,8 @@ class ITK_TEMPLATE_EXPORT ElektaSynergyRawLookupTableImageFilter
/** Runtime information support. */
itkOverrideGetNameOfClassMacro(ElektaSynergyRawLookupTableImageFilter);

#ifdef ITK_USE_CONCEPT_CHECKING
// Begin concept checking
itkConceptMacro(SameTypeCheck, (itk::Concept::SameType<InputImagePixelType, unsigned short>));
#endif

protected:
ElektaSynergyRawLookupTableImageFilter();
2 changes: 0 additions & 2 deletions include/rtkFFTProjectionsConvolutionImageFilter.h
Original file line number Diff line number Diff line change
@@ -113,9 +113,7 @@ class ITK_TEMPLATE_EXPORT FFTProjectionsConvolutionImageFilter
}
}

#ifdef ITK_USE_CONCEPT_CHECKING
itkConceptMacro(ImageDimensionCheck, (itk::Concept::SameDimensionOrMinusOne<Self::InputImageDimension, 3>));
#endif

protected:
FFTProjectionsConvolutionImageFilter();
2 changes: 0 additions & 2 deletions include/rtkForwardDifferenceGradientImageFilter.h
Original file line number Diff line number Diff line change
@@ -129,12 +129,10 @@ class ITK_TEMPLATE_EXPORT ForwardDifferenceGradientImageFilter
void
OverrideBoundaryCondition(itk::ImageBoundaryCondition<TInputImage> * boundaryCondition);

#ifdef ITK_USE_CONCEPT_CHECKING
// Begin concept checking
itkConceptMacro(InputConvertibleToOutputCheck, (itk::Concept::Convertible<InputPixelType, OutputValueType>));
itkConceptMacro(OutputHasNumericTraitsCheck, (itk::Concept::HasNumericTraits<OutputValueType>));
// End concept checking
#endif

/** The UseImageDirection flag determines whether image derivatives are
* computed with respect to the image grid or with respect to the physical
2 changes: 0 additions & 2 deletions include/rtkMagnitudeThresholdImageFilter.h
Original file line number Diff line number Diff line change
@@ -79,12 +79,10 @@ class ITK_TEMPLATE_EXPORT MagnitudeThresholdImageFilter : public itk::InPlaceIma
/** Superclass type alias. */
using OutputImageRegionType = typename Superclass::OutputImageRegionType;

#ifdef ITK_USE_CONCEPT_CHECKING
/** Begin concept checking */
itkConceptMacro(InputHasNumericTraitsCheck, (itk::Concept::HasNumericTraits<typename InputPixelType::ValueType>));
itkConceptMacro(RealTypeHasNumericTraitsCheck, (itk::Concept::HasNumericTraits<RealType>));
/** End concept checking */
#endif

itkGetMacro(Threshold, TRealType);
itkSetMacro(Threshold, TRealType);
2 changes: 0 additions & 2 deletions include/rtkSingularValueThresholdImageFilter.h
Original file line number Diff line number Diff line change
@@ -89,12 +89,10 @@ class ITK_TEMPLATE_EXPORT SingularValueThresholdImageFilter : public itk::InPlac
/** Superclass type alias. */
using OutputImageRegionType = typename Superclass::OutputImageRegionType;

#ifdef ITK_USE_CONCEPT_CHECKING
/** Begin concept checking */
itkConceptMacro(InputHasNumericTraitsCheck, (itk::Concept::HasNumericTraits<typename InputPixelType::ValueType>));
itkConceptMacro(RealTypeHasNumericTraitsCheck, (itk::Concept::HasNumericTraits<RealType>));
/** End concept checking */
#endif

itkGetMacro(Threshold, TRealType);
itkSetMacro(Threshold, TRealType);
2 changes: 0 additions & 2 deletions include/rtkSoftThresholdImageFilter.h
Original file line number Diff line number Diff line change
@@ -116,14 +116,12 @@ class ITK_TEMPLATE_EXPORT SoftThresholdImageFilter
virtual void
SetThreshold(const InputPixelType threshold);

#ifdef ITK_USE_CONCEPT_CHECKING
/** Begin concept checking */
itkConceptMacro(OutputEqualityComparableCheck, (itk::Concept::EqualityComparable<OutputPixelType>));
itkConceptMacro(InputPixelTypeComparable, (itk::Concept::Comparable<InputPixelType>));
itkConceptMacro(InputOStreamWritableCheck, (itk::Concept::OStreamWritable<InputPixelType>));
itkConceptMacro(OutputOStreamWritableCheck, (itk::Concept::OStreamWritable<OutputPixelType>));
/** End concept checking */
#endif

protected:
SoftThresholdImageFilter();
2 changes: 0 additions & 2 deletions include/rtkSoftThresholdTVImageFilter.h
Original file line number Diff line number Diff line change
@@ -79,11 +79,9 @@ class ITK_TEMPLATE_EXPORT SoftThresholdTVImageFilter : public itk::ImageToImageF
/** Superclass type alias. */
using OutputImageRegionType = typename Superclass::OutputImageRegionType;

#ifdef ITK_USE_CONCEPT_CHECKING
/** Begin concept checking */
itkConceptMacro(InputHasNumericTraitsCheck, (itk::Concept::HasNumericTraits<typename InputPixelType::ValueType>));
/** End concept checking */
#endif

itkGetMacro(Threshold, float);
itkSetMacro(Threshold, float);
2 changes: 0 additions & 2 deletions include/rtkTotalVariationImageFilter.h
Original file line number Diff line number Diff line change
@@ -104,11 +104,9 @@ class ITK_TEMPLATE_EXPORT TotalVariationImageFilter : public itk::ImageToImageFi
DataObjectPointer
MakeOutput(DataObjectPointerArraySizeType output) override;

#ifdef ITK_USE_CONCEPT_CHECKING
// Begin concept checking
itkConceptMacro(InputHasNumericTraitsCheck, (itk::Concept::HasNumericTraits<PixelType>));
// End concept checking
#endif

/** Use the image spacing information in calculations. Use this option if you
* want derivatives in physical space. Default is UseImageSpacingOn. */

0 comments on commit 552dba8

Please sign in to comment.