Skip to content

STYLE: CoordRepType -> CoordinateType code readability#1894

Merged
hjmjohnson merged 2 commits intomasterfrom
use-CoordinateType
Jun 19, 2025
Merged

STYLE: CoordRepType -> CoordinateType code readability#1894
hjmjohnson merged 2 commits intomasterfrom
use-CoordinateType

Conversation

@hjmjohnson
Copy link
Collaborator

Description

For the sake of code readability, a new 'CoordinateType' alias is added for
each nested 'CoordRepType' alias. The old 'CoordRepType' aliases will still be
available with ITK 6.0, but it is recommended to use 'CoordinateType' instead.
The 'CoordRepType' aliases will be removed when 'ITK_FUTURE_LEGACY_REMOVE' is
enabled. Similarly, 'InputCoordinateType', 'OutputCoordinateType', and
'ImagePointCoordinateType' replace 'InputCoordRepType', 'OutputCoordRepType',
and 'ImagePointCoordRepType', respectively.

Used ITK/Utilities/Maintenance/migrate-itk6-code-recommendations.sh to apply updates.

@hjmjohnson hjmjohnson force-pushed the use-CoordinateType branch from be368b3 to b54d5ff Compare June 19, 2025 20:53
@ntustison
Copy link
Member

Thanks @hjmjohnson

@hjmjohnson
Copy link
Collaborator Author

NOTE: All 5.4 releases are forward compatible with the preferred naming.

@hjmjohnson hjmjohnson requested review from cookpa and ntustison June 19, 2025 22:06
    The two MersenneTwisterRandomVariateGenerator member functions  and
     behave the same, but  is more commonly used, and clearer.
For the sake of code readability, a new 'CoordinateType' alias is added for
each nested 'CoordRepType' alias. The old 'CoordRepType' aliases will still be
available with ITK 6.0, but it is recommended to use 'CoordinateType' instead.
The 'CoordRepType' aliases will be removed when 'ITK_FUTURE_LEGACY_REMOVE' is
enabled. Similarly, 'InputCoordinateType', 'OutputCoordinateType', and
'ImagePointCoordinateType' replace 'InputCoordRepType', 'OutputCoordRepType',
and 'ImagePointCoordRepType', respectively.

Change implemented using:
```bash
  ITK/Utilities/Maintenance/migrate-itk6-code-recommendations.sh
```
@hjmjohnson hjmjohnson force-pushed the use-CoordinateType branch from b54d5ff to ea66500 Compare June 19, 2025 22:16
@hjmjohnson
Copy link
Collaborator Author

One more missed change added.

@hjmjohnson
Copy link
Collaborator Author

This builds with both ITKv5.4 and ITKv6/master with LEGACY code removed.

@hjmjohnson hjmjohnson merged commit 193e36e into master Jun 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants