tomviz
tomviz copied to clipboard
Reset center of rotation after transforms
The default rotation center is at the center of the matrix:

If I do some transform that changes data size, say downsample by 2, then the rotation center often ends up at the corner like this

Is that possible to reset the rotation center to the center of the matrix after transforms?
Yes in theory, but in some cases that could lead to annoying behavior. What if you have two images open that occupy different spaces and you want to apply some transforms to both? Then the center will move to whichever transform was performed last, which could be just as irritating as the behavior now. Moreover, if the transforms for both images re-execute, the center could jump around as you are interacting with the visualization. There could even be a race condition between the thread where the transform is running and the main UI race condition.
I can't think of any situations when people want the rotation center to be somewhere else other than the center of the matrix. I'd even automatically reset the rotation center if a transform changes matrix size. In general, I think the best way to handle multiple datasets is to put them in separate RenderView windows.
Can we just center all datasets to the origin? This is a recurring difficulty for users.