Skip to content

Commit

Permalink
DOC: Fix legacy methods itk::Transform Doxygen warnings
Browse files Browse the repository at this point in the history
Fix legacy methods `itk::Transform` Doxygen warnings: protect with the
`ITK_LEGACY_REMOVE` macro definition a function declared as legacy with
the `itkLegacyMacro` in `itk::Transform`.

Fixes:
```
Warning
Parsing file /home/kitware/DashboModules/Core/Transform/include/itkTransform.h:535:
 warning: Illegal member name found.
```

and
```
Warning
Modules/Core/Transform/include/itkTransform.h:535:
 warning: no uniquely matching class member found for
  itk::Transform::virtual void itk::Transform< TParametersValueType, VInputDimension, VOutputDimension >::ComputeInverseJacobianWithRespectToPosition() const &
```

Raised for example in:
https://open.cdash.org/viewBuildError.php?type=1&buildid=10124761
  • Loading branch information
jhlegarreta authored and dzenanz committed Jan 8, 2025
1 parent b590861 commit dbb5005
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Modules/Core/Transform/include/itkTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -529,9 +529,11 @@ class ITK_TEMPLATE_EXPORT Transform : public TransformBaseTemplate<TParametersVa
" is unimplemented for "
<< this->GetNameOfClass());
}

#if !defined(ITK_LEGACY_REMOVE)
itkLegacyMacro(virtual void ComputeJacobianWithRespectToPosition(const InputPointType & x, JacobianType & jacobian)
const;)

#endif

/** This provides the ability to get a local jacobian value
* in a dense/local transform, e.g. DisplacementFieldTransform. For such
Expand All @@ -540,8 +542,11 @@ class ITK_TEMPLATE_EXPORT Transform : public TransformBaseTemplate<TParametersVa
* since there is no change with respect to position. */
virtual void
ComputeInverseJacobianWithRespectToPosition(const InputPointType & pnt, InverseJacobianPositionType & jacobian) const;

#if !defined(ITK_LEGACY_REMOVE)
itkLegacyMacro(virtual void ComputeInverseJacobianWithRespectToPosition(const InputPointType & x,
JacobianType & jacobian) const;)
#endif

/** Apply this transform to an image without resampling.
*
Expand Down

0 comments on commit dbb5005

Please sign in to comment.