-
Notifications
You must be signed in to change notification settings - Fork 83
fix: 🐛 Switch to orienting the volume actor differently #70
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
fix: 🐛 Switch to orienting the volume actor differently #70
Conversation
Switch to orienting the volume actor differently depending on its acquisition direction, rather than filling up the volume differently.
@pieper , whenever you get a chance, please let me know if this is alright. I've tested in OHIF and it produces the same results as the previous PR. Thanks :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Big smile.
imageData.setSpacing(xSpacing, ySpacing, zSpacing); | ||
break; | ||
} | ||
imageData.setDirection(direction); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhh, sooo much nicer!
mapper.getInputData().getDirection() | ||
); | ||
//if (!model.volumeMapper.getInputData && model.volumeMapper.getMapper) { | ||
// mapper = model.volumeMapper.getMapper(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you still need to leave this dead code for some reason?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh good catch, I commented it out whilst refactoring but didn't delete it.
🎉 This PR is included in version 0.3.9 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@JamesAPetts I know this has already been merged, but the reason for the volumeCoordinate space was for volumes who's data was at oblique angles but you still wanted to set the Coronal to the volume's coronal orientation. Using the I solved that by actually forcing the data to the cartesian coordinates direction, then using the direction data to modify the camera angle only for the RAS compass labels. |
Switch to orienting the volume actor differently depending on its
acquisition direction, rather than filling up the volume differently.