-
Notifications
You must be signed in to change notification settings - Fork 453
fix(Annotation Tools): Fix active volume to show correct cachedStats (especially on fusion viewport) #2418
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
Merged
+105
−18
Merged
fix(Annotation Tools): Fix active volume to show correct cachedStats (especially on fusion viewport) #2418
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
54f2d7e
fix active volume for tools
Celian-abd 8a9b07a
fix
Celian-abd dd27a70
Alternate method for determining which target id to use
wayfarer3130 22244b6
Update naming for the target id testing
wayfarer3130 55050e8
Merge remote-tracking branch 'origin/main' into active-volume
wayfarer3130 a6e794f
Fix PR to use target id instead of image id so it has volume in it
wayfarer3130 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,37 @@ | ||
| import type BaseTool from '../tools/base/BaseTool'; | ||
|
|
||
| /** | ||
| * General tool configuration. This is intended to be extended | ||
| * by various tools to add the different configuration options. | ||
| */ | ||
| export interface ToolConfiguration { | ||
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
| strategies: any; | ||
| defaultStrategy?: string; | ||
| activeStrategy?: string; | ||
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
| strategyOptions: any; | ||
|
|
||
| /** | ||
| * @returns true if the given targetId is preferred. | ||
| */ | ||
| isPreferredTargetId?: ( | ||
| viewport, | ||
| /** | ||
| * The target info is a specifier for different types of target information. | ||
| * Right now there is just the single option consisting of an image id and | ||
| * cached stat, but in the future other alternatives might be provided. | ||
| */ | ||
| targetInfo: { | ||
| /** | ||
| * The imageId of a cachedStat instance. This isn't the only way to | ||
| * identify data, but is one possible option. | ||
| */ | ||
| imageId: string; | ||
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
| cachedStat: any; | ||
| } | ||
| ) => boolean; | ||
| } | ||
|
|
||
| export type IBaseTool = BaseTool; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
this is confusing api, what are we achieving here?
isPreferredTargetId: RectangleROITool.isSpecifiedTargetId(ptVolumeId)
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.
It is saying that the preferred target for statistics is one belonging to the specified volume id. If you have better naming on that, please let me know.