Skip to content

Conversation

@Celian-abd
Copy link
Contributor

Context

Currently, even if we set the PT volumeId into the configuration of Rectangle/Circle/EllipticalRoiTools, it will always show the cachedStats of the CT on the fusion viewport.

As we can see here :

Capture d’écran 2025-10-20 164430

Changes & Results

  • Added a way to check if a volumeId is provided in the tool configuration
  • Select the correct cachedStats to show following the volumeId

If we set PT volumeId in the tool configuration :
Capture d’écran 2025-10-20 164845

Testing

Example PET-CT
You can modify or delete the prefered volumeId in the tool configuration :
fusionToolGroup.addTool(RectangleROITool.toolName, { volumeId: ptVolumeId });

Checklist

PR

  • [] My Pull Request title is descriptive, accurate and follows the
    semantic-release format and guidelines.

Code

  • [] My code has been well-documented (function documentation, inline comments,
    etc.)

Public Documentation Updates

  • [] The documentation page has been updated as necessary for any public API
    additions or removals.

Tested Environment

  • [] "OS:
  • [] "Node version:
  • [] "Browser:


styleSpecifier.annotationUID = annotationUID;

let targetId: string;
Copy link
Member

Choose a reason for hiding this comment

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

do these in the this.getTargetId so that you don't need to repeat yourself, i think that was a parent method

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