Git Product home page Git Product logo

Comments (3)

stuarteberg avatar stuarteberg commented on April 27, 2024 1

I see what you mean. One possibility is to have the maximized 2D view whichever view most recently had mouse focus.

Currently, the toggle-layout key switches between the following layouts:

  • All 4 views
  • 2D (XY) view
  • 3D+2D (XY) view

I'm proposing this instead:

  • All 4 views
  • 2D (most recently used) view
  • 3D+2D (most recently used) view

from neuroglancer.

jbms avatar jbms commented on April 27, 2024 1

This took a while because I wanted to get the input event handling refactored first, but this is now supported.

toggle-layout (space) has the effect of "maximizing" whichever panel has focus in the 4-panel or 2-panel layouts, or reverting to the 4panel layout from any single panel layout.
toggle-layout-alternative (shift+space) can be used to switch to the 2-panel (xy/xz/yz-3d) layout.

from neuroglancer.

jbms avatar jbms commented on April 27, 2024

Currently the toggle layout command is independent of the current selected panel. Two thoughts:

First, there is a workaround: the "XY" view is actually relative to the current sliceview rotation. Therefore, if you rotate the sliceview pose using shift arrow keys or shift left mouse drag, you can obtain an arbitrary view. To get a proper axis-aligned XZ or YZ view, once you get it approximately right, you can press "z" to snap to an axis-aligned pose.

Clearly this workaround is not ideal, though. Currently there is just a flat list of view layouts, and toggle-layouts just toggles between them. Can you suggest how it might work better? Just adding XZ and YZ views to the existing list would make the list of layouts so long that it would be inconvenient to have to cycle through them.

from neuroglancer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.