Skip to content

COMP: Fix AnatomicalOrientation Enum#4899

Merged
blowekamp merged 1 commit intoInsightSoftwareConsortium:masterfrom
blowekamp:add_anatomical_orientation
Oct 25, 2024
Merged

COMP: Fix AnatomicalOrientation Enum#4899
blowekamp merged 1 commit intoInsightSoftwareConsortium:masterfrom
blowekamp:add_anatomical_orientation

Conversation

@blowekamp
Copy link
Member

Addresses compilation errors on optional module.

@blowekamp blowekamp requested review from N-Dekker and dzenanz October 24, 2024 18:26
@github-actions github-actions bot added type:Compiler Compiler support or related warnings area:IO Issues affecting the IO module labels Oct 24, 2024
Copy link
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 @blowekamp thanks for the quick follow-up

spacing.SetIdentity();

AnatomicalOrientation coord_orient(AnatomicalOrientation::FromEnum::RSA);
AnatomicalOrientation coord_orient(AnatomicalOrientation::NegativeEnum::RSA);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @blowekamp! Just for my understanding, why NegativeEnum, why not PositiveEnum ? They both have an RSA constant, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They were originally ToEnum, and FromEnum, then renamed to PositiveEnum and NegativeEnum. That change was applied here. There should be a description of these two ambiguous notations in the AnatomicalOrientation class. Please read it and let me know if you have specific suggestions to improve clarity.

This particular value is not used, but is require as AnatomicalOrientation is not default constructible ( perhaps INVALID) would be a reasonable default?

@blowekamp blowekamp merged commit f8b31d8 into InsightSoftwareConsortium:master Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:IO Issues affecting the IO module type:Compiler Compiler support or related warnings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants