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

No getProperties for volume viewport #214

Open
sharon-shrits opened this issue Sep 15, 2022 · 2 comments
Open

No getProperties for volume viewport #214

sharon-shrits opened this issue Sep 15, 2022 · 2 comments
Assignees

Comments

@sharon-shrits
Copy link
Contributor

Hi, adding the setProperties for the volume viewport was great, but there is no implementation for the getProperties.
It would be great if it would be added too, thank you!

@sedghi
Copy link
Member

sedghi commented Sep 15, 2022

Yeah I can see how it is valuable

@sedghi sedghi self-assigned this Sep 15, 2022
@kubanm3
Copy link
Contributor

kubanm3 commented Oct 4, 2022

For now you could use something like that

const actorEntry = viewport.getActor(volumeId); const volumeActor = actorEntry?.actor as Types.VolumeActor; if (!volumeActor) { return; } const rgbTransferFunction = volumeActor.getProperty().getRGBTransferFunction(0); const [lower, upper] = rgbTransferFunction.getRange();

Works for range only but it's the only property you can set with setProperties anyway.

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

3 participants