diff --git a/Modules/Core/Common/include/itkAnatomicalOrientation.h b/Modules/Core/Common/include/itkAnatomicalOrientation.h index 316956b8cee..bb977d5382e 100644 --- a/Modules/Core/Common/include/itkAnatomicalOrientation.h +++ b/Modules/Core/Common/include/itkAnatomicalOrientation.h @@ -54,7 +54,7 @@ class ITKCommon_EXPORT AnatomicalOrientation enum class CoordinateEnum : uint8_t { UNKNOWN = 0, -#ifdef ITK_AMBIBUOUS_TO_COORDINATE_ENUMS +#ifdef ITK_AMBIGUOUS_TO_COORDINATE_ENUMS Left = 2, Right = 3, Anterior = 4, @@ -88,322 +88,317 @@ class ITKCommon_EXPORT AnatomicalOrientation GetCoordinateTerm(CoordinateMajornessTermsEnum cmt) const; public: -#define ITK_ORIENTATION_ENUM(P, S, T) m_OrientationValue
-
-
enum class ToEnum : uint32_t
{
INVALID = 0,
- RIP = ITK_ORIENTATION_ENUM(CoordinateEnum::LeftToRight,
- CoordinateEnum::SuperiorToInferior,
- CoordinateEnum::AnteriorToPosterior),
- LIP = ITK_ORIENTATION_ENUM(CoordinateEnum::RightToLeft,
- CoordinateEnum::SuperiorToInferior,
- CoordinateEnum::AnteriorToPosterior),
- RSP = ITK_ORIENTATION_ENUM(CoordinateEnum::LeftToRight,
- CoordinateEnum::InferiorToSuperior,
- CoordinateEnum::AnteriorToPosterior),
- LSP = ITK_ORIENTATION_ENUM(CoordinateEnum::RightToLeft,
- CoordinateEnum::InferiorToSuperior,
- CoordinateEnum::AnteriorToPosterior),
- RIA = ITK_ORIENTATION_ENUM(CoordinateEnum::LeftToRight,
- CoordinateEnum::SuperiorToInferior,
- CoordinateEnum::PosteriorToAnterior),
- LIA = ITK_ORIENTATION_ENUM(CoordinateEnum::RightToLeft,
- CoordinateEnum::SuperiorToInferior,
- CoordinateEnum::PosteriorToAnterior),
- RSA = ITK_ORIENTATION_ENUM(CoordinateEnum::LeftToRight,
- CoordinateEnum::InferiorToSuperior,
- CoordinateEnum::PosteriorToAnterior),
- LSA = ITK_ORIENTATION_ENUM(CoordinateEnum::RightToLeft,
- CoordinateEnum::InferiorToSuperior,
- CoordinateEnum::PosteriorToAnterior),
-
- IRP = ITK_ORIENTATION_ENUM(CoordinateEnum::SuperiorToInferior,
- CoordinateEnum::LeftToRight,
- CoordinateEnum::AnteriorToPosterior),
- ILP = ITK_ORIENTATION_ENUM(CoordinateEnum::SuperiorToInferior,
- CoordinateEnum::RightToLeft,
- CoordinateEnum::AnteriorToPosterior),
- SRP = ITK_ORIENTATION_ENUM(CoordinateEnum::InferiorToSuperior,
- CoordinateEnum::LeftToRight,
- CoordinateEnum::AnteriorToPosterior),
- SLP = ITK_ORIENTATION_ENUM(CoordinateEnum::InferiorToSuperior,
- CoordinateEnum::RightToLeft,
- CoordinateEnum::AnteriorToPosterior),
- IRA = ITK_ORIENTATION_ENUM(CoordinateEnum::SuperiorToInferior,
- CoordinateEnum::LeftToRight,
- CoordinateEnum::PosteriorToAnterior),
- ILA = ITK_ORIENTATION_ENUM(CoordinateEnum::SuperiorToInferior,
- CoordinateEnum::RightToLeft,
- CoordinateEnum::PosteriorToAnterior),
- SRA = ITK_ORIENTATION_ENUM(CoordinateEnum::InferiorToSuperior,
- CoordinateEnum::LeftToRight,
- CoordinateEnum::PosteriorToAnterior),
- SLA = ITK_ORIENTATION_ENUM(CoordinateEnum::InferiorToSuperior,
- CoordinateEnum::RightToLeft,
- CoordinateEnum::PosteriorToAnterior),
-
- RPI = ITK_ORIENTATION_ENUM(CoordinateEnum::LeftToRight,
- CoordinateEnum::AnteriorToPosterior,
- CoordinateEnum::SuperiorToInferior),
- LPI = ITK_ORIENTATION_ENUM(CoordinateEnum::RightToLeft,
- CoordinateEnum::AnteriorToPosterior,
- CoordinateEnum::SuperiorToInferior),
- RAI = ITK_ORIENTATION_ENUM(CoordinateEnum::LeftToRight,
- CoordinateEnum::PosteriorToAnterior,
- CoordinateEnum::SuperiorToInferior),
- LAI = ITK_ORIENTATION_ENUM(CoordinateEnum::RightToLeft,
- CoordinateEnum::PosteriorToAnterior,
- CoordinateEnum::SuperiorToInferior),
- RPS = ITK_ORIENTATION_ENUM(CoordinateEnum::LeftToRight,
- CoordinateEnum::AnteriorToPosterior,
- CoordinateEnum::InferiorToSuperior),
- LPS = ITK_ORIENTATION_ENUM(CoordinateEnum::RightToLeft,
- CoordinateEnum::AnteriorToPosterior,
- CoordinateEnum::InferiorToSuperior),
- RAS = ITK_ORIENTATION_ENUM(CoordinateEnum::LeftToRight,
- CoordinateEnum::PosteriorToAnterior,
- CoordinateEnum::InferiorToSuperior),
- LAS = ITK_ORIENTATION_ENUM(CoordinateEnum::RightToLeft,
- CoordinateEnum::PosteriorToAnterior,
- CoordinateEnum::InferiorToSuperior),
-
- PRI = ITK_ORIENTATION_ENUM(CoordinateEnum::AnteriorToPosterior,
- CoordinateEnum::LeftToRight,
- CoordinateEnum::SuperiorToInferior),
- PLI = ITK_ORIENTATION_ENUM(CoordinateEnum::AnteriorToPosterior,
- CoordinateEnum::RightToLeft,
- CoordinateEnum::SuperiorToInferior),
- ARI = ITK_ORIENTATION_ENUM(CoordinateEnum::PosteriorToAnterior,
- CoordinateEnum::LeftToRight,
- CoordinateEnum::SuperiorToInferior),
- ALI = ITK_ORIENTATION_ENUM(CoordinateEnum::PosteriorToAnterior,
- CoordinateEnum::RightToLeft,
- CoordinateEnum::SuperiorToInferior),
- PRS = ITK_ORIENTATION_ENUM(CoordinateEnum::AnteriorToPosterior,
- CoordinateEnum::LeftToRight,
- CoordinateEnum::InferiorToSuperior),
- PLS = ITK_ORIENTATION_ENUM(CoordinateEnum::AnteriorToPosterior,
- CoordinateEnum::RightToLeft,
- CoordinateEnum::InferiorToSuperior),
- ARS = ITK_ORIENTATION_ENUM(CoordinateEnum::PosteriorToAnterior,
- CoordinateEnum::LeftToRight,
- CoordinateEnum::InferiorToSuperior),
- ALS = ITK_ORIENTATION_ENUM(CoordinateEnum::PosteriorToAnterior,
- CoordinateEnum::RightToLeft,
- CoordinateEnum::InferiorToSuperior),
-
- IPR = ITK_ORIENTATION_ENUM(CoordinateEnum::SuperiorToInferior,
- CoordinateEnum::AnteriorToPosterior,
- CoordinateEnum::LeftToRight),
- SPR = ITK_ORIENTATION_ENUM(CoordinateEnum::InferiorToSuperior,
- CoordinateEnum::AnteriorToPosterior,
- CoordinateEnum::LeftToRight),
- IAR = ITK_ORIENTATION_ENUM(CoordinateEnum::SuperiorToInferior,
- CoordinateEnum::PosteriorToAnterior,
- CoordinateEnum::LeftToRight),
- SAR = ITK_ORIENTATION_ENUM(CoordinateEnum::InferiorToSuperior,
- CoordinateEnum::PosteriorToAnterior,
- CoordinateEnum::LeftToRight),
- IPL = ITK_ORIENTATION_ENUM(CoordinateEnum::SuperiorToInferior,
- CoordinateEnum::AnteriorToPosterior,
- CoordinateEnum::RightToLeft),
- SPL = ITK_ORIENTATION_ENUM(CoordinateEnum::InferiorToSuperior,
- CoordinateEnum::AnteriorToPosterior,
- CoordinateEnum::RightToLeft),
- IAL = ITK_ORIENTATION_ENUM(CoordinateEnum::SuperiorToInferior,
- CoordinateEnum::PosteriorToAnterior,
- CoordinateEnum::RightToLeft),
- SAL = ITK_ORIENTATION_ENUM(CoordinateEnum::InferiorToSuperior,
- CoordinateEnum::PosteriorToAnterior,
- CoordinateEnum::RightToLeft),
-
- PIR = ITK_ORIENTATION_ENUM(CoordinateEnum::AnteriorToPosterior,
- CoordinateEnum::SuperiorToInferior,
- CoordinateEnum::LeftToRight),
- PSR = ITK_ORIENTATION_ENUM(CoordinateEnum::AnteriorToPosterior,
- CoordinateEnum::InferiorToSuperior,
- CoordinateEnum::LeftToRight),
- AIR = ITK_ORIENTATION_ENUM(CoordinateEnum::PosteriorToAnterior,
- CoordinateEnum::SuperiorToInferior,
- CoordinateEnum::LeftToRight),
- ASR = ITK_ORIENTATION_ENUM(CoordinateEnum::PosteriorToAnterior,
- CoordinateEnum::InferiorToSuperior,
- CoordinateEnum::LeftToRight),
- PIL = ITK_ORIENTATION_ENUM(CoordinateEnum::AnteriorToPosterior,
- CoordinateEnum::SuperiorToInferior,
- CoordinateEnum::RightToLeft),
- PSL = ITK_ORIENTATION_ENUM(CoordinateEnum::AnteriorToPosterior,
- CoordinateEnum::InferiorToSuperior,
- CoordinateEnum::RightToLeft),
- AIL = ITK_ORIENTATION_ENUM(CoordinateEnum::PosteriorToAnterior,
- CoordinateEnum::SuperiorToInferior,
- CoordinateEnum::RightToLeft),
- ASL = ITK_ORIENTATION_ENUM(CoordinateEnum::PosteriorToAnterior,
- CoordinateEnum::InferiorToSuperior,
- CoordinateEnum::RightToLeft)
+ RIP = m_OrientationValue