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

Clear measurement tools #29

Closed
wants to merge 1 commit into from
Closed

Clear measurement tools #29

wants to merge 1 commit into from

Conversation

shahriar
Copy link

@shahriar shahriar commented May 4, 2015

Adding a simple feature to clean up measurement tools like length, probe, etc.

@cancan101
Copy link

Does it make sense to have some sort of clear all functionality that loops over all tools?

@swederik
Copy link
Member

Yes it would be useful to have that function. This PR is a good idea but it would be better to add a clearToolData function to the toolStateManager, rather than to each individual tool, as is done here.

The imageId-specific tool state manager (https://github.com/chafey/cornerstoneTools/blob/master/src/stateManagement/imageIdSpecificStateManager.js#L46) should also be able to clear data (along with adding and getting data). This would solve allow you to clear all data, at least for a single image.

@swederik
Copy link
Member

Closing this since I just merged #40

Thanks for your contribution! @shahriar

@swederik swederik closed this May 21, 2015
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.

3 participants