-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add subcube loading #320
base: main
Are you sure you want to change the base?
Add subcube loading #320
Conversation
…r a triplet set or configuration that is not there.
…Issue with toggle and input field not allowing interaction.
…to the other interactables of the subset UI.� * Added subset loading of fits files to VolumeDataSet. * Added subset loading of mask to fits_reader c++ library.
* Fix an issue where the UI subset assumed zero-indexed. * Fix that the smallest dimension was two, it's now one. * Fix that the UI allowed max to be less than min and vice versa.
* Cell outline is now broken, need to fix.
Add crop select and values to the sub cubes. |
* Corrected the subcube offset to not happen. * Added documentation for functions that I knew the purpose of.
* Merging main in to get debug log and test a few things.
* An unrelated issue when painting on a cube with no mask loaded is now apparent. VolumeDataSetRenderer:502 is true, but still get error as if it wasn't.
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.
Code looks good. Just some removal of old commented out stuff. I think we wait a little on testing before merging.
// savePopup.transform.SetParent(this.transform.parent, false); | ||
// savePopup.transform.localPosition = this.transform.localPosition; | ||
// savePopup.transform.localRotation = this.transform.localRotation; | ||
// savePopup.transform.localScale = this.transform.localScale; | ||
|
||
// savePopup.transform.Find("Content").gameObject.transform.Find("FirstRow").gameObject.transform.Find("Cancel").GetComponent<Button>().onClick.RemoveAllListeners(); | ||
// savePopup.transform.Find("Content").gameObject.transform.Find("FirstRow").gameObject.transform.Find("Overwrite").GetComponent<Button>().onClick.RemoveAllListeners(); | ||
// savePopup.transform.Find("Content").gameObject.transform.Find("FirstRow").gameObject.transform.Find("NewFile").GetComponent<Button>().onClick.RemoveAllListeners(); | ||
|
||
// savePopup.transform.Find("Content").gameObject.transform.Find("FirstRow").gameObject.transform.Find("Cancel").GetComponent<Button>().onClick.AddListener(SaveCancel); | ||
// savePopup.transform.Find("Content").gameObject.transform.Find("FirstRow").gameObject.transform.Find("Overwrite").GetComponent<Button>().onClick.AddListener(SaveOverwriteMask); | ||
// savePopup.transform.Find("Content").gameObject.transform.Find("FirstRow").gameObject.transform.Find("NewFile").GetComponent<Button>().onClick.AddListener(SaveNewMask); |
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.
Should we just remove these lines?
// exportPopup.transform.SetParent(this.transform.parent, false); | ||
// exportPopup.transform.localPosition = this.transform.localPosition; | ||
// exportPopup.transform.localRotation = this.transform.localRotation; | ||
// exportPopup.transform.localScale = this.transform.localScale; | ||
|
||
// exportPopup.transform.Find("Content").gameObject.transform.Find("FirstRow").gameObject.transform.Find("Cancel").GetComponent<Button>().onClick.RemoveAllListeners(); | ||
// exportPopup.transform.Find("Content").gameObject.transform.Find("FirstRow").gameObject.transform.Find("SubCube").GetComponent<Button>().onClick.RemoveAllListeners(); | ||
// exportPopup.transform.Find("Content").gameObject.transform.Find("FirstRow").gameObject.transform.Find("Mask").GetComponent<Button>().onClick.RemoveAllListeners(); | ||
|
||
// exportPopup.transform.Find("Content").gameObject.transform.Find("FirstRow").gameObject.transform.Find("Cancel").GetComponent<Button>().onClick.AddListener(ExportCancel); | ||
// exportPopup.transform.Find("Content").gameObject.transform.Find("FirstRow").gameObject.transform.Find("SubCube").GetComponent<Button>().onClick.AddListener(SaveSubCube); | ||
// exportPopup.transform.Find("Content").gameObject.transform.Find("FirstRow").gameObject.transform.Find("Mask").GetComponent<Button>().onClick.AddListener(SaveMask); |
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.
Remove these as well?
return -1; | ||
} | ||
std::stringstream debug; | ||
debug << "Closing fitsfile " << fptr->Fptr->filename << "."; |
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.
In the long time I have used cfitsio, I have never thought about using a member of Fptr XD
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.
Excellent! Your changes will add a bit more robustness to the fits reading/writing.
* Read as many slices as fit in long::max() pixels.
…o/idia_unity_vr into cilliers/fix-issue-307
* Fix issue with loading cubes with NAXES>3 in the new method.
Resolve #307 and resolve #318.