Skip to content

Commit

Permalink
BUG: SAGITAL_PLANE -> SAGITTAL_PLANE, though with legacy support
Browse files Browse the repository at this point in the history
  • Loading branch information
Leengit committed Jan 23, 2025
1 parent ec75692 commit 8d828aa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Modules/Core/Common/include/itkCommonEnums.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,10 @@ class OctreeEnums
enum class Octree : uint8_t
{
UNKNOWN_PLANE, ///< The plane is Unknown
SAGITAL_PLANE, ///< The plane is Sagittal
SAGITTAL_PLANE, ///< The plane is Sagittal
#if !defined(ITK_LEGACY_REMOVE)
SAGITAL_PLANE = SAGITTAL_PLANE, ///< Support misspelling
#endif
CORONAL_PLANE, ///< The plane is Coronal
TRANSVERSE_PLANE ///< The plane is Transverse
};
Expand Down
2 changes: 2 additions & 0 deletions Modules/Core/Common/include/itkOctree.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class ITKCommon_EXPORT OctreeBase : public Object
// We need to expose the enum values at the class level
// for backwards compatibility
static constexpr OctreeEnum UNKNOWN_PLANE = OctreeEnum::UNKNOWN_PLANE;
static constexpr OctreeEnum SAGITTAL_PLANE = OctreeEnum::SAGITTAL_PLANE;
static constexpr OctreeEnum SAGITAL_PLANE = OctreeEnum::SAGITAL_PLANE;
static constexpr OctreeEnum CORONAL_PLANE = OctreeEnum::CORONAL_PLANE;
static constexpr OctreeEnum TRANSVERSE_PLANE = OctreeEnum::TRANSVERSE_PLANE;
Expand Down Expand Up @@ -187,6 +188,7 @@ class ITK_TEMPLATE_EXPORT Octree : public OctreeBase
* */
#if !defined(ITK_LEGACY_REMOVE)
static constexpr OctreeEnum UNKNOWN_PLANE = OctreeEnum::UNKNOWN_PLANE;
static constexpr OctreeEnum SAGITTAL_PLANE = OctreeEnum::SAGITTAL_PLANE;
static constexpr OctreeEnum SAGITAL_PLANE = OctreeEnum::SAGITAL_PLANE;
static constexpr OctreeEnum CORONAL_PLANE = OctreeEnum::CORONAL_PLANE;
static constexpr OctreeEnum TRANSVERSE_PLANE = OctreeEnum::TRANSVERSE_PLANE;
Expand Down
4 changes: 2 additions & 2 deletions Modules/Core/Common/src/itkCommonEnums.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ operator<<(std::ostream & out, const OctreeEnums::Octree value)
{
case OctreeEnums::Octree::UNKNOWN_PLANE:
return "itk::OctreeEnums::Octree::UNKNOWN_PLANE";
case OctreeEnums::Octree::SAGITAL_PLANE:
return "itk::OctreeEnums::Octree::SAGITAL_PLANE";
case OctreeEnums::Octree::SAGITTAL_PLANE:
return "itk::OctreeEnums::Octree::SAGITTAL_PLANE";
case OctreeEnums::Octree::CORONAL_PLANE:
return "itk::OctreeEnums::Octree::CORONAL_PLANE";
case OctreeEnums::Octree::TRANSVERSE_PLANE:
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/test/itkOctreeTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ itkOctreeTest(int, char *[])

// Test streaming enumeration for OctreeEnums::Octree elements
const std::set<itk::OctreeEnums::Octree> allOctree{ itk::OctreeEnums::Octree::UNKNOWN_PLANE,
itk::OctreeEnums::Octree::SAGITAL_PLANE,
itk::OctreeEnums::Octree::SAGITTAL_PLANE,
itk::OctreeEnums::Octree::CORONAL_PLANE,
itk::OctreeEnums::Octree::TRANSVERSE_PLANE };
for (const auto & ee : allOctree)
Expand Down

0 comments on commit 8d828aa

Please sign in to comment.