allen-cell-animated / agave

Other
33 stars 5 forks source link

Feature/local and world space modes #146

Closed toloudis closed 8 months ago

toloudis commented 9 months ago

Let rotate tool and move tool work optionally in local object space or world space.

Added a very simple keypress UI to allow testing. "R" toggles rotate mode, "T" toggles translate mode, and "L" toggles local/world space. Currently translate mode only moves the translate manipulator and has no effect on the light. Rotate is fully functional.

This PR should not be released as it is not the final UI by any means. It leaves the AreaLightTool on all the time. There are some hacky things here which will probably be rewritten/thrown away but the important code is in RotateTool, MoveTool, and Manipulator.