allen-cell-animated / agave

Other
35 stars 6 forks source link

Axis helper indicator in viewport #197

Closed toloudis closed 3 months ago

toloudis commented 5 months ago

Add a XYZ axis indicator at lower left corner of viewport. X is red, Y is green, Z is blue. Axes will follow camera rotation angle, and use same projection, perspective or orthographic. The indicator can be turned on and off by checkbox.

Currently there is no saved state for this, as it is intended only for interactive viewport use. It will show up in renders only if enabled in the viewport. It is not a part of the remote command API and therefore can not be turned on/off via Python script.

The control is enabled/disabled by the rightmost toolbar button that shows an icon of the X/Y/Z triple axis. Perspective:

AGAVE 1 6 4 2024-07-16 13-58-51

Orthographic:

AGAVE 1 6 4 2024-07-16 13-59-17
toloudis commented 4 months ago

Regarding the note It is not a part of the remote command API and therefore can not be turned on/off via Python script. is this the intended functionality or do we have plans to integrate this feature into the API in the future?

This is something I'm not sure is needed by users but would be easy enough to add later. I also felt that adding it now would have made this PR a lot bigger and is probably easier to review if I do it separately.