Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMP: Update SpatialObjects to correct const-ness #2680

Merged
merged 2 commits into from
Aug 11, 2021
Merged

COMP: Update SpatialObjects to correct const-ness #2680

merged 2 commits into from
Aug 11, 2021

Conversation

aylward
Copy link
Member

@aylward aylward commented Aug 8, 2021

SpatialObjects can now return a const list of their children, and SpatialObjectWriter accepts a const object.

Furthermore, updated test...A spatial object point has a position in object space, but until it is added to a spatial object (which potentially exists in a hierarchy of objects with parent/child transforms) the point does not have a position in world space. So, the test has been updated to add a point to an object before asking for that point's world space position.

@aylward aylward requested a review from thewtex August 8, 2021 01:57
@github-actions github-actions bot added area:Core Issues affecting the Core module area:IO Issues affecting the IO module type:Compiler Compiler support or related warnings type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct area:Python wrapping Python bindings for a class labels Aug 8, 2021
@thewtex thewtex changed the base branch from master to release August 9, 2021 14:19
@thewtex thewtex changed the base branch from release to master August 9, 2021 14:20
@thewtex thewtex changed the base branch from master to release August 10, 2021 13:58
@thewtex thewtex changed the base branch from release to master August 10, 2021 14:00
BUG: Must add a point to a spatial object before requesting world info

A spatial object point has a position in object space, but until
it is added to a spatial object (which potentially exists in a
hierarchy of objects with parent/child transforms) the point
does not have a position in world space.  So, the test has been
updated to add a point to an object before asking for that point's
world space position.
@thewtex thewtex changed the base branch from master to release August 10, 2021 14:02
@aylward
Copy link
Member Author

aylward commented Aug 10, 2021

I am verifying these changes with TubeTK. Please hold on merging. Almost done...

@aylward
Copy link
Member Author

aylward commented Aug 10, 2021

All have been verified.

@thewtex or @dzenanz - can you cherry-pick to release?

Thanks!
Stephen

@thewtex
Copy link
Member

thewtex commented Aug 10, 2021

Awesome, thanks, @aylward ! I will integrate after CI finishes.

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.

Love the tests 💚

@thewtex thewtex merged commit c6d7dde into InsightSoftwareConsortium:release Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Core Issues affecting the Core module area:IO Issues affecting the IO module area:Python wrapping Python bindings for a class type:Compiler Compiler support or related warnings type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants