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

fix(rt): enhanced RT support, utilize SVGs for rendering. #4074

Merged
merged 4 commits into from
May 6, 2024

Conversation

IbrahimCSAE
Copy link
Collaborator

@IbrahimCSAE IbrahimCSAE commented May 2, 2024

Context

This PR changes the rendering process for RT contours, in the past we used to pass the gemoteryIds to our render function and create a VTK actor with the contour data.

Now, this has changed, we are still passing the gemotryIds, however, we take those geomtryIds, and call cache.getGeomtry(geomtryId) on each one, and use its data to create annotations that represent the contour, which gets stored internally and generate an annotationsUIDsMap

This helps us render the contours using SVG which is much more reliable than VTK.

From a user point of view, nothing is changing in the RT loading process, because you are still creating and caching geometries, we just handle them differently internally to generate SVGs instead of a VTK actor.

You will notice your viewports only have 1 actor after loading an RT, which in the past would become 2 actors (1 for the scan,and 1 for RT).

Copy link

netlify bot commented May 2, 2024

Deploy Preview for ohif-platform-docs ready!

Name Link
🔨 Latest commit 4567390
🔍 Latest deploy log https://app.netlify.com/sites/ohif-platform-docs/deploys/6638f3cefc74bc000836c817
😎 Deploy Preview https://deploy-preview-4074--ohif-platform-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented May 2, 2024

Deploy Preview for ohif-dev ready!

Name Link
🔨 Latest commit 4567390
🔍 Latest deploy log https://app.netlify.com/sites/ohif-dev/deploys/6638f3ceca83a90008b84d07
😎 Deploy Preview https://deploy-preview-4074--ohif-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented May 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.41%. Comparing base (8a335bd) to head (15776fc).
Report is 361 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4074      +/-   ##
==========================================
- Coverage   46.23%   44.41%   -1.83%     
==========================================
  Files          78       80       +2     
  Lines        1276     1333      +57     
  Branches      312      327      +15     
==========================================
+ Hits          590      592       +2     
- Misses        548      588      +40     
- Partials      138      153      +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

cypress bot commented May 2, 2024

1 failed test on run #3886 ↗︎

1 42 0 0 Flakiness 0

Details:

bump cs3d
Project: Viewers Commit: 4567390ab0
Status: Failed Duration: 06:43 💡
Started: May 6, 2024 3:34 PM Ended: May 6, 2024 3:41 PM
Failed  cypress/integration/study-list/OHIFStudyList.spec.js • 1 failed test

View Output Video

Test Artifacts
OHIF Study List > Desktop resolution > maintains Accession filter upon return from viewer Test Replay Screenshots Video

Review all test suite changes for PR #4074 ↗︎

@IbrahimCSAE IbrahimCSAE changed the title [WIP] fix(rt): enhanced RT support, utilize SVGs for rendering. fix(rt): enhanced RT support, utilize SVGs for rendering. May 3, 2024
cornerstoneTools.segmentation.config.setGlobalRepresentationConfig(labelmapRepresentation, {
fillAlpha: 0.5,
fillAlphaInactive: 0.2,
outlineOpacity: 1,
outlineOpacityInactive: 0.65,
});

cornerstoneTools.segmentation.config.setGlobalRepresentationConfig(contourRepresentation, {
Copy link
Member

Choose a reason for hiding this comment

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

remove

@IbrahimCSAE IbrahimCSAE requested a review from sedghi May 6, 2024 15:14
@sedghi sedghi merged commit 0156bc4 into master May 6, 2024
6 of 8 checks passed
@sedghi sedghi mentioned this pull request Sep 24, 2024
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants