-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
feat: Add commands to load SEGs and SRs for the active viewport + new hp callback for viewport changes #5381
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
Conversation
✅ Deploy Preview for ohif-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Viewers
|
||||||||||||||||||||||||||||
| Project |
Viewers
|
| Branch Review |
feat/load-derived-display-sets
|
| Run status |
|
| Run duration | 02m 21s |
| Commit |
|
| Committer | Igor Octaviano |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
37
|
| View all changes introduced in this branch ↗︎ | |
sedghi
left a comment
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.
see my comments thanks
jbocce
left a comment
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.
Minor comment
|
Can someone clarify what needs to be happen to merge this? @igoroctaviano |
platform/docs/versioned_docs/version-3.11/platform/extensions/modules/hpModule.md
Outdated
Show resolved
Hide resolved
|
I understand your idea, but I'm not convinced it's the best way forward anymore. We've got new plans for the |
This is not just about the callback. I'm happy to remove the callback part of it. |
The fact that there are load commands for various things actually fits into the new framework fairly well because it means the load action has already gotten isolated to the command module. That will make things more reliable and break fewer things going forward. I'm hoping that the hanging protocol methods will be backwards compatible as well for some length of time as we switch to a better design around the viewport grid. That way people can continue using the commands to allow loading/specifying applicability, and the commands can be enhanced in the future to add more options to allow finer control over viewport setup related to loading of data. Ideally the existing sr/seg viewports should be switched to use the commands, and then once the viewport grid is ready, we only have to fix the commands in one spot to fix loading generally. |
http://localhost:3000/viewer?StudyInstanceUIDs=1.3.6.1.4.1.14519.5.2.1.1706.8374.643249677828306008300337414785https://deploy-preview-5381--ohif-dev.netlify.appContext
Changes & Results
Load derived display sets (SEGs / RTSTRUCTs / SRs) for the active viewport
loadSegmentationsForActiveViewportloadSRsForActiveViewportSEG,RTSTRUCT) that reference the currently displayed data.Hanging Protocol: viewport data change callback
callbacks.onViewportDataChanged?: Command[]cornerstoneViewportService.EVENTS.VIEWPORT_DATA_CHANGEDfires, passing:viewportIdviewportDataprotocolstageIndexHP listener lifecycle + initialization fix
onViewportDataInitializedcallback execution so the configured command list runs correctly and the subscription is cleaned up.Docs
onViewportDataChangedin:platform/docs/docs/platform/extensions/modules/hpModule.mdplatform/docs/versioned_docs/version-3.11/platform/extensions/modules/hpModule.mdTesting
http://localhost:3000/viewer?StudyInstanceUIDs=1.3.6.1.4.1.14519.5.2.1.1706.8374.643249677828306008300337414785https://deploy-preview-5381--ohif-dev.netlify.apploadSegmentationsForActiveViewportand verify derived SEG/RTSTRUCT overlays get loaded and applied to the active viewport.loadSRsForActiveViewportand verify derived SRs are loaded and hydrated.callbacks.onViewportDataChanged: [...]that runs one of the new load commands.Checklist
PR
semantic-release format and guidelines.
Suggested PR title
feat(Cornerstone): load derived display sets for active viewport(or if you want to emphasize the HP API)
feat(HangingProtocol): add onViewportDataChanged callbackCode
etc.)
Public Documentation Updates
additions or removals.
Tested Environment