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

Question: How does VolumeViewport implement the setImageIdIndex method like StackViewport? #332

Closed
abluobo opened this issue Dec 9, 2022 · 2 comments

Comments

@abluobo
Copy link

abluobo commented Dec 9, 2022

StackViewport provides the setImageIdIndex method, but VolumeViewport does not. How does VolumeViewport implement the setImageIdIndex method?

@abluobo abluobo changed the title How does VolumeViewport implement the setImageIdIndex method like StackViewport? Question: How does VolumeViewport implement the setImageIdIndex method like StackViewport? Dec 9, 2022
@lambacini
Copy link
Contributor

Maybe this method can help you.

cornerstoneTools.utilities.jumpToSlice(element, {
imageIndex: sliceNumber
});

https://github.com/cornerstonejs/cornerstone3D-beta/blob/d49cf773a09db4e83ab53c85b8f615db7e7c3f09/packages/tools/src/utilities/viewport/jumpToSlice.ts#L22

Or you can check the function below.
(https://github.com/cornerstonejs/cornerstone3D-beta/blob/d49cf773a09db4e83ab53c85b8f615db7e7c3f09/packages/tools/src/utilities/scroll.ts#L18)

@abluobo
Copy link
Author

abluobo commented Mar 24, 2023

@lambacini Thank you

@abluobo abluobo closed this as completed Mar 24, 2023
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

No branches or pull requests

2 participants