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

Click to select single point, double-click to select entire point cloud #2214

Closed
emilk opened this issue May 25, 2023 · 0 comments · Fixed by #2504
Closed

Click to select single point, double-click to select entire point cloud #2214

emilk opened this issue May 25, 2023 · 0 comments · Fixed by #2504
Labels
enhancement New feature or request 📺 re_viewer affects re_viewer itself ui concerns graphical user interface

Comments

@emilk
Copy link
Member

emilk commented May 25, 2023

Currently a single click selects the point cloud, and a second click selects the single point.

I suggest we instead use single-click to select a single point, and double-click to select the entire point cloud. This is similar to how clicking once in text will set the cursor and double-clicking will select the word. I think it is more intuitive.

It will also reduce flicker when moving the mouse over many points.

It also makes sense that hovering a point will show info about that single point, not the whole point cloud.

@emilk emilk added enhancement New feature or request ui concerns graphical user interface 📺 re_viewer affects re_viewer itself labels May 25, 2023
emilk added a commit that referenced this issue Jun 26, 2023
Closes #2214

Hovering a point cloud now hovers individual points. Clicking once
selects a point (a single instance). Double-clicking selects the entire
point-cloud (the entire entity).

### What
With this PR, we always set the full instance key in the GPU picking
buffer. When reading we decide whether to look at both entity and
instance (hover/click single instances) or to only look at the entity
path (select whole point-cloud on double-click).

Previously what was put in the GPU picking buffer depended on what was
already selected. The new code is a lot simpler.

### Checklist
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)

<!-- This line will get updated when the PR build summary job finishes.
-->
PR Build Summary: https://build.rerun.io/pr/2504

<!-- pr-link-docs:start -->
Docs preview: https://rerun.io/preview/c7f9332/docs
Examples preview: https://rerun.io/preview/c7f9332/examples
<!-- pr-link-docs:end -->
emilk added a commit that referenced this issue Jun 29, 2023
Closes #2214

Hovering a point cloud now hovers individual points. Clicking once
selects a point (a single instance). Double-clicking selects the entire
point-cloud (the entire entity).

### What
With this PR, we always set the full instance key in the GPU picking
buffer. When reading we decide whether to look at both entity and
instance (hover/click single instances) or to only look at the entity
path (select whole point-cloud on double-click).

Previously what was put in the GPU picking buffer depended on what was
already selected. The new code is a lot simpler.

### Checklist
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)

<!-- This line will get updated when the PR build summary job finishes.
-->
PR Build Summary: https://build.rerun.io/pr/2504

<!-- pr-link-docs:start -->
Docs preview: https://rerun.io/preview/c7f9332/docs
Examples preview: https://rerun.io/preview/c7f9332/examples
<!-- pr-link-docs:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 📺 re_viewer affects re_viewer itself ui concerns graphical user interface
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant